Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Explorer Hotkey
  2.  
  3. #e::
  4.     ; If there is no explorer already running
  5.     IfWinNotExist, ahk_class CabinetWClass
  6.     {
  7.         ; Start explorer
  8.         Run C:\Windows\explorer.exe
  9.         ; Wait for it ...
  10.         WinWait ahk_class CabinetWClass
  11.         ; Set focus
  12.         WinActivate
  13.     }
  14.     ; If explorer is already running
  15.     Else{
  16.         ; Set focus
  17.         WinActivate
  18.         Run C:\
  19.     Send {Backspace}
  20.     }
  21. Return
  22.  
  23. ; Mouse Wheel inverter
  24.  
  25. #MaxHotkeysPerInterval 200
  26. $WheelUp::
  27. Send {WheelDown}
  28. Return
  29. $WheelDown::
  30. Send {WheelUp}
  31. Return
  32.  
  33.  
  34. ; Global Key-Hijacks
  35. Capslock::Pause
  36. !q::Send !{F4} 
  37. SetNumLockState, AlwaysOn
  38. !^l::send @
  39. ^y:: Send ^z
  40. ^+y:: Send ^+z
  41. #space::SendInput !{Space}
  42.  
  43.  
  44. #IfWinActive ahk_class CEFCLIENT ; Brackets
  45. ^ü::Send /
  46. ^!ü::Send \
  47. ^ö::Send ^!7
  48. ^!ö::Send ^!0
  49. ^ä::Send ^!8
  50. ^!ä::Send ^!9
  51. ^+::Send (
  52. ^!+::Send )
  53. ^#::Send {"}
  54. ^!#::Send {=}
  55.  
  56.  
  57. #IfWinActive ahk_class Photoshop ; Photoshop
  58. ^!y::Send ^!z
  59. ^+y:: Send ^+z
  60. ^y:: Send ^z
  61.  
  62.  
  63. #IfWinActive ahk_exe soffice.bin ; Open Office
  64. !ü::
  65. Loop,
  66. {
  67. send, ^+{f2}
  68. sleep, 200
  69. send {Right}
  70. sleep, 200
  71. send, ^v
  72. sleep, 200 
  73. send, +{tab}
  74. send, {tab}
  75. send {Down}
  76. }
  77. !ä::exitapp
  78. #IfWinActive
  79.  
  80.  
  81. GroupAdd, BrowserGroup, ahk_class Chrome_WidgetWin_1
  82. GroupAdd, BrowserGroup, ahk_class MozillaWindowClass
  83. GroupAdd, BrowserGroup, ahk_class ApplicationFrameWindow
  84.  
  85. #IfWinActive ahk_group BrowserGroup
  86. :*:#desktop::&frmIs_UseMobileContainer=0
  87. :*:#mobile::&frmIs_UseMobileContainer=1
  88. #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement