Jump to content

Disable Keyboard and Mouse


renehasp
 Share

Recommended Posts

I want to create a software install script. But I want to some how disable the mouse and keyboard so the user can't stop it.

A. Lock the mouse and keyboard

B. Run my Software Install Script

C. Unlock the Mouse and Keyboard

Can this be done with auto it?

Thanks Rene

Link to comment
Share on other sites

BlockInput(1)

;Do your script here

BlockInput(0)

Need me to explain it?

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
Share on other sites

; Disable Mouse & Keyboard input during installation.

If @OSVersion <> "WIN_98" Or @OSVersion <> "WIN_ME" Then

BlockInput(1)

EndIf

won't work in these versions :lmao: See help file for details

What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...