GetPixelColor & some actions

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
therror
Newbie
Posts: 1
Joined: Tue Dec 09, 2008 1:08 am

GetPixelColor & some actions

Post by therror » Tue Dec 09, 2008 1:20 am

Hello all!
I'm beginner and I'm very surprised with this automation tool and I want to write a macro script (I tried some before posting here a lot of different ways to do this but it doesn't work at all) that will do some clicks at different X,Y positions , and then after ( for example 3 seconds ) , to get Pixel Color from X,Y and do a action depending on that pixel color ( for Red color will press Enter , for Yellow will press ESC key, etc ) And this script is repeating until I stop it .Can some help me to start this thing off ? Please. I will be very grateful. Thank you. All my Best.

idiot
Macro Veteran
Posts: 152
Joined: Thu Mar 01, 2007 9:21 am

not sure what you doing but this might start ya off

Post by idiot » Thu Jan 22, 2009 10:54 pm

label>start
mousemove>123,123
lclick
mousemove>124,124
lclick
mousemove>125,125
lclick
wait>3 /this number always is seconds
getpixelcolor>27,27,red
if>red=12345678 /this is color code you will need a color picker
press esc /tell it what to do if it detects the red color at x,y coordinates
goto>yellow
endif
label>yellow
getpixelcolor>28,28,yello
if>yellow=12345678 this is color code you will need a color picker
press enter /tell it what to do if it detects the yellow color at x,y coordinate
else>
goto>start
endif
if idiots rule the world then im the king!!!!
i want a free t-shirt give me all of your rep!!!
please give me pro version of macro scheduler and appnavigator!!!

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