Advertisement
Guest User

Antelle's AutoHotKey file

a guest
Nov 9th, 2012
1,088
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. ; Antelle's AutoHotKey file
  2. ; Adds Mac shortcuts to Windows :p
  3.  
  4. ; #InstallKeybdHook ; keys testing
  5. #SingleInstance, Force
  6. #MaxHotkeysPerInterval 100500
  7.  
  8. ; === mouse ===
  9. WheelUp::
  10. Send {WheelDown}
  11. Return
  12.  
  13. WheelDown::
  14. Send {WheelUp}
  15. Return
  16.  
  17. WheelRight::
  18. Send {WheelLeft}
  19. Return
  20.  
  21. WheelLeft::
  22. Send {WheelRight}
  23. Return
  24.  
  25. LWin & LButton::
  26. Send ^{LButton}
  27. Return
  28.  
  29. ; === general ===
  30. #c::send ^{sc02e} ; copy
  31. #v::send ^{sc02f} ; paste
  32. #x::send ^{sc02d} ; cut
  33. #a::send ^{sc01e} ; select all
  34. #s::send ^{sc01f} ; save
  35. #z::send ^{sc02c} ; undo
  36. #o::send ^{sc018} ; open
  37. #n::send ^{sc031} ; new
  38. #+z::send ^{sc015} ; redo
  39. #w::send ^{f4} ; close
  40. #q::send !{f4} ; quit
  41. #t::send ^{sc014} ; new tab
  42. #f::send ^{sc021} ; find
  43. #+f::send ^+{sc021} ; find
  44. #g::send ^{sc022} ; next find
  45. #+g::send ^+{sc022} ; prev find
  46. #r::send ^{sc013} ; reload
  47. #+d::send ^+{sc020} ; duplicate
  48. #i::send !{Enter} ; properties (get info)
  49. #m::send #{Down} ; minimize
  50. !#m::send #d ; minimize all
  51. #h::send #{Down} ; minimize (hide)
  52. LWin & NumpadAdd::send ^{NumpadAdd} ; +
  53. LWin & NumpadSub::send ^- ; -
  54. LWin & -::send ^- ; -
  55. LWin & Tab::AltTab ; alt-tab
  56. +Delete::send {Delete} ; disable shift-del
  57. #d::return ; disable win-d
  58. NumLock::return ; disable numlock
  59. Alt & Backspace::send ^+{Left}{Delete} ; delete word to left
  60. Alt & Delete::send ^+{Right}{Delete} ; delete word to right
  61. #Backspace::send +{Home}{Delete} ; delete to home
  62. #Delete::send +{End}{Delete} ; delete to end
  63. *f13::send {Blind}{PrintScreen} ; F13 -> print screen
  64. *f15::send {Blind}{Break} ; F15 -> break
  65. #[::send {Browser_Back} ; back
  66. #]::send {Browser_Forward} ; forward
  67.  
  68. ; === layout ===
  69. CapsLock::
  70. send, {Alt Down}{Shift Down}{Shift Up}{Alt Up}
  71. ; run c:\Projects\CapsLedFromLayout\Release\CapsLedFromLayout.exe
  72. return
  73.  
  74. ; === file navigation ===
  75. #Up::send ^{Home} ; file home
  76. +#Up::send +^{Home} ; select to file home
  77. #Down::send ^{End} ; file end
  78. +#Down::send +^{End} ; select to file end
  79. #Left::send {home} ; home
  80. +#Left::send +{home}{esc} ; select to home
  81. #Right::send {end} ; end
  82. +#Right::send +{end}{esc} ; select to end
  83. !Left::send ^{left} ; alt-left
  84. !+Left::send ^+{left} ; alt-shift-left
  85. !Right::send ^{right} ; alt-right
  86. !+Right::send ^+{right} ; alt-shift-right
  87.  
  88. ; === total commander ===
  89. #+e::send {f4} ; edit
  90.  
  91. ; === sublime text ===
  92. #b::send ^{sc030} ; build
  93. #+p::send ^+{sc019} ; commands list
  94.  
  95. ; === extra ===
  96. ; sleep computer
  97. #f19::
  98. DllCall("PowrProf\SetSuspendState", "int", 0, "int", 0, "int", 0)
  99. return
  100.  
  101. ; lock computer
  102. f16::
  103. Run rundll32.exe user32.dll`,LockWorkStation
  104. return
  105.  
  106. ; options
  107. #,::send ^!+o ; options remapping
  108.  
  109. ; disable start key
  110. LWin::return
  111. RWin::return
  112.  
  113. ; cmd+space (spotlight search)
  114. RWin & Space::send ^{esc}
  115. LWin & Space::send ^{esc}
  116.  
  117. ; resharper navigation
  118. #\::send !\ ; Search Member in File
  119. #+t::send !+{sc014} ; Open symbol
  120.  
  121. ; === apps ===
  122. #!^b::
  123. SetTitleMatchMode 2
  124. IfWinExist `Google Chrome`
  125. {
  126. WinActivate
  127. }
  128. else
  129. {
  130. run %userprofile%\AppData\Local\Google\Chrome\Application\chrome.exe
  131. WinWait `Google Chrome`
  132. WinActivate
  133. }
  134. return
  135.  
  136. #!^e::
  137. run `c:\Soft\SublimeText\sublime_text.exe`
  138. return
  139.  
  140. #!^l::
  141. SetTitleMatchMode 2
  142. IfWinExist `Total Commander`
  143. {
  144. WinActivate
  145. }
  146. else
  147. {
  148. run `c:\Soft\Total Commander\TotalCmd.exe`
  149. WinWait `Total Commander`
  150. WinActivate
  151. }
  152. return
  153.  
  154. #!^k::
  155. SetTitleMatchMode 2
  156. IfWinExist `1Password`
  157. {
  158. WinActivate
  159. }
  160. else
  161. {
  162. run `c:\Program Files (x86)\1Password\1Password.exe`
  163. WinWait `1Password`
  164. WinActivate
  165. }
  166. return
  167.  
  168. #!^t::
  169. run C:\Experiments\Console2\Console.exe
  170. return
  171.  
  172. #!^f::
  173. send #e
  174. return
  175.  
  176. #!^,::
  177. run control
  178. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement