I am trying to use MouseMove in a FPS game (windowed.)
Whenever I try to use MouseMove, the player spins rapidly at the ground or at the sky.
This has happened in 2 games I have tried, here is the part of my code that moves the mouse:
Code:
If $enabled = 1 Then
If _IsPressed("01", $dll) = 1 Then
Do
$result = _ImageSearch($picture,1,$x1,$y1,0,0)
Until $result = 1
If $result = 1 Then
MouseMove($x1,$y1,50)
EndIf
EndIf
EndIf
I have tried changing the speed of the MouseMove higher and lower, and it does the same thing. (I've tried 5, 50, 500, and 5000 speed).
This color / image is not in the game anywhere else, only where I am trying to aim.
EDIT: After making this post I tried using
Code:
_WinAPI_Mouse_Event($MOUSEEVENTF_MOVE, $x1, $y1)
And it's better, instead of spinning it moves my aim to the ground but not completely down.
Any help would be greatly appreciated.