Page 1 of 1

Try to put decimal value in XY axis mouseevent

Posted: 15 Jan 2018, 06:01
by CPLNet
Hi there im trying to put decimal value in "sleep" and XY mouseevent value someone can help me ??

greats,

Re: Try to put decimal value in XY axis mouseevent

Posted: 15 Jan 2018, 06:43
by CPLNet
help please

Re: Try to put decimal value in XY axis mouseevent

Posted: 15 Jan 2018, 07:09
by evilC
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.

Re: Try to put decimal value in XY axis mouseevent

Posted: 15 Jan 2018, 07:45
by CPLNet
ok thx a lot for faster response :)