Mouse Movement

Ask gaming related questions (AHK v1.1 and older)
RedPowerRanger
Posts: 2
Joined: 17 May 2017, 15:01

Mouse Movement

17 May 2017, 15:20

Hey Guys!
I have kind of a problem i cant seem to fix , so i have been working on a simple mouse macro for a game. This is the Code

Code: Select all

Hotkey, ~LButton, Fire
Fire:
While (GetKeyState("LButton", "P")) 
{
move(10,0)
sleep 50
	   
	   loop
		{
			if GetKeyState("LButton", "P")
			{
				Sleep 10
				move(0,1)
			}
			else 
			{
				break
			}
		}
}
return

move(x, y) {
	DllCall("mouse_event", uint, 1, int, x, int, y, uint, 0, int, 0)
}
return
The problem is their is a specific weapon in the game for when the "move(0,1)" value is high and i would like to decrease the mouse pull down. One way of doing this is to increase the "Sleep Ms" value. however this results in a choppy mouse movement specially on higher "move(0,50)" values such as 50 due to some weapons having very high recoil.

So can you help me to find a solution to slow down the default mouse move unit without changing the "Sleep parameter". this will allow me to make fine movement by increasing the move value and maintain movement smoothness. The goal is to achieve smooth mouse movement and high level of movement customization (from very slow mouse movement to high speed).

Thanks in advance

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 82 guests