Since Egor always help, this is intended to show him the problem, but if you know how to solve, please help too!
https://youtu.be/J2vRfnUplio <<< this is how the script should work. (look at the descripition for more info)
https://youtu.be/HH_MmfXUdl8 <<< This is how it doing now, at windows newer versions.
Having problems with Sleep() func on MouseMoveRelative on LUA
^^ This is the last question that shows the problem and you helped me there
GHUB has the same version on both, so isnt GHUB the problem.
Sleep(1) wont behave like it should, my best guess is that windows changed something but WHAT is the question.
Someone help?
Sleep(1)
. Its behavior depends on Windows version, number of CPU cores and total CPU load.Sleep
has 15 ms precision. And you never really need 1 ms precision when simulating mouse movement. The solution to your problem is to recalculate the mouse trajectory using 30 ms time intervals and useSleep(30)
in your code. To make mouse move faster increasedx
anddy
instead of decreasingdelay
. – Egor SkriptunoffSleep(1)
in the previous Windows versions. Do not rely on luck. Write robust and stable code. – Egor SkriptunoffSleep(1)
actually means "wait from 0 to 15 ms, IDK how long exactly". It is not suitable for simulating mouse movement. – Egor Skriptunoff