Alex Lau Posted November 22, 2006 Share Posted November 22, 2006 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! Link to comment Share on other sites More sharing options...
MHz Posted November 22, 2006 Share Posted November 22, 2006 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. Link to comment Share on other sites More sharing options...
Alex Lau Posted November 22, 2006 Author Share Posted November 22, 2006 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. 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 ? Link to comment Share on other sites More sharing options...
MHz Posted November 22, 2006 Share Posted November 22, 2006 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. Link to comment Share on other sites More sharing options...
Alex Lau Posted November 22, 2006 Author Share Posted November 22, 2006 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. Thank you very much ! I will try to edit my script with your suggestion. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now