Jump to content

Recommended Posts

Posted

I want to click a button by a color I have specified how do I do this? Can anyone provide me with the line script that clicks a button with the color I set?

Posted

Yes, I found that myself as well !! Thanks anyway .. now I want to put the -colors- with a result from Hex($var, 6) that comes with a hex value :-? How do I do that?

Posted

i dont understand that post lol

Im assuming youre asking about the syntax for using the hex color code?

0X(insert hex value here)

0XFFFFFF <--white

0XFF0000 <-red

Posted

Yeah I know that... but I have another function which gets the color with PixerGetColor from a different x, y, Local $var = PixelGetColor(111, 174) and the result i use MsgBox(0, "The hex color is", Hex($var, 6)) and after this comes:

$var[2] = PixelSearch(-x1-, -y1-, -x2-, -y2-, -colors-)

mouseclick("left", $var[0], $var[1])

I replace -colors- with? I tried replacing it with Hex($var, 6) but nothing.

Posted (edited)

I'm not confortable with this. I strongly suspect this is for something that is against this. No, you haven't said what this is for, but I see little reason to think otherwise.

Usually when I see a pixelsearch being used it is because the controller or item you want to click on isn't a normal controller. It is normally a picture or something that resist automantion and the range searched is very small. When using a large search area I know from experience this usually involves a game of some sort. Seeing how your search area is rather large, this simply strenghtens my belief that you are trying to automate a game of some type.

Care to explain what this is for?

Edited by MPH

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...