Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Get text selected in any window
Thu, Jan 4 2007 3:02 PMPermanent Link

Q37
HNY to you all.

I know maybe this is not the right place to post this question but I'm beginning to
desperate (again).

I'm trying to make a kind of dictionary and I want that, if the user wants to get the info
about an specific item show in any document (word, email, etc) he/she will only have to
highlight the word, press a combination of keys and my application will search and present
the information. I can manage to get the keys pressed from outside but how can I pass the
highlighted text to my application?

Thanks in advance for your help
Thu, Jan 4 2007 11:40 PMPermanent Link

"Clive"
Hi,

You need to do a FindwindowEx to get the Current application and control,
followed by a SendMessage with WM_GETTEXT to get the text

Try googleing on these and you should come up with some sample code

Thanks
Clive.


"Q37" <lopoio@jumpy.it> wrote in message
news:2C16F9CE-02B5-4CE6-89F8-74B700F363F6@news.elevatesoft.com...
> HNY to you all.
>
> I know maybe this is not the right place to post this question but I'm
> beginning to
> desperate (again).
>
> I'm trying to make a kind of dictionary and I want that, if the user wants
> to get the info
> about an specific item show in any document (word, email, etc) he/she will
> only have to
> highlight the word, press a combination of keys and my application will
> search and present
> the information. I can manage to get the keys pressed from outside but how
> can I pass the
> highlighted text to my application?
>
> Thanks in advance for your help
>

Image