Advertisement
Guest User

Cultris I - 1key-finesse

a guest
Nov 26th, 2015
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 2.35 KB | None
  1. ;sendmode input
  2. sendmode event
  3. setkeydelay -1, -1
  4. setbatchlines -1
  5. process, priority,, high
  6. #maxthreads 1
  7. #maxthreadsperhotkey 1
  8. mode := 0
  9. sonic := 0
  10.  
  11. *ß::suspend
  12.  
  13. *tab::
  14. suspend
  15. send {tab}
  16. return
  17.  
  18. *l:: mode := 1 - mode
  19.  
  20. *o:: sonic := 2
  21. *k:: sonic := 1
  22. *i:: sonic := 3
  23.  
  24. ; 1 rotated and left
  25. *g::
  26. if ( mode = 0 )
  27.     send {Numpad4 5}
  28. else
  29.     send {r 2}{Numpad4 5}
  30. goto postmove
  31.  
  32. *a::
  33. if ( mode = 0 )
  34.     send {Numpad4 4}
  35. else
  36.     send {r 2}{Numpad4 5}
  37. goto postmove
  38.  
  39. *s::
  40. if ( mode = 0 )
  41.     send {Numpad4 3}
  42. else
  43.     send {r 2}{Numpad4 4}
  44. goto postmove
  45.  
  46. *d::
  47. if ( mode = 0 )
  48.     send {Numpad4 2}
  49. else
  50.     send {r 2}{Numpad4 3}
  51. goto postmove
  52.  
  53. *f::
  54. if ( mode = 0 )
  55.     send {Numpad4 1}
  56. else
  57.     send {r 2}{Numpad4 2}
  58. goto postmove
  59.  
  60. ; 1 rotated and right
  61. *space::
  62. if ( mode = 0 )
  63.     send {Numpad8 0}
  64. else
  65.     send {r 2}{Numpad4 1}
  66. goto postmove
  67.  
  68. *ralt::
  69. if ( mode = 0 )
  70.     send {Numpad8 1}
  71. else
  72.     send {r 2}{Numpad8 0}
  73. goto postmove
  74.  
  75. *ö::
  76. if ( mode = 0 )
  77.     send {Numpad8 2}
  78. else
  79.     send {r 2}{Numpad8 1}
  80. goto postmove
  81.  
  82. *ä::
  83. if ( mode = 0 )
  84.     send {Numpad8 3}
  85. else
  86.     send {r 2}{Numpad8 2}
  87. goto postmove
  88.  
  89. *#::
  90. if ( mode = 0 )
  91.     send {Numpad8 4}
  92. else
  93.     send {r 2}{Numpad8 3}
  94. goto postmove
  95.  
  96. ; 0 or 2 rotated and left
  97. *e::
  98. if ( mode = 0 )
  99.     send {r}{Numpad4 4}
  100. else
  101.     send {e}{Numpad4 4}
  102. goto postmove
  103.  
  104. *q::
  105. if ( mode = 0 )
  106.     send {r}{Numpad4 3}
  107. else
  108.     send {e}{Numpad4 3}
  109. goto postmove
  110.  
  111. *w::
  112. if ( mode = 0 )
  113.     send {r}{Numpad4 2}
  114. else
  115.     send {e}{Numpad4 2}
  116. goto postmove
  117.  
  118. *r::
  119. if ( mode = 0 )
  120.     send {r}{Numpad4 1}
  121. else
  122.     send {e}{Numpad4 1}
  123. goto postmove
  124.  
  125. ; 0 or 2 rotated and right
  126. *t::
  127. if ( mode = 0 )
  128.     send {r}{Numpad8 0}
  129. else
  130.     send {e}{Numpad8 0}
  131. goto postmove
  132.  
  133. *p::
  134. if ( mode = 0 )
  135.     send {r}{Numpad8 1}
  136. else
  137.     send {e}{Numpad8 1}
  138. goto postmove
  139.  
  140. *ü::
  141. if ( mode = 0 )
  142.     send {r}{Numpad8 2}
  143. else
  144.     send {e}{Numpad8 2}
  145. goto postmove
  146.  
  147. *+::
  148. if ( mode = 0 )
  149.     send {r}{Numpad8 3}
  150. else
  151.     send {e}{Numpad8 3}
  152. goto postmove
  153.  
  154. postmove:
  155. if ( sonic = 0 )
  156.     send {g}
  157. else
  158.     send {Numpad9 down}
  159. mode := 0
  160. return
  161.  
  162.  
  163. a up::
  164. s up::
  165. d up::
  166. f up::
  167. Space up::
  168. RAlt up::
  169. ö up::
  170. ä up::
  171. # up::
  172. g up::
  173. q up::
  174. w up::
  175. e up::
  176. r up::
  177. t up::
  178. p up::
  179. ü up::
  180. + up::
  181. if ( sonic = 0 )
  182.     return
  183. send {Numpad9 up}
  184. if ( sonic = 1 )
  185.     send {Numpad4 3}{g}
  186. else if ( sonic = 2 )
  187.     send {Numpad8 3}{g}
  188. sonic := 0
  189. return
Advertisement
RAW Paste Data Copied
Advertisement