Terminates the script unconditionally.
|ExitApp [, ExitCode]|
|ExitCode||An integer (i.e. negative, positive, or zero) that is returned to its caller when the script exits. This code is accessible to any program that spawned the script, such as another script (via RunWait) or a batch (.bat) file. If omitted, ExitCode defaults to zero. Zero is traditionally used to indicate success. Note: Windows 95 may be limited in how large ExitCode can be.|
The script is immediately terminated unless it has an OnExit subroutine. This is equivalent to choosing "Exit" from the script's tray menu or main menu.
Exit and ExitApp behave identically when the script contains no hotkeys, is not persistent, and does not ask for the Num/Scroll/Capslock key(s) to be kept AlwaysOn or AlwaysOff.
If the script has an OnExit subroutine, it will be run in response to ExitApp.
Exit, OnExit, #Persistent
#x::ExitApp ; Assign a hotkey to terminate this script.