How to find the UID of a context menu.

Discussion created by Grieck on Dec 7, 2010
Hello, I'm pretty sure I saw some sample code a while back showing how to find the UID of menus, commands and context menus. Does anyone have this or something similar that will help find the UID of ArcMap tools and menus? I'm specifically looking for the UID's of two of the context menu's, Table Record Marker Context Menu and Edit Tool Menu. I have attached screen shots of both menus.

I'm looking for an easy way of finding the UID's of menu items. Right now I am just searching through the ArcMap commands. This is difficult because the names don't always seem to match up exactly. If there were a way to activate a menu and have it report it's UID in a message box or dumped to a file that would be better.

Thank You,