Jump to content
Sign in to follow this  
Kaine

Problem with mouse control in scripts

Recommended Posts

Kaine

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
Helge

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.