How can I get a Text where mouse cursor is placed?
-
hi.. I want to make a Dictionary like babylon so I need to get Text by screen coordinate.But,I will not use OCR for bitmap or other picture. any ideas on how to do this? Thanks in advance.
-
hi.. I want to make a Dictionary like babylon so I need to get Text by screen coordinate.But,I will not use OCR for bitmap or other picture. any ideas on how to do this? Thanks in advance.
Use a sequence of: 1. GetCursorPos() 2. WindowFromPoint() 3. GetWindowText() Bikram Singh
-
hi.. I want to make a Dictionary like babylon so I need to get Text by screen coordinate.But,I will not use OCR for bitmap or other picture. any ideas on how to do this? Thanks in advance.
See the FAQ 4.14 How do I retrieve the text that the mouse cursor is pointing at?[^] and an update to the FAQ in my blog here[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
-
See the FAQ 4.14 How do I retrieve the text that the mouse cursor is pointing at?[^] and an update to the FAQ in my blog here[^] --Mike-- Personal stuff:: Ericahist | Homepage Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ ---- There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
thank you very much...;P that code is working perfect
-
hi.. I want to make a Dictionary like babylon so I need to get Text by screen coordinate.But,I will not use OCR for bitmap or other picture. any ideas on how to do this? Thanks in advance.
Just few cents of ideas 1. Create a global mouse hook. 2. Keep track of mouse events to trigger your procedure. 3. Send double click message to the window where specific mouse trigger occured. 4. This will highlight a text, if there is. 5. Send message to capture the selected text to clipboard. 6. Let your main aplication get the text from the clipboard and process it.
-
Just few cents of ideas 1. Create a global mouse hook. 2. Keep track of mouse events to trigger your procedure. 3. Send double click message to the window where specific mouse trigger occured. 4. This will highlight a text, if there is. 5. Send message to capture the selected text to clipboard. 6. Let your main aplication get the text from the clipboard and process it.
thank you... I will try..