I'm needing a little help using FindWindowEx to find the menu bar of an application. Then use SendMessage to click the specific options in that menubar.

Right now I'm having to use SendKeys to hit Alt+F to open the file menu. While this works, it's sometimes not reliable.

I have used a couple of Spy applications, but can't find the handle of the actual Menu Bar, and once I find that, I'm sure I'll need some help with the individual items in the menu.

Any ideas?

Name:  Spy.jpg
Views: 1082
Size:  25.7 KB

Name:  Menu Bar.jpg
Views: 897
Size:  15.7 KB