Re: [python-win32] WIN32COM: Cannot get event interface g iven a wrapped dispatch pointer

2008-10-23 Thread Brad Johnson
Mark Hammond skippinet.com.au> writes: > > Eeek. Have you actually imported the other library, or simply copied the > interface definition. I'd be surprised to find the same interface defined > in 2 typelibs (but not surprised to see cross-typelib references). > I think I was a bit vague in m

Re: [python-win32] WIN32COM: Cannot get event interface given a wrapped dispatch pointer

2008-10-23 Thread Mark Hammond
> However, in our particular applications several different type > libraries will > import the same interface (and hence IID), which means the look into > GetClassForCLSID will fail since it is really passed an IID which is > defined in multiple different type libraries. Eeek. Have you actually i

[python-win32] WIN32COM: Cannot get event interface given a wrapped dispatch pointer

2008-10-23 Thread Brad Johnson
This problem seems to be related to a post from a while back http://markmail.org/message/moyolyvs5i26vbwr It all comes down to the getevents(clsid) function defined in win32com/client/__init__.py This function expects an incoming clsid, but it never is one. The incoming clsid is _actually_ the II

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Steven James
On Thu, Oct 23, 2008 at 1:04 PM, Sidnei da Silva <[EMAIL PROTECTED]>wrote: > On Thu, Oct 23, 2008 at 2:54 PM, Steven James <[EMAIL PROTECTED]> > wrote: > > Because I like fun stuff and knowing that people at cisco use hacks like > > this, here you go, this should work... > > > > (cut to snippets b

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Sidnei da Silva
On Thu, Oct 23, 2008 at 2:54 PM, Steven James <[EMAIL PROTECTED]> wrote: > Because I like fun stuff and knowing that people at cisco use hacks like > this, here you go, this should work... > > (cut to snippets because of length) > http://snippets.dzone.com/posts/show/6324 > > As mentioned before, t

Re: [python-win32] Interacting with the desktop as a service onVista

2008-10-23 Thread Steven James
Because I like fun stuff and knowing that people at cisco use hacks like this, here you go, this should work... (cut to snippets because of length) http://snippets.dzone.com/posts/show/6324 As mentioned before, the basic process is to create a disabled Scheduled Task. When you are ready to run it