View Single Post
Old 09-29-2014, 04:38 AM
e2script e2script is offline
Registered User
Join Date: Sep 2014
Posts: 34
Cancel script without prompt


I'm currently building a script where I want the script to be cancelled when one of the if statements is met.

See the example below:
result0 = crt.Screen.WaitForStrings("x","y")

if result0 = 1 Then
crt.screen.Send "hello"
end if

if result0 = 2 Then
crt.screen.SendSpecial "MENU_SCRIPT_CANCEL"
This works fine and the script is doing what it's supposed to.
The only problem is that when the script is cancelled a dialogbox is presented saying that the script was cancelled.
The only way to remove the dialogbox is to click the OK button.

Is there any way to cancel the script without receiving the dialogbox?
Reply With Quote