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.
17 lines
316 B
17 lines
316 B
;
|
|
; Turn script into wrapper for a program
|
|
;
|
|
|
|
CheckWinExist(Window) {
|
|
if !WinExist(Window) {
|
|
ExitApp
|
|
}
|
|
}
|
|
|
|
Run %WrapperPath%
|
|
SetTitleMatchMode 3
|
|
WinWait %WrapperWindow%,,30
|
|
|
|
; Check if window exists once per second
|
|
WrapperFunc := Func("CheckWinExist").bind(WrapperWindow)
|
|
SetTimer, %WrapperFunc%, 1000
|