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?
Insert the following block of code at the beginning of your script, before
OnEvent()
functionAfter that you can use function
FastSleep(delay)
in your script for small time intervals.Example:
For big time intervals (for example, 30 ms or more) standard
Sleep()
is preferred.