So far my codes are

local title =" "
hdl=win.handle("Jaangle 0.96b")
; 13 for WM_GETTEXT,    301 for GTB_Title,
win.gettext(hdl,13,301,title)
win.debug("title=",title)

Nothing return to title, since I am not providing the address of "title" as
required.

On Sun, Aug 2, 2009 at 1:05 PM, xiaop...@gmail <[email protected]> wrote:

> Tried it, gettext(han) returns the caption of that app.
> I forgot to mention that, in
> SendMessage(targetHWND, WM_GETTEXT, (WPARAM)bufLen, (LPARAM)strbuf)
> The value of (WPARAM)bufLen is used as an id for the info to return,
>
> It is defined as
> enum TSGetTextBuffers
> {
>     GTB_First = 300,
>     GTB_Title,
>     GTB_Artist,
>     GTB_Last
> };
> GTB_Titel and GTB_Artist are the only two candidates.
>
> Thanks for the reply!
>
>
> On Sun, Aug 2, 2009 at 12:39 PM, Sheri <[email protected]> wrote:
>
>>
>>
>> --- In [email protected] <power-pro%40yahoogroups.com>,
>> "cronus1974" <peng.x...@...> wrote:
>> >
>> > Dear all:
>> >
>> > Is DLL plugin the only tool to play with pointer?
>> >
>> > I want to retrieve some text info from an application (In fact,
>> > the track info from Jaangle player). The application provided the
>> > api, the info can be accessed by SendMessage(targetHWND,
>> > WM_GETTEXT, (WPARAM)bufLen, (LPARAM)strbuf) strbuf is an
>> > LPTSTR, which I dunno how to define in powerpro. I guess I
>> > should help the from dll plugin, but it is the first time I use
>> > it. Any suggestions will be appreciated?
>>
>> Have you tried win.gettext(hwnd) ?
>>
>>  
>>
>
>


[Non-text portions of this message have been removed]

Reply via email to