Avoid being unable to exit without errors
Delete ; to exit
Just tested 2.0.13, and it's still the same!
Code: Select all
#SingleInstance Force
#NoTrayIcon
; ExitApp()
index := 0
if A_Args.Length && IsInteger(A_Args[1])
index := A_Args[1] + 1
if A_ScriptHwnd < 0
{
DetectHiddenWindows(True)
MsgBox(A_ScriptHwnd "@" WinExist(A_ScriptFullPath) "@" index "`n" A_AhkVersion)
ExitApp()
}
else
Run(A_ScriptFullPath " " index)