title: Python win32com: Internet Explorer COM object ? (used to work?)
body: <p>I have this very simple program:</p>
  
  <pre><code>from win32com import client
  ie=client.Dispatch("InternetExplorer.Application")
  </code></pre>
  
  <p>This used to work (I think I broke something when I re-used 'makepy.py' to try and add in constants for IE).</p>
  
  <p>It still works on another machine where I haven't been so slap-dash with 'makepy.py'.</p>
  
  <p>Here's what I get in an interactive Python session on the non-working machine:</p>
  
  <pre><code>&gt;&gt;&gt; ie
  &gt;&gt;&gt; &lt;win32com.gen_py.Microsoft Internet Controls.IWebBrowser2 instance at 0x14701432
  &gt;
  &gt;&gt;&gt; ie.Visible=True
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
    File "D:\Python26\lib\site-packages\win32com\client\__init__.py", line 471, in
   __setattr__
      self._oleobj_.Invoke(*(args + (value,) + defArgs))
  pywintypes.com_error: (-2147352573, 'Member not found.', None, None)
  </code></pre>
  
  <p>And the same on a working machine:</p>
  
  <pre><code>&gt;&gt;&gt; from win32com import client
  &gt;&gt;&gt; ie=client.Dispatch("InternetExplorer.Application")
  &gt;&gt;&gt; ie
  &gt;&gt;&gt; &lt;ComObject InternetExplorer.Application&gt;
  &gt;&gt;&gt; ie.Visible=1 # This then brings up IE correctly.
  </code></pre>
  
  <p>How do I get this working again ? Or am I using the wrong way of launching IE ?</p>
  
  <p>Thanks !</p>