Advertisement
Mangus875

precise steering v2

Feb 26th, 2025 (edited)
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey v2.0
  2. #SingleInstance
  3.  
  4. SetKeyDelay 0, 0
  5. A_HotkeyInterval := 0
  6. SendMode "input"
  7. CoordMode "tooltip", "screen"
  8.  
  9. #R::reload
  10. #UseHook 1
  11.  
  12. keys := ["Numpad0", "2", "3", "4", "5"]
  13. ak := [0,0,0,0,0]
  14. lastAk := 0
  15.  
  16. *Numpad0:: {
  17.     global
  18.     thisKey := 1
  19.    
  20.     akCount := 0
  21.     loop ak.length
  22.         akCount += ak[A_Index]
  23.     if (akCount >= 2)
  24.         return
  25.     Send "{" keys[thisKey] "}"
  26.     ak[thisKey] := 1
  27.     lastAk := thisKey
  28.     KeyWait keys[thisKey]
  29.     ak[thisKey] := 0
  30.     Send keys[5]
  31.     lastAk := 0
  32. }
  33.  
  34. *2:: {
  35.     global
  36.     thisKey := 2
  37.    
  38.     akCount := 0
  39.     loop ak.length
  40.         akCount += ak[A_Index]
  41.     if (akCount >= 2)
  42.         return
  43.     Send "{" keys[thisKey] "}"
  44.     tooltip "ak2 down", 10, 10, 1
  45.     ak[thisKey] := 1
  46.     lastAk := thisKey
  47.     KeyWait keys[thisKey]
  48.     tooltip "ak2 up", 10, 10, 1
  49.     ak[thisKey] := 0
  50.     Send keys[5]
  51.     lastAk := 0
  52. }
  53.  
  54. *3:: {
  55.     global
  56.     thisKey := 3
  57.    
  58.     akCount := 0
  59.     loop ak.length
  60.         akCount += ak[A_Index]
  61.     if (akCount >= 2)
  62.         return
  63.     Send "{" keys[thisKey] "}"
  64.     tooltip "ak3 down", 10, 30, 2
  65.     ak[thisKey] := 1
  66.     lastAk := thisKey
  67.     KeyWait keys[thisKey]
  68.     tooltip "ak3 up", 10, 30, 2
  69.     ak[thisKey] := 0
  70.     Send keys[5]
  71.     lastAk := 0
  72. }
  73.  
  74. *4:: {
  75.     global
  76.     thisKey := 4
  77.    
  78.     akCount := 0
  79.     loop ak.length
  80.         akCount += ak[A_Index]
  81.     if (akCount >= 2)
  82.         return
  83.     Send "{" keys[thisKey] "}"
  84.     ak[thisKey] := 1
  85.     lastAk := thisKey
  86.     KeyWait keys[thisKey]
  87.     ak[thisKey] := 0
  88.     Send keys[5]
  89.     lastAk := 0
  90. }
  91.  
  92. *5:: {
  93.     global
  94.     thisKey := 5
  95.    
  96.     akCount := 0
  97.     loop ak.length
  98.         akCount += ak[A_Index]
  99.     if (akCount >= 2)
  100.         return
  101.     Send "{" keys[thisKey] "}"
  102.     ak[thisKey] := 1
  103.     lastAk := thisKey
  104.     KeyWait keys[thisKey]
  105.     ak[thisKey] := 0
  106.     Send keys[5]
  107.     lastAk := 0
  108. }
  109.  
  110.  
  111. *Left:: {
  112.     global
  113.     akCount := 0
  114.     loop ak.length
  115.         akCount += ak[A_Index]
  116.     if (akCount == 2) {
  117.        
  118.     }
  119. }
  120.  
  121. *Right:: {
  122. }
  123.  
  124. ;setTimer(info, 50)
  125. info() {
  126.     global
  127.     tooltip ak[1] "`n" ak[2] "`n" ak[3] "`n" ak[4] "`n" ak[5], 10, 10
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement