GetPixelColor trouble

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
y6tred
Newbie
Posts: 1
Joined: Sun Apr 26, 2015 10:41 am

GetPixelColor trouble

Post by y6tred » Sun Apr 26, 2015 11:02 am

please help me understand why my script refuses to work...
i'm waiting for a certain color to appear on a screen but the script seems to "freeze" within an endless loop while I'm sure the color appears on a screen in that position


Label>kupit1
GetPixelColor>929,292,kup
If>kup=708739,next1,kupit1
Label>next1
Message>!!!!!!!!!

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: GetPixelColor trouble

Post by JRL » Mon Apr 27, 2015 3:42 am

If you put a message in the loop that displays the color that GetPixelColor> is finding at position 929,292 you might get an indication of what is happening.

Code: Select all

Label>kupit1
GetPixelColor>929,292,kup
Message>kup
If>kup=708739,next1,kupit1
Label>next1
MessageModal>Found it = %kup%

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts