none
Moderators: Dorian (MJT support), JRL
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.
-
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
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.
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.
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
Please correct me if I'm wrong.
Rain
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
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.
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?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
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.
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.