Just starting to use return values from Button clicks.
My question is how would I write a script that on click of OK on a msgbox would continue a script or cancel would stop the script.
Here is what I have got to, but don't know the command to wait for the return value and continue.
MsgBox(1, "Start Client Setup", "Click OK when ready to Continue...")
If ; OK clicked then
:Rest of Script
Else ; Cancel Pressed and stop script
Appreciate the heads up on t
$msgbox = MsgBox(1, "Start Client Setup", "Click OK when ready to Continue...")
If $msgbox = 2 Then
;cancel pressed, stop script
;rest of script
directly from the help file, look at "Return values"
OK - 1
Cancel - 2
Abort - 3
Retry - 4
Ignore - 5
Yes - 6
No - 7
Try Again - 10
Continue - 11
"Try Again" and "Continue" only work on Windows 2000/XP and above