added some ahk files
This commit is contained in:
parent
6471efe7e5
commit
284a3ef82e
2 changed files with 37 additions and 0 deletions
15
src/ahk_files/propre_send.ahk
Normal file
15
src/ahk_files/propre_send.ahk
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||||||
|
; #Warn ; Enable warnings to assist with detecting common errors.
|
||||||
|
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||||||
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||||
|
#SingleInstance, force
|
||||||
|
SetTitleMatchMode, RegEx
|
||||||
|
SetTitleMatchMode, Fast
|
||||||
|
|
||||||
|
If WinExist(A_Args[1]) ; propresenter
|
||||||
|
{ ; if propresenter isn't active, switch and send clicker forward
|
||||||
|
if !WinActive(A_Args[1]){
|
||||||
|
WinActivate
|
||||||
|
Send A_Args[2]
|
||||||
|
}
|
||||||
|
}
|
22
src/ahk_files/send_obs_back_to_propre.ahk
Normal file
22
src/ahk_files/send_obs_back_to_propre.ahk
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
||||||
|
; #Warn ; Enable warnings to assist with detecting common errors.
|
||||||
|
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
||||||
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||||
|
#SingleInstance, force
|
||||||
|
SetTitleMatchMode, RegEx
|
||||||
|
SetTitleMatchMode, Fast
|
||||||
|
|
||||||
|
If WinExist(A_Args[2]) ;OBS
|
||||||
|
{ ; if obs isn't active, switch to it, and send the hotkey
|
||||||
|
If !WinActive(A_Args[2]) {
|
||||||
|
WinActivate
|
||||||
|
Send A_Args[3]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
If WinExist(A_Args[1]) ; Propresenter
|
||||||
|
{ ; switch back to propresenter
|
||||||
|
If !WinActive(A_Args[1]) {
|
||||||
|
WinActivate
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue