Qsert18 Posted May 13, 2011 Share Posted May 13, 2011 hey guys,i'm trying to make something like this:I've got a white window in paintif 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 programi'm not searching for anything like this:While 1 Do $LPixel = $Pixel1 $Pixel1 = PixelGetColor(769, 532) Until $Pixel1 <> $LPixelMouseClick("left", 911, 549, 2) ;Anymore of your code that you need...WEndExitCause 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 outkind regards,stefan Link to comment Share on other sites More sharing options...
Qsert18 Posted May 13, 2011 Author Share Posted May 13, 2011 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... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now