|
-
Feb 7th, 2011, 10:43 AM
#1
Thread Starter
Member
[RESOLVED] Click a button on external program
I want to click a button on an external program from code. The button doesn't have any shortcut assigned to it, so I can't use sendkeys.
I managed to find the hwnd of the button, but I don't know how to click it. Any ideas?
-
Feb 7th, 2011, 01:03 PM
#2
Re: Click a button on external program
You can use findwindow and findwindowex to get the handles then use BM_CLICK with sendmessage to click the button.
-
Feb 8th, 2011, 04:46 AM
#3
Thread Starter
Member
Re: Click a button on external program
Thanks Jmacp, BM_CLICK was just what I was looking for.
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
|