Re: win32com and DispatchWithEvents



On Nov 13, 10:27 am, RyanN <Ryan.N...@xxxxxxxxx> wrote:
Greetings,

I'm trying to get DispatchWithEvents() to work with HyperAccess
(terminal program) without much success. I've done a bunch of
searching and found some examples using IE:

This works but doesn't handle the "Event Driven Functions":
haObj = win32com.client.Dispatch(r"HAWin32")

And so does this Internet Explorer Example:
ieObj = win32com.client.DispatchWithEvents
("InternetExplorer.Application", ExplorerEvents)

But this does not:
haObj = win32com.client.DispatchWithEvents("HAWin32", HAEvents)
It fails with the error message:
"TypeError: This COM object can not automate the makepy process -
please run makepy manually for this object"


Did you try the makepy process? I haven't used it lately, but I seem
to recall it was easy to use...



After some searching I tried:
mod = win32com.client.gencache.EnsureModule('{5178CCE1-AAEF-11CE-
AE75-00AA0030EBC8}', 0, 1, 0)
haObj = win32com.client.DispatchWithEvents(mod, HAEvents)
Which fails with the error message:
ttributeError: 'module' object has no attribute 'GetTypeInfo'

So I tried this approach with IE:
mod = win32com.client.gencache.EnsureModule('{EAB22AC0-30C1-11CF-
A7EB-0000C05BAE0B8}', 0, 1, 0)
ieObj = win32com.client.DispatchWithEvents(mod, ExplorerEvents)
But this too breaks with the same GetTypeInfo error.

Any ideas or resources? I can provide the genpy output if that helps.

There's the PyWin32 user's group, where the maintainers of PyWin32
hang out and answer questions:

http://mail.python.org/mailman/listinfo/python-win32

Mike
.



Relevant Pages

  • win32com and DispatchWithEvents
    ... searching and found some examples using IE: ... ("InternetExplorer.Application", ExplorerEvents) ... haObj = win32com.client.DispatchWithEvents ... Which fails with the error message: ...
    (comp.lang.python)
  • Re: Microsoft Silverlight 1.0 (KB955305) update fails with 0x5DF c
    ... :: FYI for any others that get the same error message (and find this ... :: thread when searching) ... :: install give above, and got told my cpu is not supported because it ... :: doesn't have SSE ...
    (microsoft.public.windowsupdate)
  • Re: Odd problem with LDS CD set for 1881 census
    ... >I have been searching for possible records of my grandfather-in-law Kenneth ... >However, when I clicked on that entry, I got an error message thus: ... If you go for 'Sunderland' you should find him, ... Eve McLaughlin ...
    (soc.genealogy.britain)
  • Re: "AutoChk.exe cannot be found" on boot
    ... i searched registry for 'system32\autochk.exe' and found nothing. ... The error message has appeared every boot ... removing the task from diskkeeper did not resolve. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: how do I correct being Unable to send e-mail?
    ... When I send from home I receive the following error message: ... searching; and I am not paid by Microsoft to search for solutions to your ... Outlook, and Norton); specifically, disable the Norton email scanning. ...
    (microsoft.public.outlook.general)