LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to set the mouse position?

Hello,
 
Labwindows has several functions to obtain the current mouse position. But what I need to do is SET the mouse cursor to a certain position on the screen. Is there a way to do this or am I stuck?

Message Edited by Wim S on 02-21-2006 09:56 AM

0 Kudos
Message 1 of 3
(3,458 Views)
I haven't tried it myself, but I understand that the Windows SDK function SendInput() can perform this function.
 
JR
0 Kudos
Message 2 of 3
(3,446 Views)
SetCursorPos(x,y) works, too.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
0 Kudos
Message 3 of 3
(3,439 Views)