Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Quick question] Captcha analysing:reading/accessing captcha

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Deine Mutter
Expert Cheater
Reputation: 1

Joined: 05 Apr 2006
Posts: 181

PostPosted: Sun Feb 08, 2009 9:48 am    Post subject: [Quick question] Captcha analysing:reading/accessing captcha Reply with quote

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
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sun Feb 08, 2009 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
Deine Mutter
Expert Cheater
Reputation: 1

Joined: 05 Apr 2006
Posts: 181

PostPosted: Thu Feb 12, 2009 3:25 am    Post subject: Reply with quote

Thank you very much, my captcha solver is working now Mr. Green
(Still got some problems with sending messages to the ComboBox, but thats the lesser of the two devils...)

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites