Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Jun : Getting selected text from external appication without clipboard using ?

www.cryer.info
Managed Newsgroup Archive

Getting selected text from external appication without clipboard using ?

Subject:Getting selected text from external appication without clipboard using ?
Posted by:"kemal.gulol" (kemal.gul..@hotmail.com)
Date:Wed, 25 Jun 2008 15:27:49

its nice working to select a text from external application via :

SendMessage(SomeHandle, EM_SETSEL, start, end);

but how to get selected text  without using clipboard ?
_________________________________________
var
THESELECTEDTEXT:string;
begin
SendMessage(SomeHandle, EM_GETSELTEXT, textlength + 1,
    lParam(integer(THESELECTEDTEXT)));
end;
_________________________________________
the code below, doesnt work and I dont wantto use clipboard.
is it possible like WM_GETTEXT but I know WMGETTEXT gets whole text that I
dont want.

is there a way to get selected text from an external application without
using WMclipboard and WM _COPY ?

thanks

Replies:

www.cryer.info
Managed Newsgroup Archive