Sign in to follow this  
Followers 0
Qsert18

Getpixel stuff

2 posts in this topic

hey guys,

i'm trying to make something like this:

I've got a white window in paint

if coords:(205, 247) becomes green (0x22B14C) than i have to click on the "close button" coords: "886, 90"

I also want the programm to wait UNTILL it actuelly changes than go on with the rest of the program

i'm not searching for anything like this:

While 1

Do

$LPixel = $Pixel1

$Pixel1 = PixelGetColor(769, 532)

Until $Pixel1 <> $LPixel

MouseClick("left", 911, 549, 2)

;Anymore of your code that you need...

WEnd

Exit

Cause then i would click on the close button every time the color changes.

I'm searching for something like this: (the one i am posting ain't working like i want it to)

Do

$Pixel1 = PixelGetColor(205, 247)

Until $Pixel = Dec(0x22B14C)

Mouseclick ( "left", 886, 90, 1)

sleep (5000)

I also searched in the helpfile + google but couldn't find any solution.

Please help me out

kind regards,

stefan

Share this post


Link to post
Share on other sites



oké solved it by doing this:

$WaitPixelColor1=0xFFF46A

Do

$waitpixel1=PixelSearch (515, 241, 890, 322, $WaitPixelColor1,2)

Until Not @error

MouseClick("left",695,560,2)

sleep (5000)

Just posting it if anyone ever has this question aswell...

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