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]