LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to capture key press (or release) events when an IMAQ window is currently in focus?

Solved!
Go to solution

I was a sad panda when I realized that the IMAQ window didn't seem to pass the key press events down to the controlling VI front panel. Is there a way to recover these key presses and process their events? I'd prefer to be able to use labview functionality directly with the keyboard while an IMAQ window is in focus as opposed to switching to the controlling labview frontpanel.

 

Thanks for the help.

 

- Chris

0 Kudos
Message 1 of 5
(2,822 Views)
Solution
Accepted by topic author majoris

Hi Chris,

the input device functions should help you. You can poll the keys and react on them. Another soultion is to use a dll which receives the key events and send these to your vi.

 

Mike

Message 2 of 5
(2,821 Views)

Awesome. I tried out the Input Device method, and it does indeed work. While I prefer the event driven approach, I'll poll if I must. Kudos to you 😄

 

- Chris

0 Kudos
Message 3 of 5
(2,815 Views)

Hi Majoris,

 

I'm having a very similar problem, could you please share a quick VI of you solution.

 

thanks in advance.

0 Kudos
Message 4 of 5
(2,429 Views)

Hello,

 

Thank you for your post! Although we'll be glad to offer you advice on this issue, we try to keep each forum post tied to one issue. As this is an old thread relating to a resolved issue I would ask that you create a new thread in which you describe in detail your question, including any relevant context or notes about your application. 

 

Best regards,

 

Andy C.

Applications Engineering 

National Instruments 

0 Kudos
Message 5 of 5
(2,406 Views)