How to draw IE browser content in a window created with PythonWin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shaik_saleem@hotmail.com

    How to draw IE browser content in a window created with PythonWin

    I'm pretty new to Python and I've been searching all over the place
    to
    find a solution for this.
    I have a html page with some javascript in it and I need to load this
    page in my own window (which I will create using PythonWin). The
    reason for this is to have capability to control the window
    properties
    and at the same time have access to click on the "submit" buttons in
    the webpage

    So basically, I will open a wepage as shown below -


    import win32com.client
    import win32api
    import win32gui


    ie = win32com.client .Dispatch( "InternetExplor er.Application" )
    ie.Visible = 1
    ie.Navigate("ht tp://www.microsoft.c om/")


    And then I need to display it in a window that I will create as shown
    below -
    hwnd = CreateWindowEx( ...)


    I will be so grateful if anyone can please give me some pointers on
    how to go
    about this.


    Thank you for reading


  • kyosohma@gmail.com

    #2
    Re: How to draw IE browser content in a window created with PythonWin

    On Dec 21, 1:45 pm, shaik_sal...@ho tmail.com wrote:
    I'm pretty new to Python and I've been searching all over the place
    to
    find a solution for this.
    I have a html page with some javascript in it and I need to load this
    page in my own window (which I will create using PythonWin). The
    reason for this is to have capability to control the window
    properties
    and at the same time have access to click on the "submit" buttons in
    the webpage
    >
    So basically, I will open a wepage as shown below -
    >
    import win32com.client
    import win32api
    import win32gui
    >
    ie = win32com.client .Dispatch( "InternetExplor er.Application" )
    ie.Visible = 1
    ie.Navigate("ht tp://www.microsoft.c om/")
    >
    And then I need to display it in a window that I will create as shown
    below -
    hwnd = CreateWindowEx( ...)
    >
    I will be so grateful if anyone can please give me some pointers on
    how to go
    about this.
    >
    Thank you for reading
    You might look into using PAMIE or the mechanize module:




    Trying to control IE with PyWin32 / COM kind of sucks.

    Mike

    Comment

    Working...