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
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