Jump to content

Recommended Posts

Posted

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!

Posted

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.

Posted
  MHz said:

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:
Posted

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.

Posted
  MHz said:

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.

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
  • Recently Browsing   0 members

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