my esteemed autoits,
i need your help once again. The bold and italics below are what i will be referring to. I need a message box to exit the script if Cancel is pressed and to continue the script if OK is pressed. I have tried multiple ways to do this to no avail. Can someone please breakdown how i go about this via Message box, and or Input box as I'm sure they will follow the same logic. I appreciate your time and assistance.
Example:
global $url, $username, $password, $sspassword
$url = "https://securegateway.fairview.org"
$username = "XXX"
$password = "YYY"
$sspassword = "ZZZ"
#include <Constants.au3>
#include <msgboxconstants.au3>
ShellExecute ($url)
WinWaitActive("window")
send($username)
send("{tab}")
send($password)
send("{enter}") msgbox($mb_okcancel, "Wait for the page to load then select OK to continue script", "Wait for the page to load then select OK to continue script")
if($idok)
send("+{tab 8}")
send("{enter}")
if ($idcancel) then Exit
EndIf