je débute en AutoIT, et j'avoue avoir du mal à comprendre le fonctionnement et la gestion des objets.
En cherchant sur le net, je suis tombé sur ce scipt :
Code : Tout sélectionner
#include <IE.au3>
.fo
; Create a browser window and navigate to hotmail
$oIE = _IECreate()
_IENavigate($oIE, "http://www.hotmail.com")
; get pointers to the login form and username and password fields
$o_form = _IEFormGetObjByName($oIE, "f1")
$o_login = _IEFormElementGetObjByName($o_form, "login")
$o_password = _IEFormElementGetObjByName($o_form, "passwd")
; Set field values and submit the form
_IEFormElementSetValue($o_login, "your username here")
_IEFormElementSetValue($o_password, "your password here")
_IEFormSubmit($o_form)
ExitJ'ai plusieurs questions sur ce script :
- La fonction _IEFormGetObjByName prend comme paramètre un objet et un nom si j'ai bien compris. Comment connaitre le nom à mettre.
Ici, il met "f1". D'où il le sort ?? - Une fois qu'on a récupéré les objets, comment connaitre leurs noms ?
Finalement, c'est la question principale, comment trouver les noms/ID à mettre dans toutes ces fonctions _IE ?
En vous remerciant,
Mr Jenkins


