Hi!

Sorry for late...
An example:
Create the file C:\tst3.htm, with this content:
   <HTML><BODY>
   <script language="javascript">
       var ooo = new Object();
       ooo.txt='Mark Hammond is a genious';
   </script>
   AAAAAAA<br>
   BBBBBBB<br>
   </BODY></HTML>


then use this Python script:
   import win32com.client
   import time
   navig = win32com.client.Dispatch('InternetExplorer.Application')
   navig.Navigate(r'file:///C:/tst3.htm')
   time.sleep(0.5)
   window = navig.Document.parentWindow
   print window.ooo.txt


and, you have:
pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None pythoncom warning: PyVARDESC ctor has unknown varkind (3) - returning None
   Mark Hammond is a genious


Good day (night?)
--
Michel Claveau



_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to