i want the auto it script to be able to keep the mouse from moving up but allow it to move left and right ...any help ..tried multiple things this is the closest i could get but it brings the gun straight to the floor!
#include <Misc.au3>
Local $hDLL = DllOpen("user32.dll")
Global $Paused, $counter = 0
HotKeySet("{F1}", "TogglePause")
HotKeySet("{F2}", "Terminate")
NoRecoil()
Func NoRecoil()
While 1
$pos = MouseGetPos()
$ypos = $pos[0]
$xpos = $pos[1]
If _IsPressed("01", $hDLL) Then
MouseMove($ypos, $xpos+1)
EndIf
WEnd
EndFunc ;=>NoRecoil
; kill pause command codes
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
;ToolTip('Script is "Paused"',0,0, $counter, 1)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc