Sign in to follow this  
Followers 0
switch

my script ends in a loop :(

6 posts in this topic

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

CODE

; 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

Share this post


Link to post
Share on other sites



you need to add WinTitleMatchMode in your 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í" , "" , "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

Share this post


Link to post
Share on other sites

Thanks a lot for your reply, mikiutama, but it's the same even if I add WinTitleMatchMode :)

Share this post


Link to post
Share on other sites

No one can help? :) I'm just a beginner with no chance to figure it out by myself.. Thanks.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by switch

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