Jump to content

What's problem with this uTorrent install script?


Gunso
 Share

Recommended Posts

Try to make a silent switch installer of uTorrent 1.8.1 stable. The following script is actually generated by AU3Recorder but it simply stopped at the very first screen. I've checked the "Title" and "Text" with the Window Info Tool and they are all correct, any idea why it just stopped?

Download link of the uTorrent install package (Note: you need to have a clean uninstall of utorrent in order to get the install program to work) -> http://download.utorrent.com/1.8.1/utorrent.exe

CODE
#region --- ScriptWriter generated code Start ---

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run('utorrent.exe')

WinWait("μTorrent Setup","Create Start menu en")

If Not WinActive("μTorrent Setup","Create Start menu entry") Then WinActivate("μTorrent Setup","Create Start menu entry")

WinWaitActive("μTorrent Setup","Create Start menu entry")

Send("{TAB}{TAB}{TAB}{SPACE}{TAB}{SPACE}{TAB}{ALTDOWN}i{ALTUP}")

WinWait("μTorrent","Would you like to ma")

If Not WinActive("μTorrent","Would you like to ma") Then WinActivate("μTorrent","Would you like to ma")

WinWaitActive("μTorrent","Would you like to ma")

Send("{ALTDOWN}y{ALTUP}")

WinWait("Speed Guide","Choose the upload sp")

If Not WinActive("Speed Guide","Choose the upload sp") Then WinActivate("Speed Guide","Choose the upload sp")

WinWaitActive("Speed Guide","Choose the upload sp")

Send("{ALTDOWN}c{ALTUP}")

WinWait("μTorrent 1.8.1","")

If Not WinActive("μTorrent 1.8.1","") Then WinActivate("μTorrent 1.8.1","")

WinWaitActive("μTorrent 1.8.1","")

Send("{ALTDOWN}fx{ALTUP}")

WinWait("μTorrent","Do you really want t")

If Not WinActive("μTorrent","Do you really want t") Then WinActivate("μTorrent","Do you really want t")

WinWaitActive("μTorrent","Do you really want t")

Send("{ALTDOWN}y{ALTUP}")

#endregion --- ScriptWriter generated code End ---

Edited by Gunso
Link to comment
Share on other sites

  • 4 weeks later...

Its probably because of this line

Send("{TAB}{TAB}{TAB}{SPACE}{TAB}{SPACE}{TAB}{ALTDOWN}i{ALTUP}")oÝ÷ ÚØZ¶+"²}ý·
+)à"Û)¢ÈëajÛazÇ+"h¡ö¬µú+¶©®+jdëÉÈZ§+m¡«­¢+ÙM¹ ÅÕ½ÐííQ   õíQ   õíQ   õíMA
ôÅÕ½Ðì¤)M±À ÄÀÀ¤)M¹ ÅÕ½ÐííQ õíMA
ôÅÕ½Ðì¤)M±À ÄÀÀ¤)M¹ ÅÕ½ÐííQ õí1Q=]9õ¥í1QUAôÅÕ½Ðì¤

because then it allows the next gui to load.

Link to comment
Share on other sites

Modified according to your suggestion but the script just stopped at the very beginning, really don't know why because the "Title" and "Visible Text" are all matched with the WinActive("μTorrent Setup","Create Start menu entry") as indicated by Autoit Windows Info:

Posted Image

Link to comment
Share on other sites

  • 4 weeks later...

Your script worked for me. Have you previously installed uTorrent on the machine on which you are testing your script? Sometimes the dialogues are different if the folder exists already or it detects a previous installation on the machine.

Link to comment
Share on other sites

On an obtuse note: See the lowdown at http://www.threatexpert.com/report.aspx?md...7527b586b3ef0c3 to see if you have a clean install of that file (I used the latest 1.8.1 exe file as my submission).

This website is useful for working out how to uninstall programs - not just yours - anybody's. Just submit them to http://www.threatexpert.com/submit.aspx and wait for the results a few minutes later.

Take the report with a grain of salt. Often false positives are reported by other scanners for some of the components.

Enjoy!

Link to comment
Share on other sites

rather than using "send" your script might be more robust if you use things like controlclick.

Something along the lines of

Run("utorrent.exe")
WinWait("µTorrent Setup")
$winhandle=WinGetHandle("µTorrent Setup")

;Uncomment any of these options if you wish to change them
;ControlSetText($winhandle,"","[ClassNN:Edit1]","c:\utorrent") ;Set the install path
ControlCommand($winhandle,"","Button3","uncheck") ;uncheck start menu
;ControlCommand($winhandle,"","Button4","uncheck") ;uncheck quicklaunch
;ControlCommand($winhandle,"","Button5","uncheck") ;uncheck Desktop

ControlClick($winhandle,"","[text:&Install]")

winwait("µTorrent", "Would you like to make ")
$winhandle=WinGetHandle("µTorrent", "Would you like to make ")
ControlClick($winhandle,"","[text: &Yes]")

WinWait("Speed Guide" , "Choose the upload speed appropriate")
$winhandle=WinGetHandle("Speed Guide" , "Choose the upload speed appropriate")
ControlCommand($winhandle,"","ComboBox1","SelectString", 'xx/512k')
controlclick: ($winhandle,"","[text:&Use Selected Settings]")
WinWait("µTorrent 1.8.1")
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...