Jump to content

Wow Auto Updater


rebjorn
 Share

Recommended Posts

First post here. Hi!

Ok, I know this isn't much. I wrote this for convenience. I had WOW for a little while, I don't play any more, but when I was going to update it I encountered a problem. My wireless internet connection was quite unstabile, and I needed to go away for a while. So I remembered I had that program AutoIT and figured I could give it a try. I'm sure there are ways to do this a thousand times better, but it did the job for me. Yay.

The original code had like a hundred of these:

;Wait for "Blizzard Downloader"
WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

Just duplicate it if you have a really unstable connection.

Not that I figure many will actually want this one :)

I can't even remember what resolution this was made for, probably 1024x768.

;
; AutoIT3
; Resumes Blizzard's WOW updating if the connection is lost
;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "Update resumer", "Would you like to run update resumer?")

; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "No" was clicked (7) then exit the script
If $answer = 7 Then
    MsgBox(0, "Auto update resuming", "Ok, thanks for choosing this marvellous product.")
    Exit
EndIf

;Wait for "Blizzard Downloader"
WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

WinWaitActive("Blizzard Downloader")
MouseClick("left", 506, 463, 1)

MsgBox(0, "Updating", "Updating complete.")
    Exit
Link to comment
Share on other sites

You could do this easier in a loop. Like:

;
; AutoIT3
; Resumes Blizzard's WOW updating if the connection is lost
;

; Prompt the user to run the script - use a Yes/No prompt (4 - see help file)
$answer = MsgBox(4, "Update resumer", "Would you like to run update resumer?")

; Check the user's answer to the prompt (see the help file for MsgBox return values)
; If "No" was clicked (7) then exit the script
If $answer = 7 Then
    MsgBox(0, "Auto update resuming", "Ok, thanks for choosing this marvellous product.")
    Exit
EndIf


$count = 0

Do
    $count += 1
   ;Wait for "Blizzard Downloader"
    $waitwin = WinWaitActive("Blizzard Downloader","",60)
    
    If $waitwin = 0 Then ExitLoop
        
    MouseClick("left", 506, 463, 1)
    
Until $count = 20


MsgBox(0, "Updating", "Updating complete.")

Exit

Hallman

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