OK, so my question would then be how can I get the running objects which I can see from the combrowser.py? 'cos for example I have an object in the combrowse called "D:\Temp\my.pdf" which is an adobe acrobat instance. I want to be able to get that document's name&path.
Thanks a million, Radu. ----- Original Message ---- From: Mark Hammond <[EMAIL PROTECTED]> To: Radu Ciora <[EMAIL PROTECTED]>; python-win32@python.org Sent: Thursday, 20 September, 2007 2:54:24 AM Subject: RE: [python-win32] PyIEnumMoniker > Can someone tell me how to use PyIEnumMoniker? > I've tried : > import pythoncom > > print PyIEnumMoniker.Next() > but I get the error: > > NameError: global name 'PyIEnumMoniker' is not defined. IEnumMoniker is just a COM interface - generally an object implementing that interface will be returned from a function call, or in some cases, you might be expected to provide an implementation and pass it to some object. The standard "Running Object Table" does return this interface though, so for an example, try: >>> import pythoncom >>> rot=pythoncom.GetRunningObjectTable() >>> e=rot.EnumRunning() >>> e.Next() (<PyIMoniker at 0x01303378 with obj at 0x0018B488>,) >>> Mark ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html ___________________________________________________________ Want ideas for reducing your carbon footprint? Visit Yahoo! For Good http://uk.promotions.yahoo.com/forgood/environment.html _______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32