[python-win32] Simple context-menu question.
Joel Bryan Juliano
joelbryan.juliano at gmail.com
Tue Nov 25 12:16:55 CET 2008
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.
More information about the python-win32
mailing list