Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#738 closed Bug (No Bug)

Unable to match uTorrent setup "Title" and "Visible Text"

Reported by: samsonluk@… Owned by:
Milestone: Component: AutoIt
Version: 3.2.12.1 Severity: None
Keywords: Cc:

Description

In attempt to make a uTorrent auto install script.

OS = Windows XP Pro/Home SP3
uTorrent Install Program Source: http://download.utorrent.com/1.8.1/utorrent.exe

Note: Installation target must not have a previous uTorrent install/uninstall, otherwise, the setup routine will not come out. If you need to uninstall uTorrent, registry keys associated with uTorrent must be completely sweep out with 3rd party utility.

AutoIt Script:

#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 ---

the above AutoIt script just stopped at the very first setup window screen. As you can see the "Title" and "Visible Text" are all matched with the WinActive("μTorrent Setup","Create Start menu entry") as indicated by Autoit Windows Info:

http://i116.photobucket.com/albums/o7/nozomiHK/NewPicture002.jpg

Attachments (0)

Change History (2)

comment:1 Changed 16 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

Script works fine for me. No bug.

comment:2 Changed 16 years ago by anonymous

Not work in my system, I guess due to we have different regional setting, my system do not have Euro characters installed. After changed WinTitleMatchMode to "2" and removed all references of "μ" from "μTorrent" the script works.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.