Skip to content

Instantly share code, notes, and snippets.

@MasterMedo
Created April 9, 2019 06:38
Show Gist options
  • Select an option

  • Save MasterMedo/ecacd4f240bd4391fd2003b438e3cfca to your computer and use it in GitHub Desktop.

Select an option

Save MasterMedo/ecacd4f240bd4391fd2003b438e3cfca to your computer and use it in GitHub Desktop.
Windows shortcuts
#s::
return
#f::
if (WinActive("ahk_class Progman") || WinActive("ahk_Class DV2ControlHost") || (WinActive("Start") && WinActive("ahk_class Button")) || WinActive("ahk_class Shell_TrayWnd")) ; disallows minimizing things that shouldn't be minimized, like the task bar and desktop
return
WinGet, MinMax, MinMax, A
If (MinMax = 1)
WinRestore, A
else
WinMaximize, A
return
#q:: Send !{f4}
return
#Enter:: run, C:\Windows\System32\cmd.exe
return
#+x:: Shutdown, 9
return
#+Backspace:: Shutdown, 6
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment