get pixel and one spot then the other..?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
markyy

get pixel and one spot then the other..?

Post by markyy » Sun Oct 03, 2004 2:54 am

Hi. I have a quick question. How can i getpixelcolor of one spot, then if it finds that color at that spot, it searches for a second color and clicks there. For example. If you have 2 red balls on the computer screen. You want to get the pixel of the first one, then if it sees the ball, it looks for a second red ball. Then have it click in that spot. For a better example. You have 5 balls. 2 red, 1 gold, 1 blue, and 1 gray. Theres 1 red on one side of the room. and the other red, blue, gray, and gold are on the other side of the room. Now you want it to pick up the red ball (read that its there) and then have it thrown at the other red ball on the other side of the room. If you dont understand what im aasking for, please tell me. I know this can be done, seen it work before.

Sean

Post by Sean » Tue Oct 12, 2004 3:48 am

guess nobody knows..... I want to know how to do that to :)

armsys
Automation Wizard
Posts: 1108
Joined: Wed Dec 04, 2002 10:28 am
Location: Hong Kong

Post by armsys » Tue Oct 12, 2004 4:30 am

Hi Markyy,

Are the exact positions of the red balls known in advance?

Guest

Post by Guest » Wed Oct 13, 2004 6:15 am

I would think so...

markkyy

Post by markkyy » Tue Oct 19, 2004 7:29 pm

nvm i figurerd it out...

gpc>x,y,V
gpc>x,y,V2
if>%V%=%V2%,shoot

works perfect

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