LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

navigate the mouse and keyboard activities with LV?

Is it possible with LV to navigate the mouse and keyboard activities or do I need an other programming language?
 
I know there are some VI's I can collect the datainputs from mouse or keyboard, but is it also possible e.g. to navigate the mouse to specific coordinates by the program?
 
Thanks
Petric
0 Kudos
Message 1 of 4
(2,763 Views)
LabVIEW itself does not have this built-in, but you can call OS functions to do this and by searching for "simulate mouse" or something similar you can find quite a few examples (like this one). The same holds true for simulating keyboard clicks.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,757 Views)
Petric,

you can't move the mouse using ANY software. Because it is on the table in front of you. 😉

But you can move the CURSOR !

What you need is a DLL call from the Win32 API.

Have a look here:
http://msdn2.microsoft.com/en-us/library/ms648394.aspx

and a look at the screenshot.

Best regars,

Balze
0 Kudos
Message 3 of 4
(2,754 Views)

Thanks for your tips!

I think the best way is to use the User32.dll. There are some specified vi's for it, e.g. "set_cursor_position.vi" or "SimulateKeypress.vi".

Regards Petric

0 Kudos
Message 4 of 4
(2,714 Views)