Jump to content
Sign in to follow this  
Kripp4

End pixelsearch

Recommended Posts

hmm... how do i make the pixelsearch stop when it fund the pixel and klickt the cords, and i need it to start from the top again...

while 1
    Sleep (2000)
    MouseClick("left", 530, 530)
    Sleep (1000)
    MouseClick("left", 604, 333)
    sleep (1000)
    MouseClick("left", 604, 424)
    sleep (5000)
    While 1
        PixelSearch(510, 286, 540, 337, 0x0066CC)
            If Not @error Then
            MouseClick("left", 641, 484)
            EndIf
    WEnd
WEnd

Share this post


Link to post
Share on other sites

Below I have added a ExitLoop. That will I do believe do what you are asking. If you need it to get out of the second loop then add another.

JS

while 1
    Sleep (2000)
    MouseClick("left", 530, 530)
    Sleep (1000)
    MouseClick("left", 604, 333)
    sleep (1000)
    MouseClick("left", 604, 424)
    sleep (5000)
    While 1
        PixelSearch(510, 286, 540, 337, 0x0066CC)
            If Not @error Then
               MouseClick("left", 641, 484)
               ExitLoop
            EndIf
    WEnd
WEnd

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...