Guest User

AHKscript to simulate InstantDAS on older Cultris 2 versions

a guest
Aug 8th, 2013
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setbatchlines -1
  2. SendMode Input
  3. SetKeyDelay -1,-1
  4. holdTime := 108 ; number of miliseconds you have to hold down left/right to moves the piece to the wall
  5. rightHold := 0
  6. leftHold := 0
  7.  
  8. ; deactivate Hotkeys = ^
  9. ; Move Left = Numpad4
  10. ; Move Right = Numpad8
  11. ; Drop Piece = g
  12. ; Rotate Clockw. = r
  13. ; Rotate Countercw = e
  14. ; Rotate 180 = w
  15.  
  16. ^:: suspend
  17.  
  18. *w::
  19. if ( rightHold )
  20.     send {e 2}{Numpad8 2}
  21. else if ( leftHold )
  22.     send {e 2}{Numpad4 2}
  23. else
  24.     send {e 2}
  25. return
  26.  
  27. *e::
  28. if ( rightHold )
  29.     send {e 1}{Numpad8 2}
  30. else if ( leftHold )
  31.     send {e 1}{Numpad4 2}
  32. else
  33.     send {e 1}
  34. return
  35.  
  36. *r::
  37. if ( rightHold )
  38.     send {r 1}{Numpad8 2}
  39. else if ( leftHold )
  40.     send {r 1}{Numpad4 2}
  41. else
  42.     send {r 1}
  43. return
  44.  
  45. *g::
  46. Send {g}
  47. return
  48. g up::
  49. if ( leftHold )
  50.     Send {Numpad4 5}
  51. else if ( rightHold )
  52.     Send {Numpad8 5}
  53. return
  54.  
  55. *Numpad4::
  56. Send {Numpad4}
  57. SetTimer, leftDown, -%holdTime%
  58. return
  59. leftDown:
  60. leftHold := 1
  61. Send {Numpad4 8}
  62. Return
  63. Numpad4 Up::
  64. SetTimer, leftDown, off
  65. leftHold := 0
  66. return
  67.  
  68. *Numpad8::
  69. Send {Numpad8}
  70. SetTimer, rightDown, -%holdTime%
  71. return
  72. rightDown:
  73. rightHold := 1
  74. Send {Numpad8 8}
  75. Return
  76. Numpad8 Up::
  77. SetTimer, rightDown, off
  78. rightHold := 0
  79. return
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×