A: 

I guess you want to trigger a specific action. No need to popup the context menu: Just post a WM_COMMAND message that matches the context menu item you want to select. You'll find the WM_COMMAND item id associated to the desired menu item using tools such as Spy++ or Winspector.

PostMessage((IntPtr)hWnd, WM_COMMAND, 0, ID_MENU_ITEM);

EDIT: Clarification in answer to your comment:

You send or post the WM_COMMAND message straight to the main window, not to the menu. Actually, you don't need to popup the menu at all. The context menu is just a GUI element that lets the user select an action. The application doesn't need the menu to show up in order to convey said action.

Serge - appTranslator
thanks but...1. who can I get the hwnd of the context menu ( I have tried to send a MN_GETHMENU message, but did not get the relevant hwnd (or did not sent the message correctly)?2. once the hwnd is found, can I post a command to a specific item name and not ID?thanks again,Tomer.
Tomer, I edited my response to adress your comment.
Serge - appTranslator
how to verify what is the ID_MENU_ITEM?can I send MENU ITEM NAME instead?thanks,
A: 

Hi I am trying to capture the menu id. Not able to do the same using spy ++. I have enabled. Enabled All window in system. Event tracking WM_command and all option form message out put. I am targeting IE as my test application. When I right click an choose properties. I d not see any WM_COMMAND event.

avaya