LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there anyway to block just keyboard input?

Hi,
I know using windows SDK BlockInput function I can block both keyboard and mouse events. Is there anyway to block just keyboad and not mouse?
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 2
(2,975 Views)

I don't think that CVI has the functionality to globally block keyboard events, but you can use the EVENT_KEYPRESS event on your panel and controls to trap any keys pressed.    You could make a definition that can easily be added to your control/panel callbacks:

#define TrapKeypress case EVENT_KEYPRESS: return -1;

0 Kudos
Message 2 of 2
(2,953 Views)