Based on the context_menu.py example found in win32comext\shell\demos\servers\context_menu.py, there is a function callback when an item is chosen,
def InvokeCommand(self, ci): mask, hwnd, verb, params, dir, nShow, hotkey, hicon = ci win32gui.MessageBox(hwnd, "Hello", "Wow", win32con.MB_OK) My question is how can I get the current names of the "MenuName > SubMenuName > SubItemName" when InvokeCommand is called? I apologize if this may sound like a dumb question, I'm really new to win32/COM programming.. My approach is when I get the names, I can easily call a function for them, since the subitems are dynamic and always changing. _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32