View Single Post
  #1  
Old 04-26-2019, 10:37 AM
krypton179 krypton179 is offline
Registered User
 
Join Date: Apr 2019
Posts: 3
Existing Script from Within Function

Hi Experts,

I am looking for some further details of how I can exit an active script from within a function without logging the script path and line number.

Looking at earlier threads I found this logic, which works:

def CancelScript()
crt.Screen.SendSpecial("MENU_SCRIPT_CANCEL")
crt.Sleep(1)

However, instead of opening a dialog box, I would like to exit the script without printing anything to the screen.

I looked into using the crt.Quit() option, but this closes CRT completely.

Are there any alternatives which I can use to accomplish this?

Kind Regards,

K
Reply With Quote