2021-12-29 21:07:41 -08:00
|
|
|
#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("ahk_exe Dopamine.exe"){
|
|
|
|
if !WinActive("ahk_exe Dopamine.exe"){
|
|
|
|
WinActivate
|
|
|
|
sleep 100
|
|
|
|
Send {Media_Play_Pause}
|
|
|
|
}
|
|
|
|
}
|
2021-12-30 14:26:32 -08:00
|
|
|
|
|
|
|
If WinExist(A_Args[1]) ; propresenter
|
2022-06-19 22:03:58 -07:00
|
|
|
{ ; if propresenter isn't active, switch to it
|
2021-12-30 14:26:32 -08:00
|
|
|
if !WinActive(A_Args[1]){
|
|
|
|
WinActivate
|
|
|
|
}
|
|
|
|
}
|