Sign in to follow this  
Followers 0
Alex Lau

Can i make a script to lock remote keyboard and mouse ?

5 posts in this topic

hey guys,

can i make a script for that lock remote keyboard and mouse when my script running ? ;)

You know, sometimes user will cancel the script, so....

Any suggestion will be appreciated!

Share this post


Link to post
Share on other sites



You can hide the systray icon with #NoTrayIcon or use Break(1) that prevents a user stopping the script. Group policy can disable Task Manager for limited accounts so no problems there.

Share this post


Link to post
Share on other sites

You can hide the systray icon with #NoTrayIcon or use Break(1) that prevents a user stopping the script. Group policy can disable Task Manager for limited accounts so no problems there.

:evil::mad: Thanks a lot . But another problem, i use the script to install a software , there's a "Cancel" button on the installation window , so if the user click this button , the installation will be abort and my script will be failed, right? So i want to lock user's keyboard and mouse when the script is running, can do ? ;):lmao:

Share this post


Link to post
Share on other sites

First, you may want to check if the software can be installed silently by using switches. If you need to automate it then it is differcult to interrupt a script that uses WinWait() and Control*() functions and the 1st window can be WinMove() off screen. If you need to use MouseClick() and/or Send(), then you can use BlockInput() to lock the keyboard and mouse.

Share this post


Link to post
Share on other sites

First, you may want to check if the software can be installed silently by using switches. If you need to automate it then it is differcult to interrupt a script that uses WinWait() and Control*() functions and the 1st window can be WinMove() off screen. If you need to use MouseClick() and/or Send(), then you can use BlockInput() to lock the keyboard and mouse.

;):lmao: Thank you very much ! I will try to edit my script with your suggestion.

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