Results 1 to 3 of 3

Thread: [RESOLVED] Click a button on external program

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2010
    Posts
    33

    Resolved [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?

  2. #2
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2010
    Posts
    33

    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
  •  



Click Here to Expand Forum to Full Width