Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I get other process UI data and app client screen pixels data

0 views
Skip to first unread message

Kid

unread,
Oct 14, 2008, 8:56:00 PM10/14/08
to
Hi

Can I get other process UI data like edit box string or combo box index ?

And is it possible to get other app client screen pixels data ?

Thank you .

Alex Blekhman

unread,
Oct 15, 2008, 11:55:30 AM10/15/08
to
"Kid" wrote:
> And is it possible to get other app client screen pixels data ?

You can use WM_PRINT and WM_PRINTCLIENT messages for that. Read
abouth these messages in MSDN. Also, this article may be helpful:

"Window Contents Capturing using WM_PRINT Message"
http://www.fengyuan.com/article/wmprint.html

HTH
Alex


David Ching

unread,
Oct 16, 2008, 8:27:14 PM10/16/08
to
"Kid" <K...@discussions.microsoft.com> wrote in message
news:FFF611DB-6FB1-4E46...@microsoft.com...

> Hi
>
> Can I get other process UI data like edit box string or combo box index ?
>

Just send a WM_GETTEXT message to the edit box, and you will get its string.
For the comobox index, you can send a WM_COMMAND message with a CB_* wParam,
I think.

For other messages that don't marshal string data across process boundaries
(so you can't SendMessage and get a result without crashing), you can use my
SendMessageRemote() function, as Joe says. It is discussed at
http://groups.google.com/group/microsoft.public.vc.mfc/browse_thread/thread/40c00794fa444323/291326274362ef36?lnk=st&q=sendmessageremote#291326274362ef36


-- David

0 new messages