Color question

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
scripter0123
Newbie
Posts: 5
Joined: Sat Feb 24, 2007 9:40 am

Color question

Post by scripter0123 » Sat Feb 24, 2007 9:44 am

I was wondering if someone could post a simple script or code with no loops or anything complicated (i dont understand much about yet), That would scan for a certain color pixal then click where that pixal is then do it all over again. I just would like to see this code so i can learn from it, Any help would be appreciated

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

Post by Marcus Tettmar » Sat Feb 24, 2007 1:22 pm

You can't really scan a range of pixels without looping!

Already examples of scanning pixels for a color and clicking on this forum. Try searching. How about this:

http://www.mjtnet.com/forum/viewtopic.php?t=3421
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

scripter0123
Newbie
Posts: 5
Joined: Sat Feb 24, 2007 9:40 am

Post by scripter0123 » Sun Feb 25, 2007 1:43 am

Thank you for the quick response, But i read the post there and i tried the scripts and they dont seem to do what i was looking for. I was looking for a script that can scan a window for a certain color. Thanks

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

Post by Marcus Tettmar » Sun Feb 25, 2007 7:43 am

>I was looking for a script that can scan a window for a
>certain color.

That is EXACTLY what the script I linked to does.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

stbede77
Newbie
Posts: 18
Joined: Wed Oct 25, 2006 7:04 pm

Post by stbede77 » Sun Feb 25, 2007 8:58 am

Yep it works!

scripter0123
Newbie
Posts: 5
Joined: Sat Feb 24, 2007 9:40 am

Post by scripter0123 » Sun Feb 25, 2007 2:47 pm

hmmm it didnt work for me i must have the wroung color i guess

scripter0123
Newbie
Posts: 5
Joined: Sat Feb 24, 2007 9:40 am

Post by scripter0123 » Mon Feb 26, 2007 12:57 am

Can you walk me through that script you posted, like whats going on in it?

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Mon Feb 26, 2007 1:23 am

The best way to get this resolved is for you to post the actual script you are using that doesn't work, then we can tell you exactly how to fix it.

scripter0123
Newbie
Posts: 5
Joined: Sat Feb 24, 2007 9:40 am

Post by scripter0123 » Mon Feb 26, 2007 2:06 am

im trying to use the scipt mtettmar posted in the post he linked..

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Mon Feb 26, 2007 2:12 am

It is always possible that a typo or cut/paste error may occur when creating your own script. By posting here, the macro from your system, we can make sure we are working on the same code that is not working for you.

It would also be helpful for you to post a copy of a log file of your macro, pointing out where it is failing. Lots of help available here, looking to see what you have done so we can assist.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Me_again
Automation Wizard
Posts: 1101
Joined: Fri Jan 07, 2005 5:55 pm
Location: Somewhere else on the planet

Post by Me_again » Mon Feb 26, 2007 4:06 am

Well said Bob.

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