Skip to content

Instantly share code, notes, and snippets.

@lucian303
Created April 30, 2024 09:51
Show Gist options
  • Save lucian303/fc5dbafc3fc39cb9f9de1e6ea772f41b to your computer and use it in GitHub Desktop.
Save lucian303/fc5dbafc3fc39cb9f9de1e6ea772f41b to your computer and use it in GitHub Desktop.
RunOrRaise(class, run)
{
if WinExist(class) {
WinActivate, %class%
}
else {
Run, %run%
}
}
DetectHiddenWindows, On
SetTitleMatchMode, 2
SetTitleMatchMode Slow
#p::RunOrRaise("Windows PowerShell", "powershell -NoLogo")
#f::RunOrRaise("Firefox Developer Edition", "firefox.exe")
#t::RunOrRaise("Terminal", "wt.exe")
#s::RunOrRaise("Sublime", "C:\Program Files\Sublime Text\sublime_text.exe")
#c::RunOrRaise("CLion", "C:\Program Files (x86)\JetBrains\CLion 2024.1.1\bin\clion64.exe")
#k::RunOrRaise("Keybase", "keybase.exe")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment