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.




Reply With Quote