added from hotkey checks
This commit is contained in:
parent
b158b9068e
commit
6b7edb7ce8
1 changed files with 14 additions and 5 deletions
|
@ -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%}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue