disable/enable keyboard

  • Thread starter Thread starter Sameh Ahmed
  • Start date Start date
S

Sameh Ahmed

Hello there
is there a way through WMI or else, to disable/enable a device?
lets say the keyboard for instance?
 
Sameh said:
Hello there
is there a way through WMI or else, to disable/enable a device?
lets say the keyboard for instance?
Hi

Nothing builtin for keyboard blocking in WMI/WSH (VBScript/JScript).

You can disable mouse and keyboard input using e.g. the AutoItX
component from a VBScript (you need to register a DLL on the target
computer), or you can use AutoIt to create an exe file that does the
job.

AutoIt/AutoItX is free and can be found here:
http://www.hiddensoft.com/autoit3/index.php


To disable mouse and keyboard input:

Set oAutoIt = CreateObject("AutoItX.Control")
oAutoIt.BlockInput "on"

Input will be automatically enabled when the script closes if you don't
issue an off command.

This function will have different effects depending on the operating
system used:.

Windows 95 No effect.
Windows 98 User input is blocked but AutoIt is also unable to simulate input.
Windows NT 4 (Without ServicePack 6) No effect.
Windows NT 4 (With ServicePack 6) User input is blocked and AutoIt can
simulate input.
Windows 2000/XP User input is blocked and AutoIt can simulate input.
 
was hoping for something built in to use on all domain machines
Thanks a lot for your time
Regards
Sameh
 
Back
Top