Solucionado:
import time
from win32com.client import DispatchEx
ie=DispatchEx('InternetExplorer.Application')
ie.Navigate('about:blank')
ie.ToolBar = 0
ie.StatusBar = 0
ie.Width = 400
ie.Height = 200
ie.Visible = 1
while ie.Busy:    time.sleep(0.1)

doc = ie.Document
doc.Title = "Logon script in progress"
doc.Body.InnerHTML = "Your logon script is being processed. <br> This might
take several minutes to complete."


time.sleep(5)


doc.Body.InnerHTML = "Your logon script is now complete."

time.sleep(5)

ie.Quit



2009/1/28 Josu Rodriguez <jrvi...@gmail.com>

> Hola a todos,
>
>
> Alguien sabe como mostrar la salida de un script realizado en python
> mediante un objeto objExplorer.Document.Body.InnerHTML
>
> en vbs existe esta forma:
>
> On Error Resume Next
>
> Set objExplorer = CreateObject _
>     ("InternetExplorer.Application")
>
> objExplorer.Navigate "about:blank"
> objExplorer.ToolBar = 0
> objExplorer.StatusBar = 0
> objExplorer.Width = 400
> objExplorer.Height = 200
> objExplorer.Visible = 1
>
> objExplorer.Document.Title = "Logon script in progress"
> objExplorer.Document.Body.InnerHTML = "Your logon script is being
> processed. " _
>     & "This might take several minutes to complete."
>
> Wscript.Sleep 10000
>
> objExplorer.Document.Body.InnerHTML = "Your logon script is now complete."
>
> Wscript.Sleep 5000
> objExplorer.Quit
>
> Es posible ?
>
>
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to