jgoogs

IfWinActive Dependent Hotkeys

Aug 1st, 2022
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SendMode Input
  2.     ;******window/app dependant hotkeys******
  3. #IfWinActive ahk_class Chrome_WidgetWin_1
  4. F11::return     ;disables make fullscreen for chrome window
  5. F12::return     ;disables opening inspect element in chrome
  6. #IfWinNotActive ahk_class Chrome_WidgetWin_1
  7. F11::Send {F11}
  8. F12::Send {F12}
  9. Return
  10.     ;******ahk text editor save+run hotkey******
  11. #IfWinActive ahk_class SciTEWindow
  12. PgDn::
  13.     Send ^s
  14.         Sleep 100
  15.     Send {F5}
  16.         Sleep 100
  17. Return
  18. #IfWinNotActive ahk_class SciTEWindow
  19. PgDn::PgDn
  20. Return
  21.  
Advertisement
Add Comment
Please, Sign In to add comment