Jump to content

Ignoring Unwanted Windows


dazza
 Share

Recommended Posts

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 :)

Link to comment
Share on other sites

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.

:)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...