another application's object's selected text ...

From: Qzg=FCr=20TU=D0RUL?= (oztugrul_at_hacettepe.edu.tr)
Date: 12/25/03

  • Next message: Ben Hochstrasser [FF]: "Re: When file is locked..."
    Date: Thu, 25 Dec 2003 09:38:12 +0200
    
    

    hi ...

    my question is very clear .. :) how can i obtain value of selected text
    from another application's object ? (for example a kind of Tlistview in
    another application) i can send any message to application's object
    because i know that's handle number or can obtain it ...

    now, please tell me, is it possible or not ?

    PS : i have already tried code below ...

                   len:= SendMessage( hw, WM_GETTEXTLENGTH, 0, 0 );
                   If len > 0 Then Begin
                      If len > 255 Then len := 255;
                         SendMessage(hw, WM_GETTEXT, len+1, longint(@buf));
                      thereisatext := true;
                   End
                   Else
                      thereisatext := false;

    i mean WM_GETTEXT gives me window's text, of course if window has

    thanks in advance ...

    ============================================
    Özgür TUĞRUL

    Application & System Programmer
    Ass. Database & System Adm.
    Statistician & Research Ass.

    Hacettepe University Office of the Registrar
    Data Processing Department - System Room

    oztugrul@hacettepe.edu.tr
    http://yunus.hacettepe.edu.tr/~oztugrul/
    ============================================


  • Next message: Ben Hochstrasser [FF]: "Re: When file is locked..."