marcdr Posted November 24, 2005 Share Posted November 24, 2005 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 More sharing options...
BigDod Posted November 24, 2005 Share Posted November 24, 2005 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 More sharing options...
Nuffilein805 Posted November 24, 2005 Share Posted November 24, 2005 you can try this as well just tested it with notepad opt("wintitlematchmode", 2) if WinWaitActive ("Untitled") and WinWaitActive ("Notepad") Then msgbox (0, "OK", "OK") it worked there - you've gotta try if it works for you good luck my little chatmy little encryption toolmy little hidermy unsafe clickbot Link to comment Share on other sites More sharing options...
marcdr Posted November 24, 2005 Author Share Posted November 24, 2005 Thanks for the replies. Managed to get it working with your help. Marc Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now