InputBox
Previous Top Next

It's similar to the MessageBox management.If the optional fields are not provided, default values are used (see the AutoIt Help).
graphic
Example:
#Region --- CodeWizard generated code Start ---
;InputBox features: Title=Yes, Prompt=Yes, Default Text=Yes
If Not IsDeclared("sInputBoxAnswer") Then Dim $sInputBoxAnswer
$sInputBoxAnswer = InputBox("Question","Where were you born?","Planet Earth"," ","-1","-1","-1","-1")
Select
   Case @Error = 0 ;OK - The string returned is valid

   Case @Error = 1 ;The Cancel button was pushed

   Case @Error = 3 ;The InputBox failed to open

EndSelect
#EndRegion --- CodeWizard generated code End ---