スクリプトを終了します。
ExitApp ExitCode
型:整数
If omitted, it defaults to 0 (zero is traditionally used to indicate success). Otherwise, specify an integer between -2147483648 and 2147483647 that is returned to its caller when the script exits. このコードは、他のスクリプト(RunWait経由)やバッチ(.bat)ファイルなど、スクリプトを生成したすべてのプログラムからアクセス可能です。
これは、スクリプトのトレイメニューやメインメニューから「終了」を選択することと同じです。
Any functions registered by OnExit are called before the script terminates. If such a function returns a non-zero integer, the script does not terminate; instead, the current thread exits as if Exit was called.
スクリプトの終了は、各スレッドの終了とは異なります。例えば、ローカル変数に含まれるオブジェクトに対して、Finallyブロックは実行されず、__Deleteは呼び出されない。
ExitAppは、永続的でないスクリプトでは不要なことが多い。