Sign in to follow this  
Followers 0
walle

Need help with script

3 posts in this topic

#1 ·  Posted (edited)

Hey again!

Well, this time I need help finding a status bar in Utorrent as it wont load my

.au3 converted .exe file when it finshed downloading a .torrent.

Here is the little bar and some information.

Posted Image

And my code

Opt("MouseCoordMode", 2)        ;1=absolute, 0=relative, 2=client
Opt("PixelCoordMode", 2)        ;1=absolute, 0=relative, 2=client

Dim $coord

While 1

If $coord = PixelSearch( 113, 34, 1039, 358, 0x40d400 ) Then 
    Sleep("1000")
    WinSetState("µTorrent", "", @SW_MAXIMIZE)
    Sleep("2000")
    mouseClick("left", 202, 108, 1, 0)
    sleep("2000")
    mouseClick("left", 202, 108, 1, 0)
    sleep("1000")
    Send("{left 50}")
    send("{SHIFTDOWN}{right 10}{SHIFTUP}")
    Send("^c")
    sleep("1000")
    WinSetState("µTorrent", "", @SW_MINIMIZE)
    send("#r")
    WinWaitActive("Kör")
    send("C:\Documents and Settings\Admin\Mina dokument\Film macro\")
    send("{enter}")
    sleep("1000")
    send("{down 4}")
    sleep("1000")
    send("{ALT}{down 14}{enter}")
    sleep("1000")
    Send("^v")
    send("{enter}")
    send("{enter}")
    sleep("2000") 
    EndIf
    Wend

I want the rest of the script to load when the statusbar turned green.

//Walle

Edited by walle

Share this post


Link to post
Share on other sites



Bump

Use a descriptive title next time.

And your use of "Send" and "Mouseclick", and "Sleep() in a program is unnerving, look into ControlClick(), and Control Send.

Share this post


Link to post
Share on other sites

Bump, Cmon ppl ;)

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