LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get character from keyboard

Hi every boby

 

 i'm going to get character from keyboard. so i use initialize keyboard vi for recognize device and acquaire input data vi for geting that.

this vi is good you can get char even another window is open but there are some problems.

first you can`t seperate small and captal character.

second I couldn`t recognize free state (state that any key pressed).

could you please help me?

thanks

0 Kudos
Message 1 of 11
(3,535 Views)

Can you post what you have so far?

Just attach the VI (or VI's if you have subvis) to your message (see Attachments below message body box).

0 Kudos
Message 2 of 11
(3,533 Views)

I`m sorry.

 

0 Kudos
Message 3 of 11
(3,518 Views)

Have a look at the attached modified code.

 

The regular keys appear in: keys

The other buttons appear in: VKey

 

Or the ScanCode.

0 Kudos
Message 4 of 11
(3,495 Views)

thanks but I use LABVIEW ver 11 and it`s not compatible with your file.

0 Kudos
Message 5 of 11
(3,478 Views)

Sorry about that. 

 

It's in version 2010.

 

0 Kudos
Message 6 of 11
(3,456 Views)

thank you

but if you run LABVIEW and you open calculator for example, you can`t catch any key exept you click on LABVIEW window again.

i attached an image for more detail.

0 Kudos
Message 7 of 11
(3,445 Views)

Oh.. I didn't realize you wanted to sniff the keyboard while another application is running.  I seem to recall something about that, but will have to  search for it.

0 Kudos
Message 8 of 11
(3,441 Views)
dear sir. I want add some emergency keys to program and use them in all situation.
do you check sent VI? it`s good VI but it has some weakness.
0 Kudos
Message 9 of 11
(3,435 Views)

are there any idea?

 

Smiley Tongue

0 Kudos
Message 10 of 11
(3,396 Views)