Jump to content

Detecting Window Title change


marcdr
 Share

Recommended Posts

This is probably a really easy one to solve but i've been looking at it for so long I can't see the solution.

OK I have a script that runs a query and then saves the output to excel it all works apart from one bit. The window that the query is run from has a title along the lines of "Reject Movement Report" and the window with the output I want to wait for has a title like "Reject Movement Report 3000 Records Selected".

I cant match exactly the second title as the number changes every time the script is run and I cant match on the first few words as they are the same for both windows. The time it takes for the results to come back from the query varies alot so I cant pause the script.

Any help would be great, thanks in advance

Marc

Link to comment
Share on other sites

Lookup WinTitleMatchMode in the help file. Using this you can wait for "Records Selected"


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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...