| View previous topic :: View next topic |
| Author |
Message |
Deine Mutter Expert Cheater
Reputation: 1
Joined: 05 Apr 2006 Posts: 181
|
Posted: Sun Feb 08, 2009 9:48 am Post subject: [Quick question] Captcha analysing:reading/accessing captcha |
|
|
Solved: Thanks to tombana
Hello,
I want to write a program which "analyses" a captcha in a text-based browsergame. This routine will run every 2 minutes, so everything needs to be done minimized (mouse movement and typing are done by PostMessage). Now, how will I be able to read the pixels of a picture in a browser if the current actively focused window is not the one which contains the captcha? GetPixel doesn't seem to work .. (with a device context I always get FFFFFF's if the captcha is not visible). Is it possible to read the pixels of a window which is not visible because of other windows which are "covering" it?[/b]
_________________
Last edited by Deine Mutter on Thu Feb 12, 2009 8:07 am; edited 1 time in total |
|
| Back to top |
|
 |
tombana Master Cheater
Reputation: 2
Joined: 14 Jun 2007 Posts: 456 Location: The Netherlands
|
Posted: Sun Feb 08, 2009 10:12 am Post subject: |
|
|
There is a function called PrintWindow which prints the contents of a window or control to a device context. It also works when the window is behind other windows, but I think it does nót work if the window is minimized.
And I think it's only available in Windows XP, if that matters for you.
|
|
| Back to top |
|
 |
Deine Mutter Expert Cheater
Reputation: 1
Joined: 05 Apr 2006 Posts: 181
|
Posted: Thu Feb 12, 2009 3:25 am Post subject: |
|
|
Thank you very much, my captcha solver is working now
(Still got some problems with sending messages to the ComboBox, but thats the lesser of the two devils...)
_________________
|
|
| Back to top |
|
 |
|