Advertisement
Guest User

Authotkey IJKL arrow keys

a guest
Nov 9th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.96 KB | None | 0 0
  1. LAlt & j::
  2. If GetKeyState("LShift") and GetKeyState("LCtrl")
  3. Send +^{Left}
  4. Else If GetKeyState("LShift")
  5. Send +{Left}
  6. Else If GetKeyState("LCtrl")
  7. Send ^{Left}
  8. Else If GetKeyState("RAlt")
  9. Send !{Left}
  10. Else If WinActive("ahk_class TaskSwitcherWnd")
  11. SendInput {LAlt Down}{Left}
  12. Else If WinActive("ahk_class MultitaskingViewFrame")
  13. SendInput {LAlt Down}{Left}
  14. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  15. Send +!{Left}
  16. Else
  17. Send {Left}
  18. Return
  19.  
  20. LAlt & u::
  21. If GetKeyState("LShift") and GetKeyState("LCtrl")
  22. Send +^{Left 4}
  23. Else If GetKeyState("LShift")
  24. Send +{Left 4}
  25. Else If GetKeyState("LCtrl")
  26. Send ^{Left 4}
  27. Else If GetKeyState("RAlt")
  28. Send !{Left 4}
  29. Else If WinActive("ahk_class TaskSwitcherWnd")
  30. SendInput {LAlt Down}{Left 4}
  31. Else If WinActive("ahk_class MultitaskingViewFrame")
  32. SendInput {LAlt Down}{Left 4}
  33. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  34. Send +!{Left 4}
  35. Else
  36. Send {Left 4}
  37. Return
  38.  
  39. LAlt & l::
  40. If GetKeyState("LShift") and GetKeyState("LCtrl")
  41. Send +^{Right}
  42. Else If GetKeyState("LShift")
  43. Send +{Right}
  44. Else If GetKeyState("LCtrl")
  45. Send ^{Right}
  46. Else If GetKeyState("RAlt")
  47. Send !{Right}
  48. Else If WinActive("ahk_class TaskSwitcherWnd")
  49. SendInput {LAlt Down}{Right}
  50. Else If WinActive("ahk_class MultitaskingViewFrame")
  51. SendInput {LAlt Down}{Right}
  52. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  53. Send +!{Right}
  54. Else
  55. Send {Right}
  56. Return
  57.  
  58. LAlt & o::
  59. If GetKeyState("LShift") and GetKeyState("LCtrl")
  60. Send +^{Right 4}
  61. Else If GetKeyState("LShift")
  62. Send +{Right 4}
  63. Else If GetKeyState("LCtrl")
  64. Send ^{Right 4}
  65. Else If GetKeyState("RAlt")
  66. Send !{Right 4}
  67. Else If WinActive("ahk_class TaskSwitcherWnd")
  68. SendInput {LAlt Down}{Right 4}
  69. Else If WinActive("ahk_class MultitaskingViewFrame")
  70. SendInput {LAlt Down}{Right 4}
  71. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  72. Send +!{Right 4}
  73. Else
  74. Send {Right 4}
  75. Return
  76.  
  77. LAlt & i::
  78. If GetKeyState("LShift") and GetKeyState("LCtrl")
  79. Send +^{Up}
  80. Else If GetKeyState("LShift")
  81. Send +{Up}
  82. Else If GetKeyState("LCtrl")
  83. Send ^{Up}
  84. Else If GetKeyState("RAlt")
  85. Send !{Up}
  86. Else If WinActive("ahk_class TaskSwitcherWnd")
  87. SendInput {LAlt Down}{Up}
  88. Else If WinActive("ahk_class MultitaskingViewFrame")
  89. SendInput {LAlt Down}{Up}
  90. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  91. Send +!{Up}
  92. Else
  93. Send {Up}
  94. Return
  95.  
  96. LAlt & 8::
  97. If GetKeyState("LShift") and GetKeyState("LCtrl")
  98. Send +^{Up 4}
  99. Else If GetKeyState("LShift")
  100. Send +{Up 4}
  101. Else If GetKeyState("LCtrl")
  102. Send ^{Up 4}
  103. Else If GetKeyState("RAlt")
  104. Send !{Up 4}
  105. Else If WinActive("ahk_class TaskSwitcherWnd")
  106. SendInput {LAlt Down}{Up 4}
  107. Else If WinActive("ahk_class MultitaskingViewFrame")
  108. SendInput {LAlt Down}{Up 4}
  109. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  110. Send +!{Up 4}
  111. Else
  112. Send {Up 4}
  113. Return
  114.  
  115. LAlt & k::
  116. If GetKeyState("LShift") and GetKeyState("LCtrl")
  117. Send +^{Down}
  118. Else If GetKeyState("LShift")
  119. Send +{Down}
  120. Else If GetKeyState("LCtrl")
  121. Send ^{Down}
  122. Else If GetKeyState("RAlt")
  123. Send !{Down}
  124. Else If WinActive("ahk_class TaskSwitcherWnd")
  125. SendInput {LAlt Down}{Down}
  126. Else If WinActive("ahk_class MultitaskingViewFrame")
  127. SendInput {LAlt Down}{Down}
  128. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  129. Send +!{Down}
  130. Else
  131. Send {Down}
  132. Return
  133.  
  134. LAlt & ,::
  135. If GetKeyState("LShift") and GetKeyState("LCtrl")
  136. Send +^{Down 4}
  137. Else If GetKeyState("LShift")
  138. Send +{Down 4}
  139. Else If GetKeyState("LCtrl")
  140. Send ^{Down 4}
  141. Else If GetKeyState("RAlt")
  142. Send !{Down 4}
  143. Else If WinActive("ahk_class TaskSwitcherWnd")
  144. SendInput {LAlt Down}{Down 4}
  145. Else If WinActive("ahk_class MultitaskingViewFrame")
  146. SendInput {LAlt Down}{Down 4}
  147. Else If GetKeyState("RAlt") and GetKeyState("LShift")
  148. Send +!{Down 4}
  149. Else
  150. Send {Down 4}
  151. Return
  152.  
  153. LAlt & h::
  154. If GetKeyState("LShift") and GetKeyState("LCtrl")
  155. Send +^{Home}
  156. Else If GetKeyState("LShift")
  157. Send +{Home}
  158. Else If GetKeyState("LCtrl")
  159. Send ^{Home}
  160. Else
  161. Send {Home}
  162. Return
  163.  
  164. LAlt & SC027:: ; semicolon
  165. If GetKeyState("LShift") and GetKeyState("LCtrl")
  166. Send +^{End}
  167. Else If GetKeyState("LShift")
  168. Send +{End}
  169. Else If GetKeyState("LCtrl")
  170. Send ^{End}
  171. Else
  172. Send {End}
  173. Return
  174.  
  175. LAlt & y::
  176. If GetKeyState("LShift") and GetKeyState("LCtrl")
  177. Send +^{PgUp}
  178. Else If GetKeyState("LShift")
  179. Send +{PgUp}
  180. Else If GetKeyState("LCtrl")
  181. Send ^{PgUp}
  182. Else
  183. Send {PgUp}
  184. Return
  185.  
  186. LAlt & p::
  187. If GetKeyState("LShift") and GetKeyState("LCtrl")
  188. Send +^{PgDn}
  189. Else If GetKeyState("LShift")
  190. Send +{PgDn}
  191. Else If GetKeyState("LCtrl")
  192. Send ^{PgDn}
  193. Else
  194. Send {PgDn}
  195. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement