[python-win32] win32com and static dispatch

2005-11-02 Thread Michael Thompson
I've come across something puzzling about static dispatch. I've used win32com a bit and normally understand what is going on, but I've stubed my toe on something here that I just can't understand. It almost looks like a bug ... Dynamic dispatch works: (First I go to 'C:\Python24\Lib\site-

Re: [python-win32] win32com and static dispatch

2005-11-02 Thread Michael Thompson
Michael Thompson wrote: > > Great. So dynamic dispatch works just fine. Except, of course, I can't > get the 'constants' and its a bit inefficient, so I tried switching to > static dispatch: > > >>> dispatch = win32com.client.gencache.EnsureDispatch > >>> xlApp = dispatch('Excel.Ap

[python-win32] win32com and GetRef

2005-11-02 Thread Michael Thompson
I'm using win32com to manipulate the DOM inside of Internet Explorer. Something like this: #--- import win32com.client ie = win32com.client.Dispatch('InternetExplorer.Application') ie.Navigate('about:about') body = ie.Documen

Re: [python-win32] win32com and GetRef

2005-11-02 Thread Mark Hammond
> I'm using win32com to manipulate the DOM inside of Internet > Explorer. Something like this: > > #- > -- > import win32com.client > > ie = win32com.client.Dispatch('InternetExplorer.Application') > ie.Navigate('about:about')

[python-win32] Reading custom output parameters from LabVIEW/ActiveX

2005-11-02 Thread Ola Rylow
Hi! I'm running LabVIEW as a ActiveX server and access it from Python (which is a quit new language for me). Now I have encountered a problem when trying to read an output control that is a RefNum (actually a strict type def that I think is based on a DataLogRefNum containing a Enum). I get the fo