Sign in to follow this  
Followers 0
Kaine

Problem with mouse control in scripts

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

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