Jump to content

How to detect the control belongs to which window?


gzken
 Share

Recommended Posts

Hi,

i wrote two scripts to launch the same external program to generate two different reports, when scripts running, there would be two external program running.

when the report is finished, the external program would pop-up the same message box contained same message 'Report complete'. these scripts executed parallel, so when i captured a message box contained 'Report complete', how could i detect the control belongs to which window(external program)?

any ideas? many thanks...

Link to comment
Share on other sites

Well if its the same program twice, you can try to get the instance of the report's window.

in my script, i used winWait("win title","Report complete") function to wait the message box pop-up, when i got message box, it conclude that the program was finished. but there are two scripts run parallel, so how can i detect the message box belongs to which program?

Link to comment
Share on other sites

  • 2 weeks later...

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