NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

read keyboard

I want to read out the keyboard from teststand. I have VIs, that can read
the keyboard, but If this VIs are called from testStand, there are not reading
the keyboard unless LabVIEW is not in front.

As next I tried to use a API function and I found GetKeyState in the User32.dll.
The DLL-function works, if I call it from LabVIEW. But LabVIEW must also
be in the foreground; otherwise this VI works not, if it is caled from TestStand.

Then I called the DLL function directly from TestStand, using the DLL flexible
prototype adapter, but it works not. Later, my collegue told me, that he
has success, but he was working on Windows NT. So we came to the conclusion,
that the function works on Windows NT, but not on Windows 98
0 Kudos
Message 1 of 2
(4,772 Views)
Hi Dirk,

what is it that you are trying to accomplish? Are you trying to
continuously monitor the keyboard? Or are do you need to detect a certain
key stroke at a certain time?

I'm not sure if I can help you out, but you've got me curious...

Denis
"Dirk Schueller-Moeller" wrote in message
news:39e2bbe6@newsgroups.ni.com...
>
> I want to read out the keyboard from teststand. I have VIs, that can read
> the keyboard, but If this VIs are called from testStand, there are not
reading
> the keyboard unless LabVIEW is not in front.
>
> As next I tried to use a API function and I found GetKeyState in the
User32.dll.
> The DLL-function works, if I call it from LabVIEW. But LabVIEW must also
> be in the foreground; otherwise this VI works not
, if it is caled from
TestStand.
>
> Then I called the DLL function directly from TestStand, using the DLL
flexible
> prototype adapter, but it works not. Later, my collegue told me, that he
> has success, but he was working on Windows NT. So we came to the
conclusion,
> that the function works on Windows NT, but not on Windows 98
0 Kudos
Message 2 of 2
(4,772 Views)