Code: Select all
...put false into sWiFiConnected
...put WifiConnectToNetwork(pArray["SSDI"], pArray["Password"]) into sWiFiConnected --become true if WiFi is paired
repeat with U = 1 to 15
if sWiFiConnected AND "192." is in the networkInterfaces then
exit repeat
end if
wait 1 seconds with messages
end repeat
This is making very difficult to time the user interaction. If he waits too long to press "OK", the loop will go to the end with sWiFiConnected = false.
But the pairing to wifi has been done.
Is there any way to pause a script while the OS is showing an alert?