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.
 

21 lines
422 B

;
; Turn script into wrapper for a program
;
CheckWinExist(Window) {
if !WinExist(Window) {
ExitApp
}
}
; TitleMatchMode can be set, but defaults to 3 if not set
if (!IsSet(WrapperTitleMatchMode)) {
WrapperTitleMatchMode:=3
}
Run WrapperPath
SetTitleMatchMode WrapperTitleMatchMode
WinWait WrapperWindow,,300
; Check if window exists once per second
SetTimer CheckWinExist.Bind(WrapperWindow), 1000