Jump to content

Recommended Posts

Posted

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.

Posted

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.

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
×
×
  • Create New...