ok here's what i'm doing automate an application... so far i've been able to start up the application and login using Win32 API calls... no problems thus far... however what i need to do next is access either the a specific method in the application or start the method by way of clicking the specific menu item.

the only problem is:

1. how can i get the handle to the menu item that i need to click to start this method up, because I can't seem to find the menu's handle... i've even tried spy++ and can't find it... ps the form is a mdi... if that makes any difference

or

2. is there a way that i can directly access the method that i need to call by way of the Win32 API?

any help would be appreciatd.