Results 1 to 3 of 3

Thread: [RESOLVED] External program access

Threaded View

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Resolved [RESOLVED] External program access

    Is it possible to simulate menu and button clicks or keypresses (eg. Ctrl+S) in an external program?

    I'm able to get the hwd of the external progam in question and have set foucs to it using the FindWindow and SetForegroundWindow API's but not sure where to start for the clicks/keypresses. Would appreciate any pointers

    EDIT: Have worked on this some more. I've used the GetMenu API to attempt to get the handle to the external app's menu but have run into a snag...the menus are all located on a toolbar so when I run the GetMenu API it always returns 0. I've read other posts with ppl using Spy++ to get Window handles and have used it to find the toolbar handle of the external app but now i'm stuck on getting the menu handle from the toolbar.

    Hope this makes sence
    Thanks.
    Last edited by lintz; Sep 12th, 2006 at 11:25 PM.

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