claryda Posted July 7, 2008 Posted July 7, 2008 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.
Tbird800 Posted July 7, 2008 Posted July 7, 2008 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.
therks Posted July 7, 2008 Posted July 7, 2008 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. My AutoIt Stuff | My Github
claryda Posted July 8, 2008 Author Posted July 8, 2008 Thanks I will certainly give these suggestions a try tomorrow, and report back.
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