added from hotkey checks

This commit is contained in:
Nickiel12 2021-12-31 19:35:04 -08:00
parent b158b9068e
commit 6b7edb7ce8

View file

@ -8,6 +8,14 @@ SetTitleMatchMode, Fast
If WinExist(A_Args[1]) ; propresenter If WinExist(A_Args[1]) ; propresenter
{ ; if propresenter isn't active, switch and send clicker forward { ; if propresenter isn't active, switch and send clicker forward
if (A_Args[3]) { ; 1 for from_hotkey 0 for from app
if !WinActive(A_Args[1]){
WinActivate
sleep 200
arg := A_Args[2]
Send {%arg%}
}
} else {
if !WinActive(A_Args[1]){ if !WinActive(A_Args[1]){
WinActivate WinActivate
sleep 200 sleep 200
@ -15,3 +23,4 @@ If WinExist(A_Args[1]) ; propresenter
arg := A_Args[2] arg := A_Args[2]
Send {%arg%} Send {%arg%}
} }
}