Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mark Hammond
On 29/07/2009 7:30 AM, Mike Graham wrote: Upon some further investigation, I have come to understand the method a bit better def PickObject(self, obj=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, z=defaultNamedNotOptArg, obj_num=

Re: [python-win32] COM array problem

2009-07-28 Thread Mark Hammond
On 29/07/2009 4:29 AM, Reinier Heeres wrote: Hi everybody, I have a problem with a function of a COM object that is supposed to return an array of data. The function prototype generated by win32com's EnsureDispatch is as follows: def GetFrame(self, frame=defaultNamedNotOptArg, FrameVariant=defa

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
Upon some further investigation, I have come to understand the method a bit better def PickObject(self, obj=defaultNamedNotOptArg, x=defaultNamedNotOptArg, y=defaultNamedNotOptArg, z=defaultNamedNotOptArg, obj_num=defaultNamedNotOptArg, entity_num=defaultN

[python-win32] COM array problem

2009-07-28 Thread Reinier Heeres
Hi everybody, I have a problem with a function of a COM object that is supposed to return an array of data. The function prototype generated by win32com's EnsureDispatch is as follows: def GetFrame(self, frame=defaultNamedNotOptArg, FrameVariant=defaultNamedNotOptArg): """Get Frame Data"""

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
I'm very sorry for all the noise to the list, but being so clueless about what is going on, I keep stumbling into what is going on. I am trying to access Dispatch("My Application").Document.Model.PickObject. _IDualModelItem has the CLSID '{976FAFC8-96FD-11D4-A09D-0050DA1AC1A8}' and provides the Pi

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
I see with a bit more inspection you must have posted the and item from _prop_map_get_. My method isn't in there. I would not think it is supposed to be, as it is a method, not a member. I am unable to figure out what the equivalent operation for methods is in the call to _ApplyTypes_ or _oleobj_.I

Re: [python-win32] By-reference COM method arguments not being treated as outputs

2009-07-28 Thread Mike Graham
Hi Greg, Thanks for your reply. I went back through the mailing list archives to try to find someone else who had the same problem I did and found your posts, but I couldn't quite understand your and Hammond's solutions well enough to apply it. Perhaps you or someone else can help me understand wh

[python-win32] How to read all tags from a specific event in Event Viewer ?

2009-07-28 Thread kk kk
Hi, I'm new to python, i want to read some specific events form Event Viewer and then compare it with something else. For example I want to read event 552 and all o fits' properties: Date, Time, Type, User, Computer, Source, Category, EventID and all description and put it in a file.I've tried s

Re: [python-win32] Copying a MS Access Table

2009-07-28 Thread Tim Golden
sebastian.ve...@uk.bnpparibas.com wrote: Hi, how can I make a copy of a table in an Access database using Python? The VBA command would be 'DoCmd.CopyObject'. If there is no such command for Python, then alternatively I could request Python to call a VBA function that does that, but I don't kno

[python-win32] Copying a MS Access Table

2009-07-28 Thread sebastian . venus
Hi, how can I make a copy of a table in an Access database using Python? The VBA command would be 'DoCmd.CopyObject'. If there is no such command for Python, then alternatively I could request Python to call a VBA function that does that, but I don't know how to do that either. Many thanks for yo