Log in

View Full Version : Finding Bitmaps



Korbman
08-18-2007, 07:20 PM
Ok...so...I'm in the process of making a script (which I'm keeping secret so far) and does "stuff" and then enters a security code on a website (you know, the bunches of letters and numbers that are there to deter bots) such as:
By Typing in the image code below you are Agreeing to our TOS
http://www.awsurveys.com/Numbers/5.gif




There's an example. I found a site that uses the same types of security codes...meaning that they have about 10-20 of them and just cycle through. I can see that the code is in a white box and the webpage is green. So far I've made a Bitmap of the image...kinda like the example above (well, it's white on white...so you can quite see the box).

Now for my question...How would I find that bitmap and have the mouse click on the box below it? I understand that I could use the FindBitmap and MoveMouse functions, but is that I need? Does the background of the code bitmap need to be black or can it stay the original white? And one other thing...if the findbitmap is all I need, then all I would have to do is:

if (FindBitmap(SecurityBMPS,x,y)) then
begin
SendKeys('pbloi');
end else
writeln('cannot find bitmap');
end;

SecurityBMPS would be the stored bitmap from above. Anyway, tell me what you guys think!:D

P.S. Everything would be declared btw :p

warrockownz
08-18-2007, 08:06 PM
in theory it should work but some sites randomly generate them meanin there millions of combinations

Korbman
08-18-2007, 08:19 PM
I just checked. This site uses 18 different codes. There may be more, but I've refreshed the page about 100 times and I've only seen these 18.

warrockownz
08-18-2007, 08:21 PM
ok well it may not work for other sites. gl on doing it

Hugolord
08-18-2007, 08:24 PM
you should first make a bot that gathers there randomly generate codes

warrockownz
08-18-2007, 08:26 PM
which would be exceedingly hard and could not be done in srl its somethin id have to do in C++ or VB

Korbman
08-18-2007, 08:34 PM
yeah that would be pretty insane to do in Scar...but still, does anybody believe that this type of Bitmaping technique could work? And nobody has answered the question of whether or not the background of the bitmap has to be black or if can it still be white.

warrockownz
08-18-2007, 08:35 PM
it can be whatever as ive used bmps in scar that have all kinds of backgrounds

Korbman
08-18-2007, 08:36 PM
Ah that's what I thought, but I had to make sure!
Thanks for the input so far you guys ! :D

warrockownz
08-18-2007, 08:38 PM
it looks for the actual pic ... not what color the background is *sighs