Jump to content
Sign in to follow this  
Disciples

I guess I didn't figure it out :{

Recommended Posts

Disciples

$coord = PixelSearch( 319,303,920,509, 0x191552 )
If Not @error Then

Ok, now I want it, if that is found, I want it to click on that color

But idk how to make it so it clicks on a color

And if It doesn't find it, I want it to just exit

Any help would be greatly appreciated

Edited by Disciples

Share this post


Link to post
Share on other sites
Belfigor

$coord = PixelSearch(319, 303, 920, 509, 0x191552)  
If Not @error Then
    MouseClick("left", $coord[0], $coord[1],1 ,10)
    MsgBox(0,"","Found color here: "&$coord[0]&","&$coord[1])
Else
    MsgBox(0,"","There is no such color")
    Exit 
EndIf

try this

Edited by Belfigor

[size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size]

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.