Sign in to follow this  
Followers 0
claryda

Window Inside Window with same Title

4 posts in this topic

I am trying to automate the installation of an application. The problem I am having is that when the installation starts it shows a large window that covers the screen and the a small window inside of it that is actually taking the input for the installation. I am having difficulty controlling the smaller screen because both screens have the same Title. How do I work with the smaller window? I believe I tried using the Class but still could not control the smaller window.

Share this post


Link to post
Share on other sites



You could maybe try activating the smaller window. It should probably have some text that is different than the main large window.

WinActivate ( "title" [, "text"] )

After activating it, you could stay away from any commands that use the Window Title to control the form.

Just use things like Send("!n") and such.

Also, out of curiosity, what is the program? It might be possible to launch the smaller screen by itself and eliminate this problem altogether.

Hope this helps.

Share this post


Link to post
Share on other sites

Try out WinList, and then look through all the windows and decide which one you want by size.

This probably won't work for you, but something like this maybe to get you started:

$aList = WinList('My WinTitle')
For $i = 1 to $aList[0][0]
     $aPos =  WinGetPos($aList[$i][0])
     If $aPos[2] < @DesktopWidth Then
          $hInstallWin = $aList[$i][1]
          ExitLoop
     EndIf
Next

Then use $hInstallWin in all your Win...() or Control...() calls.

Share this post


Link to post
Share on other sites

Thanks I will certainly give these suggestions a try tomorrow, and report back.

Share this post


Link to post
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
Sign in to follow this  
Followers 0