Mark Everett
2004-01-12 21:11:08 UTC
Hi all,
I am writing a program which needs to obtain data from various windows
applications.
I have had success with the first application using FindWindow and
GetWindowText as well as sending messages to listviews and listboxes
to retrieve their contents.
I used Spy++ to find the window class and then wrote a program to find
the elements handle and then communicate with it via window messages.
The problem is that with some of the applications all that Spy++ picks
up is the handle to the main window. A couple of children exist but
they do not appear to be anything familiar. Therefore I aren't sure
how to grab the data. One example is an item which looks like a
listview but all I can find as children to the window is a "web
window" class.
Also what about text which is drawn onto the window - I guess this is
done using the GDI. Is it actually possible to find out text content
of this kind of display? I take it once rendered this information is
not available. I am guessing it is the GDI or maybe a DirectDraw
surface as if it was a label it Spy++ would be able to find it would
it not?
If anyone has any ideas on how I can scrape these items then I would
appreciate it. The data is gathered from an internet based source on
all these applications but port sniffing seems to reveal although most
use HTTP the data is encrypted and I have no idea how to decrypt it -
I take it it's pretty much impossible unless your a hacking expert?
Thanks for your time
Mark
I am writing a program which needs to obtain data from various windows
applications.
I have had success with the first application using FindWindow and
GetWindowText as well as sending messages to listviews and listboxes
to retrieve their contents.
I used Spy++ to find the window class and then wrote a program to find
the elements handle and then communicate with it via window messages.
The problem is that with some of the applications all that Spy++ picks
up is the handle to the main window. A couple of children exist but
they do not appear to be anything familiar. Therefore I aren't sure
how to grab the data. One example is an item which looks like a
listview but all I can find as children to the window is a "web
window" class.
Also what about text which is drawn onto the window - I guess this is
done using the GDI. Is it actually possible to find out text content
of this kind of display? I take it once rendered this information is
not available. I am guessing it is the GDI or maybe a DirectDraw
surface as if it was a label it Spy++ would be able to find it would
it not?
If anyone has any ideas on how I can scrape these items then I would
appreciate it. The data is gathered from an internet based source on
all these applications but port sniffing seems to reveal although most
use HTTP the data is encrypted and I have no idea how to decrypt it -
I take it it's pretty much impossible unless your a hacking expert?
Thanks for your time
Mark