ProgMaster90

Shooting correction

Jul 29th, 2021 (edited)
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MaxStep := 60  
  2.  
  3. ~*LButton::
  4.     While GetKeyState("LButton", "P")   {
  5.         if (A_Index <= MaxStep)
  6.             DllCall("mouse_event", uint, 1, int, 0, int, 1, uint, 0, int, 0)
  7.         var := A_Index >= MaxStep ? MaxStep : A_Index
  8.         Sleep, 10
  9.     }
  10.     DllCall("mouse_event", uint, 1, int, 0, int, -var, uint, 0, int, 0)
  11.     return    
Add Comment
Please, Sign In to add comment