none

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

none

Post by rawill » Fri Mar 30, 2007 9:26 am

Thanks to all who contributed.
Last edited by rawill on Fri Sep 14, 2007 12:43 am, edited 1 time in total.

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

Post by JRL » Fri Mar 30, 2007 12:46 pm

Have you looked at Me_again's technique for converting a Macro Scheduler provided color number to an RGB value? That will give you a color value in three ranges of 256. Perhaps more understandable.

rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

Post by rawill » Tue Apr 03, 2007 1:47 am

:P
Last edited by rawill on Fri Sep 14, 2007 12:46 am, edited 1 time in total.

rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

Post by rawill » Fri Apr 27, 2007 1:25 am

cheers :)
Last edited by rawill on Fri Sep 14, 2007 12:43 am, edited 1 time in total.

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

Post by Me_again » Fri Apr 27, 2007 2:34 am

Match = 100 will be true if 100% of the pixels in the two bitmaps are the same (and the bitmaps must be the same size/shape). In other words the two bitmaps are a perfect match.

rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

Post by rawill » Mon Apr 30, 2007 1:14 am

:o
Last edited by rawill on Fri Sep 14, 2007 12:45 am, edited 1 time in total.

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 Apr 30, 2007 3:33 am

In bitmapcompare the pixels either match or they don't. It doesn't matter if you compare white with black, or white with not quite whiite, the result is that they are counted as not matching.

Sounds like GetRectCheckSum> might work for you, that will generate a value based on both position and color of the pixels. It seems to be quite sensitive. I tested a 10x10 pixel area, white with about 12 colored pixels. The result I got with three different colors for those 12 pixels was:

Red: 96052987
Green: 102692913
Slightly different Green: 102644143

If that doesn't work maybe look at something like imagemagick that has more sophisticated image comparison functions, and can be automated with macroscheduler.

rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

Post by rawill » Wed May 02, 2007 3:37 am

thanks :D
Last edited by rawill on Fri Sep 14, 2007 12:44 am, edited 1 time in total.

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Thu May 03, 2007 12:32 pm

I could be wrong but it looks like someone is trying to read the security images websites use to keep bots from registering and/or spamming their website. I’m a website owner my self and don’t want to see anymore spam on my website than I already have. I don’t think it’s wise to post the solution in public, that’s if there is a one of course.

Please correct me if I'm wrong.

Rain

rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

Post by rawill » Thu May 03, 2007 1:45 pm

:roll:
Last edited by rawill on Fri Sep 14, 2007 12:45 am, edited 1 time in total.

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

Post by Marcus Tettmar » Thu May 03, 2007 1:56 pm

Now, now. I'm sure no one meant to offend anyone.

Although, I have to say I've never understood the need to automate a computer game - isn't that defeating the object of the game in the first place? ;-)

Anyway, I can see with my own eyes that the two bitmaps are different, so you won't get a match. With CompareBitmaps I got a 47% match. The colours are different.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Thu May 03, 2007 5:51 pm

I’m sorry to have offended you. However, I did say "I could be wrong" and “Please correct me if I'm wrongâ€Â

rawill
Newbie
Posts: 15
Joined: Fri Feb 23, 2007 7:06 am
Location: Australia

Post by rawill » Mon May 21, 2007 2:17 am

8)
Last edited by rawill on Fri Sep 14, 2007 12:44 am, edited 1 time in total.

jj_willis
Newbie
Posts: 1
Joined: Tue Aug 07, 2007 8:40 pm

Post by jj_willis » Tue Aug 07, 2007 8:44 pm

The FindImagePos command has a tolerence option that sounds like what you are looking for. I am not sure how you can incorporate it yet, I am still new with MacroScheduler.

Snickers
Macro Veteran
Posts: 151
Joined: Thu Dec 09, 2004 3:01 pm
Location: Somewhere in TX

Post by Snickers » Tue Aug 07, 2007 10:14 pm

There is only 75 pixels in that image.


Simply recored the top left coordinates to start recording pixel colors. Then determine the bottom right corner for pixel coordinates.

have the macro record the pixel colors at 75 locations. Therefore, you would create 75 variables.

Have the macro then record the second image into a different set of 75 variables.

Have the macro finally compare all 75 variables to the 2nd set of 75 variables. if they all match, then you know they are the same.

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