Discussion Locked

Disable Keyboard and Mouse?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Can someone please give me a vbscript, ini file, reg file, inf file, etc that I can run under Windows NT Server 4.0/2000 Pro that will disable (and enable when needed to) the keyboard and mouse? I am trying to install some software silently and don't want the user to interupt the process.

5 replies

by otl

Only ones I can think of are Hexadecimal, but require a reboot. format is CHR(27)+CHR(NNN) with the N = number. One would lock the Keyboard and mouse and the next reboots. If I remember correctly CHR(27)+CHR(121) is the reboot. Been over 12 yearssince I used it, worked great in a *.bat (Batch file), lock key board at the beginning and reboot at the end (8088 thru 486 technology)

by nichorton

Thanks for the help! I am looking further into your advice. I have not had any luck yet. Thanks again!

by shanghai sam

I make no claim as to the value or usefulness of any of the following. None are tested or recommended by me. Simply related as items of interest... Use at your own risk.

The first option that I have for you is using a Win95/98 scripting tool:http://www.oreilly.com/catalog/netpc/excerpt/ch06-04.htm

Next, "Mo'Slo4Biz". This is a shareware app that slows down PI & II systems to run DOS apps. It has a cool feature to disable the keyboard.
https://secure.reg.net/product.asp?ID=2922

The next is used in forensics on some seized PC's:
http://www.dmares.com/maresware/df.htm#DISABLE

A copy of the SUBSEVEN Trojan would do it too. 8(

The rest is all programming stuff to do it the HARD way...

There is some old Delphi code athttp://www.delphipages.com/tips/thread.cfm?ID=100
that may help. May not.

Also some assembly here: http://cs.smith.edu/~thiebaut/ArtOfAssembly/CH20/CH20-5.html

A little "C" here:
http://www.mega-tokyo.com/os/os-faq-memory.html

Dating myself, here it is in BASIC:
'===========================================================================
' Subject: DISABLE KEYBOARD Date: Unknown (00:00)
' Author: Unknown Author(s) Code: QB, QBasic, PDS
' Keys: DISABLE,KEYBOARD Packet: KEYBOARD.ABC
'===========================================================================
DECLARE SUB DisableKeyboard ()
DECLARE SUB EnableKeyboard ()

SUB DisableKeyboard

'Purpose : To disable the keyboard
'Input : none
'Return : none

OUT &H21, (INP(&H21) OR 2)
END SUB

SUB EnableKeyboard

'Purpose : To enable keyboard use after being disabled by DisableKeyboard
'Input : none
'Output : none

OUT &H21, (INP(&H21) AND 253)
END SUB

This discussion is closed to new replies.