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
(1,462 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
(1,461 Views)