Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is it possible to capture screen text from GUI Interface
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00966844
Message ID:
00971634
Vues:
18
>In DOS days I could capture on-screen text by reading "video memory" locations.
>
>Does anyone know of a way to accomplish such a feat in a Windows screen? In other words, capture text from a running program (Non-VFP, Non-HTML).
>
>I know screen readers can convert windows text to speech, but I don't need the speech, just to be able to capture the text itself from a known screen layout. I will then dump it in data tables.
>
>Anyone have any leads on techniques?

If you have MS Office 2003, take a look at MS Office Document Imaging (MODI) it supports automation and has built-in OCR capabilities.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Mspauto/html/ditocOMMap.asp, and you can find a VB example easily converted to VFP here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/Mspauto/html/diproText.asp
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform