Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #s::
  2. return
  3.  
  4. #f::
  5. 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
  6. return
  7. WinGet, MinMax, MinMax, A
  8. If (MinMax = 1)
  9. WinRestore, A
  10. else
  11. WinMaximize, A
  12. return
  13.  
  14. #q:: Send !{f4}
  15. return
  16.  
  17. #Enter:: run, C:\Windows\System32\cmd.exe
  18. return
  19.  
  20. #+x:: Shutdown, 9
  21. return
  22.  
  23. #+Backspace:: Shutdown, 6
  24. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement