Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting

Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
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

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 06:11 AM.