Jump to content
Sign in to follow this  
PoweredDeath

Newb Looking for Help

Recommended Posts

PoweredDeath

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
NELyon

Check out PixelCheck in the helpfile.

Share this post


Link to post
Share on other sites
Paulie

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
PoweredDeath

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
eynstyne

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
NELyon

I should have jsut said "Pixel functions" XD

Share this post


Link to post
Share on other sites
Paulie

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.