switch Posted December 9, 2007 Share Posted December 9, 2007 Hi, I want to use AutoIT to integrate some SW to an nLited version of Windows XP, but first script that I've created ends in a loop When I launch the compiled .exe, it just launches over and over again... Can someone more experienced tell me if I have an error in my script? Thank you very much in advance, sorry for noob question and my bad english Here is an image: http://img98.imageshack.us/img98/5369/fuckql8.pngCODE; RunSetupRun ( "utorrent4602.exe"); BeginSetupWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Vítá Vás průvodce instalací programu µTorrent CZ." )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton2" ); SelectInstallPathWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Zvolte cílové umístění" )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton4" ); SelectInstallOptionsWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Zvolte součásti" )Send ( "{DOWN}" )Send ( "{DOWN}" )Send ( "{DOWN}" )Send ( "{SPACE}" )Send ( "{DOWN}" )Send ( "{DOWN}" )Send ( "{SPACE}" )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton4" ); ChooseStartDirectoryWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Vyberte sloku v nabídce Start" )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" );ChooseShortcutsWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Zvolte dalí úlohy" )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" ); InstallWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Instalace je připravena" )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" ); InstallFinishedWinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Dokončuje se instalace programu µTorrent CZ" )Send ( "{SPACE}" )ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" )Exit Link to comment Share on other sites More sharing options...
mikiutama Posted December 9, 2007 Share Posted December 9, 2007 you need to add WinTitleMatchMode in your script... expandcollapse popupOpt("WinTitleMatchMode", 3) ; RunSetup Run ( "utorrent4602.exe") ; BeginSetup WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Vítá Vás průvodce instalací programu µTorrent CZ." ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton2" ) ; SelectInstallPath WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Zvolte cílové umístění" ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton4" ) ; SelectInstallOptions WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Zvolte součásti" ) Send ( "{DOWN}" ) Send ( "{DOWN}" ) Send ( "{DOWN}" ) Send ( "{SPACE}" ) Send ( "{DOWN}" ) Send ( "{DOWN}" ) Send ( "{SPACE}" ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton4" ) ; ChooseStartDirectory WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Vyberte sloku v nabídce Start" ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" ) ;ChooseShortcuts WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Zvolte dalí úlohy" ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" ) ; Install WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Instalace je připravena" ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" ) ; InstallFinished WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Dokončuje se instalace programu µTorrent CZ" ) Send ( "{SPACE}" ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "TButton5" ) Exit Link to comment Share on other sites More sharing options...
switch Posted December 9, 2007 Author Share Posted December 9, 2007 Thanks a lot for your reply, mikiutama, but it's the same even if I add WinTitleMatchMode Link to comment Share on other sites More sharing options...
switch Posted December 10, 2007 Author Share Posted December 10, 2007 No one can help? I'm just a beginner with no chance to figure it out by myself.. Thanks. Link to comment Share on other sites More sharing options...
mikiutama Posted December 10, 2007 Share Posted December 10, 2007 try doing it like this... say TButton2's text is "Continue", then substitute into below script... Opt("WinTitleMatchMode", 3) ; RunSetup Run ( "utorrent4602.exe") ; BeginSetup WinWaitActive ( "µTorrent CZ - Průvodce instalací" , "Vítá Vás průvodce instalací programu µTorrent CZ." ) ControlClick ( "µTorrent CZ - Průvodce instalací" , "" , "[CLASS:Button; TEXT:[b]TButton2's text[/b]; INSTANCE:1]" ) . . . . . . . . Exit Link to comment Share on other sites More sharing options...
switch Posted December 10, 2007 Author Share Posted December 10, 2007 (edited) Tried it, but the button wasn't clicked.. I'm givin' up Here is a RAR which contains the EXE and the script, I'm hoping someone kind will take a look at that. I guarantee it's virus free. Thanks.P.S.: Can it be non-functional because of the setup language (czech)? Edited December 10, 2007 by switch 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