[python-win32] Using Properties with arugments (or optional arguments)

2010-06-24 Thread Paul Molodowitch
Hi all - I was wondering what the proper way to access properties on COM objects which take arguments (or optional arguments). As an example, it's easy to get a 'System' WshEnvironment object: shell = win32com.client.Dispatch("WScript.Shell") sysEnv = shell.Environment print sysEnv['PATH'] Howev

[python-win32] Python script jumps back to 'main' in long running win32 event

2010-06-24 Thread Robert Sudwarts
Hi, I'm hoping that someone can help with this... I've seen some old posts which I think may refer to this same issue but I'm having difficulty understanding how to come up with a solution, and particularly where any "PumpWaitingMessages" should be located and/or/how/whether pythoncom.CoInitializ

[python-win32] Registering 64-bit Shell Extension using 32-bit Python

2010-06-24 Thread Adam Pletcher
I have Python 2.6.2 (32-bit) and pywin32 212, on Vista 64. Using the "context_menu" sample script as reference, I made a script that registers a shell extension, adding a couple right-click commands to 32-bit Explorer. I now need to register it for use in 64-bit Explorer, but can't seem to wor