BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hooking TextOut, ExtTextOut, DrawText for selected screen ar

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WinAPI
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Nov 26, 2006 11:29 pm    Post subject: Hooking TextOut, ExtTextOut, DrawText for selected screen ar Reply with quote



I am trying to write an app that will capture text from a selected area
of the screen to be used as text in another app.

I have had two attempts now...

1st - Used WM_GETTEXT but this wouldnt find the text that was needed as
there was no visible handle to the grid that the text was contained in.

2nd - Used Canvas.CopyRect to copy a selected area of the desktop but
that obviously returns an image - was going to use an ocr component to
read text.

I have tried a piece of software that will do this by "Hooking the
TextOut /ExtTextOut /DrawText APIs" but would like to write the
function into my own software.

Any ideas on hooking these APIs for a selected part of the screen?

Thanks in advance, Gavin
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WinAPI All times are GMT
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.