disable/enable keyboard


S

Sameh Ahmed

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

Advertisements

T

Torgeir Bakken \(MVP\)

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.
 
S

Sameh Ahmed

was hoping for something built in to use on all domain machines
Thanks a lot for your time
Regards
Sameh
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top