Connecting Tech Pros Worldwide Forums | Help | Site Map

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

mitendra
Guest
 
Posts: n/a
#1: Nov 20 '05
please give me information regarding this and help me to
build my dream project of dictionary for disable pepole

Cor
Guest
 
Posts: n/a
#2: Nov 20 '05

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


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


Tom Spink
Guest
 
Posts: n/a
#3: Nov 20 '05

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


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


"mitendra" <mitendrazala@indiatimes.com> wrote in message
news:0ae201c36d39$857bea80$a301280a@phx.gbl...[color=blue]
> please give me information regarding this and help me to
> build my dream project of dictionary for disable pepole[/color]


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#4: Nov 20 '05

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


Hello,

"mitendra" <mitendrazala@indiatimes.com> schrieb:[color=blue]
> please give me information regarding this and help me to
> build my dream project of dictionary for disable pepole[/color]

You may want to translate the following VB6 sample:

http://www.blackbeltvb.com/free/classspy.htm

HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET
http://www.mvps.org/dotnet


mitendra hello
Guest
 
Posts: n/a
#5: Nov 20 '05

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




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

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#6: Nov 20 '05

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


* mitendra hello <mitendrazala@indiatimes.com> scripsit:[color=blue]
> I am mit .I want to get the word under mouse cursor from any area of
> code plz give me some tips or guide[/color]

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

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

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Closed Thread