added from hotkey checks
This commit is contained in:
parent
b158b9068e
commit
6b7edb7ce8
1 changed files with 14 additions and 5 deletions
|
@ -8,10 +8,19 @@ SetTitleMatchMode, Fast
|
|||
|
||||
If WinExist(A_Args[1]) ; propresenter
|
||||
{ ; 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]){
|
||||
WinActivate
|
||||
sleep 200
|
||||
}
|
||||
arg := A_Args[2]
|
||||
Send {%arg%}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue