Kaine Posted October 16, 2006 Posted October 16, 2006 Hi: I wrote a script that automates certain office tasks. 2 windows are present on the desktop at the same time and the script is only intended for window no. 2. The macro commands sometimes would go to the wrong window because the user accidentally clicks the wrong window in the middle of the scripting. Is there a way to disable mouse function/cursor temporarily (from within the script itself) till the script finishes its tasks. Thanks very much for any help.
GaryFrost Posted October 16, 2006 Posted October 16, 2006 BlockInput(1) ; blocks mouse and keyboard BlockInput(0) ; un-blocks SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Helge Posted October 16, 2006 Posted October 16, 2006 You could also try to use the Control-functions (ControlSend/ControlSetText etc) to communicate with the controls directly, meaning that the window you want to work with doesn't have to be active, compared to Send which requires focus.
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