I am using a msgbox with timeout = 2 sec, i want to continue run the script after msgbox timeout.
for example my code is like this:
$log = 'C:\notepad.log'
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("This is first line{ENTER}okay{ENTER}")
sleep (200)
msgbox (1,"debug","debug",2)
Send("This is second line{ENTER}okay{ENTER}")
sleep (200)
Send("This is third line{ENTER}okay{ENTER}")
sleep (200)
Send("!f")
send ("{DOWN}{DOWN}{ENTER}")
sleep (500)
Send($log)
sleep (1000)
Send("{ENTER}")
sleep (200)
WinClose("[CLASS:Notepad]")
*##############
Here I have use "msgbox (1,"debug","debug",2)" which timeout after 2 sec & after this it wont send the command
Send("This is second line{ENTER}okay{ENTER}")
sleep (200)
Send("This is third line{ENTER}okay{ENTER}")
Please suggest how to handle this timeout.
Please note my application required to define TIMEOUT & then continue the script.