Jump to content
Sign in to follow this  
dazza

Ignoring Unwanted Windows

Recommended Posts

dazza

I am chewing through an application using: WinActivate and WinWaitActive, ControlSend and ControlClick at every step yet when an unexpected window pops up--the script freezes until I make the 'expected' window active.

Is there a way I can ignore certain windows.

To date, I have used a WinExist and a Minimize but this method requires the unexpected window to pop up at a certain time. The window is popping up when it wants.

I await pearls of wisdom :)

Share this post


Link to post
Share on other sites
MHz

I await pearls of wisdom :)

Until it comes, may I alert you that you do not need to use WinActivate and WinWaitActive when you use Control* functions as active windows are not needed. Only when you use Mouse* functions and the Send function (and any other I may have left out) that active windows are required for successful automation. You may find that in using just WinWait and Control* functions, such issues you mention will no longer happen.

:)

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  

×