Sign in to follow this  
Followers 0
renehasp

Disable Keyboard and Mouse

4 posts in this topic

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

Share this post


Link to post
Share on other sites



Welcome.

Yes. BlockInput () does this. It is list in the help guide that is with the install.

You should just need Blockinput(1) at the start of the script, and Blockinput(0) at the end of it.

:lmao:

Share this post


Link to post
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.

Share this post


Link to post
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!

Share this post


Link to post
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
Sign in to follow this  
Followers 0