LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

keyboard reaction in background

Hello,

My problem is that I have a LabView program was a key query. When I program in the background, and, for example, Word will write something the keys in the LabView program processed.

How can I disable this? LabView is not to respond to the keyboard when it is in the background.

Regards,

Carsten

0 Kudos
Message 1 of 4
(2,922 Views)
Normally LabVIEW controls don't receive keys when the controls are not
active. So you've probably done something (like using a dll to query the
keys) to get this to work.

Without seeing how you've done it it is hard to give advice. You might try
to explain why you don't use a string control to catch keys, or pane key
down events with an event structure.

Regards,

Wiebe.


0 Kudos
Message 2 of 4
(2,897 Views)

Hello,

 

You can easily check, with the example "Basic input Demo" from LabView 8.5. This is the basic for my input. Wenn this Demo run in the background then you can see the key inputs.

Regards

Carsten

0 Kudos
Message 3 of 4
(2,884 Views)
Hi Carsten,

ok, BasicInputDemo catches all input events, even when LV is not in focus...

But to ask something different: What do you want to achieve?

Do you really want to catch all user input? Or do you need just the input when the vi is in focus?

Have you tried to check the status of vi property "FrontPanelWindow.Is Frontmost?"? It will give FALSE when other windows/programs are in front...
Have you tried events like described by Wiebe?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(2,874 Views)