Skip to content

Instantly share code, notes, and snippets.

@ailon
Last active November 21, 2020 11:43
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 ailon/7b406ab9c0d0235ece73db2a9f79ce5a to your computer and use it in GitHub Desktop.
Save ailon/7b406ab9c0d0235ece73db2a9f79ce5a to your computer and use it in GitHub Desktop.
AutoHotKey script to always auto-switch from Studio One Remote Control app to Studio One when running on the same Windows machine. Otherwise you have to always alt-tab back from remote to Studio One
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance, force
#IfWinActive, ahk_exe Studio One Remote.exe
Loop {
if WinActive("ahk_exe Studio One Remote.exe") {
if WinExist("ahk_exe Studio One.exe")
{
Sleep, 100
WinActivate
}
} else {
Sleep, 100
}
}
#IfWinActive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment