Página 1 de 1

Change the position of the mouse cursor

Publicado: Lun Mar 26, 2012 3:43 pm
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

Change the position of the mouse cursor

Publicado: Lun Mar 26, 2012 8:28 pm
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,

Change the position of the mouse cursor

Publicado: Lun Mar 26, 2012 9:14 pm
por emeasoft
Thanks Ignacio!
It worked very well.
Regards,
Juliano