Get a handle of Menu option

Asked by At

I am trying to control another application with my C# code on Win 7.

I need to programmatically click an option in the menu Screenshot from the application

I am successfully sending keys to that application, or pressing a "stand-alone" button in that application with: SendMessage Spy++ gives me a button's handle, so that SendMessage can hit that button, however I am not able to figure out how to get a handle to the menu item and hit that option (I tried iterating though children of he parent handle, but no luck).

0 Answers