Back

Quit

JS Py
Hello World

Quits the app with showing an Alert dialog box before exiting.

app.Quit( msg, title?, options? )

The function will pause the program and exit before any further commands can be executed.

Example - Quit

function OnStart()
{
    app.ShowPopup( "Exciting" );
    app.Quit( "App will now exit anyway.", "No error detected." );
    app.ShowPopup( "Exited" ); // not shown
}
from native import app

def OnStart():
    app.ShowPopup("Exciting")
    app.Quit("App will now exit anyway.", "No error detected.")
    app.ShowPopup("Exited") # not shown
    Copy     Copy All       Run      
String
String: comma “,” separated: “NoDim”, “NoFocus”