I am new to AutoIt. I want to run my code without hitting or pressing the “ok” button that appears when the MsgBox is called.
My code is as follows:
$val = 10
For $i = 1 To 59
$doubled = MyDouble($val)
sleep(100)
MsgBox(0, "", $val & " doubled is " & $doubled )
$val = $doubled
Next
MsgBox(0,"the value ","The final vaule is as " & $val)
Exit
Func MyDouble($value)
$value = $value * 2
Return $value
EndFunc
You can use a timeout on the
MsgBox.From the AutoIt help…
So you could do this to have a 1 second timeout: