In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Change the position of the mouse cursor

Xailer professional forum in English
Responder
Avatar de Usuario
emeasoft
Mensajes: 1094
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

Change the position of the mouse cursor

Mensaje por emeasoft »

Hello Xailers,
I want to know if is there any way to change the mouse cursor position. eg.: I want to move the mouse cursor to a button when a message form opens.
I tried with the MSetPos() but it is only for fullscreen and console aplication, right?
Is there any other function that i can use to do this?
Thanks,
Juliano
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9447
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Change the position of the mouse cursor

Mensaje por ignacio »

emeasoft escribió el lun, 26 marzo 2012 15:43Hello Xailers,
I want to know if is there any way to change the mouse cursor position. eg.: I want to move the mouse cursor to a button when a message form opens.
I tried with the MSetPos() but it is only for fullscreen and console aplication, right?
Is there any other function that i can use to do this?
Thanks,
Juliano
SetCursorPos( nX, nY )
BTW, you should take care that nX and nY are screen coordinates.
Regards,
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder