LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView register chracter on key release

Hi,

 

I'm using labview for a current project dealing with keyboard input into a string control box.  But my boss however wants to get rid of the property that when you press and hold a key down, it will only register as one key.

 

i.e. key [a] held down = 'aaaaaaaaaaaaaaaaaaaaaaaa'

     End result desired = 'a'

 

I can't find an existing property, even any ideas on how to approach this problem would be deeply appreciated!

0 Kudos
Message 1 of 4
(2,668 Views)
Use the event structure to register for the Key Repeat? event for the control (note the ?, it's a filter event). This will provide you with a terminal on the right side of the event case which allows you to discard the event.

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

thanks for the helpful input tst !

i'm a bit new at using event structures, do you think it's possible to clarify in steps to get ride of the key repeat?

thanks, ur of great help !

0 Kudos
Message 3 of 4
(2,624 Views)

Like this:

 

Key_Repeat.png

 

 

You can drag the image into LV 2009 to convert it into code.


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