Skip to content

Instantly share code, notes, and snippets.

@b-
Last active July 25, 2019 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save b-/7c4283d770a6da92a50384670442c37b to your computer and use it in GitHub Desktop.
Save b-/7c4283d770a6da92a50384670442c37b to your computer and use it in GitHub Desktop.
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