AutoHotkey scripts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
292 B

;
; Turn script into wrapper for a program
;
CheckWinExist(Window) {
if !WinExist(Window) {
ExitApp
}
}
Run %WrapperPath%
WinWait %WrapperWindow%
; Check if window exists once per second
WrapperFunc := Func("CheckWinExist").bind(WrapperWindow)
SetTimer, %WrapperFunc%, 1000