|
-
February 13th, 2009, 05:32 AM
#3
Re: Get hwnd of a control in another application.
I think FindWindowEx will do it, any ideas on the parameters? Here's what I got so far:
FindWindowEx(GetForegroundWindow(), null, null, nulll);
and its not much. if spy++ can do it so can I, I'm pretty darn sure I've done this before, in fact I know I have because I wrote a macro program that would record keyboard and mouse events, and play them back. I would have had to of got the control hwnd to have used sendmessage correctly..... Problem is it was in vb6, and on another harddrive that I have stored away right now.... gurrrrr.....
Well, now I'm thinking maybe I created a global mouse and keyboard hook, and just threw in the recorded key and mouse events into the message queue ... I dunno, Hopefully someone will shed some light, in the meantime, when I get a day off from work, I'll dig up my harddrive, and try to find my original code.
Last edited by Traps; February 13th, 2009 at 05:53 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|