Try to put decimal value in XY axis mouseevent

Ask gaming related questions (AHK v1.1 and older)
CPLNet
Posts: 53
Joined: 06 Dec 2016, 11:24

Try to put decimal value in XY axis mouseevent

15 Jan 2018, 06:01

Hi there im trying to put decimal value in "sleep" and XY mouseevent value someone can help me ??

greats,
User avatar
evilC
Posts: 4823
Joined: 27 Feb 2014, 12:30

Re: Try to put decimal value in XY axis mouseevent

15 Jan 2018, 07:09

No. Mouse movement is in pixels, and you cannot sub-divide a pixel.
Sleep is in milliseconds, and cannot be a decimal. Furthermore, any values for sleep below ~10 will not yield a shorter sleep.

It *is* possible to send smaller movement than one pixel, but not by moving the cursor. The x / y params in a mouse_event dllcall (DllCall("mouse_event", uint, 2, int, x, int, y, uint, 0, int, 0)) are in "Mickeys". One mickey is quite probably less than one pixel.
CPLNet
Posts: 53
Joined: 06 Dec 2016, 11:24

Re: Try to put decimal value in XY axis mouseevent

15 Jan 2018, 07:45

ok thx a lot for faster response :)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 127 guests