LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controling led with prtsc, lwin, rwin, tab and space. (Labview 2024 q1)

i think now it will work, i choose 20 version

0 Kudos
Message 11 of 13
(148 Views)

OK, so you have an entire virtual keyboard composed of lose LEDs arranged resembling a keyboard. That message did not get through before.

 

First of all, please don't maximize the front panel and diagram to the screen. That is super annoying.

Why do you use a filtering event ("Key down?" instead of "key down")?

If you would place your LEDs inside a cluster and set the cluster order correctly, your code would fit on half a postcard!

 

I'll have a look at the rest....

0 Kudos
Message 12 of 13
(139 Views)

If you want to see keys even if control is on other windows, you need to poll it. This also gives you access to all keys,

 

(Be aware that this is basically a keylogger and is criminal for illegal activity, such as to sift passwords from unuspecting others and such.)

 

altenbach_0-1716927566933.png

 

This is not complete, because you need to change the label of all cluster element to correctly reflect the enum value.

(A better idea would be to change the cluster order to directly correspond to the value of the key directly)

0 Kudos
Message 13 of 13
(123 Views)