LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controling the mouse and keyboard from vi while used by another program?

Hello
I would like to control the external application (written in
Visual C) by means of labview. The problem is that I have a
software controling a production line. In one measurement session
only couple of activities have to be done by the operator, but
those sessions can be 200 in measurement process. Those
activities are mostly managed by clicking the mouse and pressing
the keyboard (in the same way).
So I want to build some automatisation program, which will
replace the operator in the right time, when is not much to do
appart from simple clicking. So my question is:
how can I control mouse and keyboard from the vi, when another
program whish to take it over.
I remember in Win 31, there was
a nice program called "recorder"
or something like this. It allows to record some standard
activities to be performed every time. Is this possible using
Labview.
regards
PP
0 Kudos
Message 1 of 2
(1,465 Views)
You should be able to make Windows API function calls from LabVIEW to control the mouse and keyboard. Here are a couple links to check out:

Keyboard Utilities for Capturing Keystrokes
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/832b604cb371a54686256540004f7b3c?OpenDocument

Windows API Function Utilities (32-bit) for LabVIEW
http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/ebf11dd1f0feaef3862566790072a983?OpenDocument

There is a ton of information on the web about this subject that you can search for as well.
0 Kudos
Message 2 of 2
(1,465 Views)