neo van matix Posted April 4, 2006 Share Posted April 4, 2006 (edited) Hello, today, i'm working on a unattended installation of Acrobat 4.0. I've written the following code: AutoItSetOption("MouseCoordMode", 0) ; #### Acrobat 4.0 #### run("SETUP.EXE") $INSTALLED = "FALSE" DO ; Sprache auswählen $TITLE = "Wählen Sie eine Setup-Sprache aus" $TEXT = "Wählen Sie die Sprache dieser Installation aus" WinWaitActive($TITLE, $TEXT) ControlClick($TITLE, $TEXT, "Button1") ; Ins Installer-Window switchen $TITLE = "Adobe Acrobat 4.05 Setup" $TEXT = "Willkommen zum Acrobat 4.05-Setup. Mit diesem Programm wird Acrobat 4.05 auf Ihrem Computer installiert." IF WinExists($TITLE, $TEXT) THEN msgbox(0, "Existiert", "Existiert!") WinActivate($TITLE, $TEXT) ENDIF WinWaitActive($TITLE, $TEXT) send("!w") WinWaitActive("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben") ControlCommand("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben", "ListBox1", "SelectString", "Deutschland") $INSTALLED = "TRUE" UNTIL $INSTALLED = "TRUE" So, my problem starts at "Ins Installer Window switchen". After the setup.exe was launched, the script changes the language to german. Then an installer opens on the right bottom of my desktop which loades some data to 100 percent. Now the Installer starts, a big green background in the backend, and a little window in the frontend. Now, the Script should output a Messagebox, that the Window exists (IF WinExists($TITLE, $TEXT) THEN msgbox(0, "Existiert", "Existiert!")) But, nothing happend. If i click into the window in the frontend, the script continues with "send("!w")" an so on. It seems, that AutoIt cant see the frontend-window :/ I know, very bad english, but... some ideas? Edited April 4, 2006 by neo van matix Attention! English noob ^^ Link to comment Share on other sites More sharing options...
nfwu Posted April 4, 2006 Share Posted April 4, 2006 (edited) try this: AutoItSetOption("MouseCoordMode", 0) ; #### Acrobat 4.0 #### run("SETUP.EXE") $INSTALLED = "FALSE" DO ; Sprache auswählen $TITLE = "Wählen Sie eine Setup-Sprache aus" $TEXT = "Wählen Sie die Sprache dieser Installation aus" WinWaitActive($TITLE, $TEXT) ControlClick($TITLE, $TEXT, "Button1") ; Ins Installer-Window switchen $TITLE = "Adobe Acrobat 4.05 Setup" $TEXT = "Willkommen zum Acrobat 4.05-Setup. Mit diesem Programm wird Acrobat 4.05 auf Ihrem Computer installiert." WinWaitActive($TITLE, $TEXT); IF WinExists($TITLE, $TEXT) THEN msgbox(0, "Existiert", "Existiert!") WinActivate($TITLE, $TEXT) ENDIF WinWaitActive($TITLE, $TEXT) send("!w") WinWaitActive("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben") ControlCommand("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben", "ListBox1", "SelectString", "Deutschland") $INSTALLED = "TRUE" UNTIL $INSTALLED = "TRUE" #) EDIT: mistake Edited April 4, 2006 by nfwu TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
neo van matix Posted April 4, 2006 Author Share Posted April 4, 2006 Sry, doesnt work :/ I've saved a Picture, where the script stucks. If i click into the frontend-window, the script continues... Some Ideas? Attention! English noob ^^ Link to comment Share on other sites More sharing options...
nfwu Posted April 4, 2006 Share Posted April 4, 2006 Hmmm... I noticed a mistake I made in the code I gave you. Here's the corrected code: AutoItSetOption("MouseCoordMode", 0) ; #### Acrobat 4.0 #### run("SETUP.EXE") $INSTALLED = "FALSE" DO ; Sprache auswählen $TITLE = "Wählen Sie eine Setup-Sprache aus" $TEXT = "Wählen Sie die Sprache dieser Installation aus" WinWaitActive($TITLE, $TEXT) ControlClick($TITLE, $TEXT, "Button1") ; Ins Installer-Window switchen $TITLE = "Adobe Acrobat 4.05 Setup" $TEXT = "Willkommen zum Acrobat 4.05-Setup. Mit diesem Programm wird Acrobat 4.05 auf Ihrem Computer installiert." WinWait($TITLE, $TEXT); msgbox(0, "Existiert", "Existiert!") WinActivate($TITLE, $TEXT) WinWaitActive($TITLE, $TEXT) send("!w") WinWaitActive("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben") ControlCommand("Land wählen", "Wählen Sie das Land, in dem Sie diese Software erworben haben", "ListBox1", "SelectString", "Deutschland") $INSTALLED = "TRUE" UNTIL $INSTALLED = "TRUE" #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
neo van matix Posted April 4, 2006 Author Share Posted April 4, 2006 thanks, works fine! Attention! English noob ^^ 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