From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to control the position of the windows mouse pointer and hence drive the windows interface from another device. Does anybody know how to do this, please help!

Iam using a point light source via a web cam to establish x and y co-ords. I want to use these co-ords to drive the windows mouse pointer and hence the windows interface. Please help!
0 Kudos
Message 1 of 2
(2,416 Views)
Hi,
You may use the WinAPI function from user32.dll
long SetCursorPos(long x, long y);
to move the mouse cursor to the point you need. Read about this function at
http://www.vbapi.com/ref/s/setcursorpos.html
To call this function you may use "Functions/advanced/Call library function".

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 2
(2,415 Views)