Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable keyboard and mouse clicking

Status
Not open for further replies.

soundje

IS-IT--Management
May 1, 2003
1
BE
Hi,

I'm looking for a example ofa VBscript to disable the keyboard and the left mouse click.

I have created a script so that users can do automatic a defragmentation (needs to be Administrator) without having the rights to do this under Win2K.
But I want to make sure that they can't use the script to keep Admin rights to use this for other reasons.

Anybody could help me to disable the keyboard and mouse clicking?

Thanks in advance,

Soundje
 
well one way i can think of is trapping the window.event.button and checking if its 1 (i think thats left-check that one out) and give a messagebox saying no right to click that mouse to the user ,you can check this on mousedown event

as to the keyboard you mean all keys? then you can think of teh same as above-just put a msgbox and return out of keydown event

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top