Terminates the script unconditionally.
An integer between -2147483648 and 2147483647 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.
This is equivalent to choosing "Exit" from the script's tray menu or main menu.
Any OnExit functions registered by the script are called before the script terminates. If an OnExit function returns a non-zero integer, the script does not terminate; instead, the current thread exits as if Exit was called.
ExitApp is often unnecessary in scripts which are not persistent.
Exit, OnExit, #Persistent
#x::ExitApp ; Assign a hotkey to terminate this script.