Internet Explorer, COM+, Javascript and Python

Discussion in 'Python' started by Ishpeck, Apr 27, 2005.

  1. Ishpeck

    Ishpeck Guest

    Ishpeck, Apr 27, 2005
    1. Advertisements

  2. Ishpeck

    Roger Upole Guest

    Something like this should be close:

    import win32com.client, pythoncom
    res=ie.Document.Script._oleobj_.Invoke(id, 0, pythoncom.DISPATCH_METHOD,
    True, <parameter or tuple of parameters> )

    Roger Upole, Apr 28, 2005
    1. Advertisements

  3. Ishpeck

    J Correia Guest

    Yes, that definitely works. Only one minor correction: it seems that to
    pass multiple parameters you need to pass them sequentially seperated by
    commas instead of in a tuple, i.e.
    res=ie.Document.Script._oleobj_.Invoke(id, 0, pythoncom.DISPATCH_METHOD,
    True, param1, param2, param3, ......... )

    Useful test sitefor above code:

    J Correia, Apr 28, 2005
  4. Ishpeck

    dannyguindi Guest

    Do you guys know if there is a way to do this in Linux?

    dannyguindi, May 31, 2005
  5. Ishpeck

    Peter Hansen Guest

    What is "this"? Your subject line provides a context, but not a problem
    to which we can give you the solution. Please be specific.

    Peter Hansen, May 31, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.