Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Script to perform a 360 over a series of mouse inputs (takes some times to run, not intended for use in play)
- HotKeySet("{INS}", "TestMouse")
- While 1
- Sleep(1000)
- WEnd
- Func TestMouse()
- $partition = 900 ; how many movements to perform in a single go. Don't let this exceed half of your resolution.
- $delay = 50 ; delay in milliseconds between movements. Making this too low is prone to causing dropped inputs.
- ; $totalcount = 14239 ; perfect 360 in OW at 3.83
- ; $totalcount = 37471 ; perfect 360 in OW at 3.83 sens scoped with 38 sens multiplier
- $totalcount = 14227 ; perfect 360 in quake/source at 1.15
- While $totalcount > $partition
- _MouseMovePlus($partition,0)
- $totalcount = $totalcount - $partition
- Sleep($delay)
- WEnd
- _MouseMovePlus($totalcount,0) ; and do the leftover
- EndFunc
- Func _MouseMovePlus($X = "", $Y = "")
- Local $MOUSEEVENTF_MOVE = 0x1
- DllCall("user32.dll", "none", "mouse_event", _
- "long", $MOUSEEVENTF_MOVE, _
- "long", $X, _
- "long", $Y, _
- "long", 0, _
- "long", 0)
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement