Last active
July 25, 2019 17:55
-
-
Save b-/7c4283d770a6da92a50384670442c37b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if WinActive("ahk_class SynergyDesk") | |
{ | |
; We want to reload ONCE | |
EnvGet, IsReloading, IsReloading | |
if ( IsReloading = "true" ) ; we're already reloading | |
{ | |
EnvSet, IsReloading, "false" | |
WinWaitNotActive, ahk_class SynergyDesk | |
} ; so don't reload again | |
else | |
{ | |
EnvSet, IsReloading, "true" | |
Reload | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment