LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

disable/enable keyboard

Hello,
 
I am using barcode scanner through USB and I want to disable/enable keyboard.
Is there any way to enable/disable the keyboard.
 
Please help!!
 
Thanks in advance...
 
0 Kudos
Message 1 of 4
(3,603 Views)

This isn't really a Labwindows/CVI question and this is probably not the best place to ask it. However, I will take a stab at it anyway.

Do you need the keyboard at all? If not, you may be able to just remove it from the system. If the USB barcode scanner is detected as a keyboard device on bottup, you should be fine.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
0 Kudos
Message 2 of 4
(3,589 Views)

Vector,

Try this.

http://www.autoitscript.com/autoit3/docs/functions/BlockInput.htm

Download autoit dll from above website and use this function.

 

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 4
(3,561 Views)

I just noticed while going through the SDK documentation while looking for other stuff that there is a function called BlockInput () that is supposed to prevent keyboard and mouse input from getting to the applications. If it works the way I think it does, it will block all keyboard and mouse input to ALL applications. So it MIGHT work with your barcode scanner, it might not. If your barcode scanner emulates a keyboard, then this would not be the function to use.

A way to test this would be to write a very trivial application to call the BlockInput function, delay for some time using an asynchronous timer and then reenable input in the timer callback function.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
Message 4 of 4
(3,539 Views)