question about "cursor fetching text" function

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
wgan
In need of some credit
In need of some credit
Posts: 2
Joined: Mon Jul 25, 2005 9:40 am

question about "cursor fetching text" function

Post by wgan » Mon Jul 25, 2005 9:52 am

I'm planning to write a dictionary for fun and like to implement the function so called "cursor fetching text" (I'm not quite sure about the exact word) which appears in most commercial dictionary applications, it's a function you move the cursor to the specific text (anywhere of the screen, as long as it's text/string), then a window contains the translated info will pop-up automatically; how can i fetch the text of the screen using wxwindows, and is the set of functions cross-platform or non-portable, I'm using window xp. thanks.

cg
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Sun Aug 29, 2004 12:33 am
Location: Canada
Contact:

Post by cg » Mon Jul 25, 2005 2:12 pm

This sounds like a very difficult task to do cross platform. I'm guessing that tools that do this are not doing window/control inspection. I would think that they might be using OCR. They probably take a screen shot and use OCR in an area around the mouse.

HTH

Chris

------------------------------------------------------------
Chinook Developer Studio
*Free multiplatform IDE for BSD.Linux.Solaris.Windows*
http://www.degarrah.com/chinookfree.php

Zephyr Automated Test Runner
*Cross platform automated functional and regression testing*
http://www.degarrah.com/zephyr.php
------------------------------------------------------------

Post Reply