Jump to content

How to detect different windows


ahh
 Share

Recommended Posts

I'm totally new to this kinda programming, and need to do this quite fast so sry if this post is similar with someone else, couldn't find any in my haste..

I'm gonna make a small and short script to install a few programs. First obsticle I met is when the installation program acts different according to if the program allready is installed. I used ScriptWriter to make it quick, and have recorded for both the different installasjon that pop up. Is there any way I can detect what window it gets and act according to it? Answer to this offcourse is yes but how :"> ? In the two different recordings both window names seems to be equal is there any other way I can tell the difference, any uniqe ID on the different windows that I can get from it?

Tnx in advance

Link to comment
Share on other sites

Try using the WinExists command. It needs the Title of the window and you can further discriminate windows with the same names by checking if there is different text in the window.

You can use the Au3Info.exe program in your AutoIt install directory to see information on windows.

Be open minded but not gullible.A hammer sees everything as a nail ... so don't be A tool ... be many tools.

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