Sign in to follow this  
Followers 0
PoweredDeath

Newb Looking for Help

8 posts in this topic

How could I make an autoit sequence that would search for a color then hover the mouse over the color and start a new script, but if there's no color it would simply exit the script.

Share this post


Link to post
Share on other sites



Check out PixelCheck in the helpfile.

Share this post


Link to post
Share on other sites

Check out PixelCheck in the helpfile.

You Mean PixelSearch()

Try this

$color = PixelSearch(5,5,@DesktopWidth-5, @DesktopHeight-5, *Hex for Color*)
          If IsArray($color) then
               MouseMove($color[0], $color[1],0)
              ;Run other script here
          Else
               Exit
          Endif

Share this post


Link to post
Share on other sites

How could I make that script follow a pixel? Or like loop it until the color is gone.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

How could I make that script follow a pixel? Or like loop it until the color is gone.

While...Wend loops

Read the helpfile

http://www.autoitscript.com/autoit3/docs

Edited by Paulie

Share this post


Link to post
Share on other sites

Use the Do...Until loop

Do

;;

Until <Condition>


F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]

Share this post


Link to post
Share on other sites

I should have jsut said "Pixel functions" XD

Share this post


Link to post
Share on other sites

I should have jsut said "Pixel functions" XD

Lol thats ok, we all make little errors

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