i want to get text under mouse cursor in any window or window scren

M

mitendra

please give me information regarding this and help me to
build my dream project of dictionary for disable pepole
 
C

Cor

Mitendra,
Look for tooltip in MSDN or Google,

You get a bunch of information and it is easy to implement.

For a Start
Drag a Tooltipcontrol from the toolbox to your form.
Then you can enter in every control a tooltip text.
Cor
 
T

Tom Spink

Unfortunately this is very difficult. You'd need to hook into all processes
and inject code into memory spaces, which isn't possible in any .NET
language.

You can extract the text from textboxes however.

If you were to do any word on the screen, then you'd need to take a picture
of the area under the mouse cursor and perfrom some sort of Character
Recognition (unreliable).

--
HTH,
-- Tom Spink, Über Geek

Please respond to the newsgroup,
so all can benefit
 
M

mitendra hello

Hello Every body
I am mit .I want to get the word under mouse cursor from any area of
code plz give me some tips or guide
plz
thansk in advance
 
H

Herfried K. Wagner [MVP]

* mitendra hello said:
I am mit .I want to get the word under mouse cursor from any area of
code plz give me some tips or guide

You can get text text of the control under the mouse pointer by
p/invoking:

'GetCursorPos'
'GetClassName'
'SendMessage'
'WM_GETTEXT'
'WM_GETTEXTLENGTH'
'WindowFromPoint'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top