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
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