Click A Color

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
mokshal1663
Junior Coder
Posts: 33
Joined: Sat Feb 27, 2010 8:11 pm

Click A Color

Post by mokshal1663 » Thu Mar 18, 2010 6:13 pm

Hello, what I want my script to do is click a color I tell it. I've tried using getPixelColor and reading some other topics around here but I can't find anything. I want it to click the color, then click a different color, then click a different color and so on. I've figured how to find the color codes (Message getPixelColor) but I can't seem to get a grasp on the clicking a color part. All input will be appreciated!

Thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Mar 19, 2010 9:55 am

Try using the FindColor library. It can return the X,Y coords of a pixel with the given color. Then you can MouseMove and LClick to it.

http://www.mjtnet.com/plugins.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

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