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,10 +8,19 @@ SetTitleMatchMode, Fast
If WinExist(A_Args[1]) ; propresenter
{ ; if propresenter isn't active, switch and send clicker forward
if !WinActive(A_Args[1]){
WinActivate
sleep 200
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]){
WinActivate
sleep 200
}
arg := A_Args[2]
Send {%arg%}
}
arg := A_Args[2]
Send {%arg%}
}