COM Objects (maybe OT)

Emiliano amiemi at tin.it
Mon Mar 1 19:46:11 CET 2004


Hi everibody,
does anyone know ho to simulate the pressure of "yes" Button in message 
boxes appearing in client certificate-based authentication of Internet 
Explorer ?

I have this code....

def aspetta(ie):
     "Dato un oggetto IE , aspetto finche' l'oggetto è pronto per l'input."
     #print "\tIE Occupato"
     while ie.Busy:
     	print "\t->",
     	time.sleep(1)
     doc = ie.Document
     while doc.ReadyState != 'complete':
     	print "\t->.",
     	time.sleep(0.2)
     #print "\tIE Completato"
     return doc

ie = win32com.client.Dispatch("InternetExplorer.Application")

## NEED CODE HERE TO CLICK ON YES BUTTO OF CERTIFICATE BASED 
AUTHENTICATION ...

aspetta(ie)
etc etc etc....

Do you know ho to solve this problem?


Bye.
Emil.



More information about the Python-list mailing list