J'utilise depuis longtemps un script de remplissage automatique du formulaire d'authentification sur Freewifi. Depuis quelque temps cela ne fonctionne plus.
J'ai un problème de la validation du formulaire qui ne s'exécute plus.
Version très épurée du scripte :
Code : Tout sélectionner
#include <IE.au3>
$oIE = _IECreate("https://wifi.free.fr")
$oForms = _IEFormGetCollection($oIE, 0)
$oLogin = _IEFormElementGetObjByName($oForms, "login")
$oPassword = _IEFormElementGetObjByName($oForms, "password")
$oValider = _IEFormElementGetObjByName($oForms, "submit")
_IEFormElementSetValue($oLogin, "Login")
_IEFormElementSetValue($oPassword, "Password")
_IEAction($oValider, "click")
_IELoadWait($oIE)Code : Tout sélectionner
#include <IE.au3>
$oIE = _IECreate("https://wifi.free.fr")
$hwnd = _IEPropertyGet($oIE, "hwnd")
$oForms = _IEFormGetCollection($oIE, 0)
$oLogin = _IEFormElementGetObjByName($oForms, "login")
$oPassword = _IEFormElementGetObjByName($oForms, "password")
$oValider = _IEFormElementGetObjByName($oForms, "submit")
_IEFormElementSetValue($oLogin, "Login")
_IEFormElementSetValue($oPassword, "Password")
_IEAction ($oValider, "focus")
ControlSend($hwnd, "", "[CLASS:Internet Explorer_Server; INSTANCE:1]", "{Enter}")
Voilà, si un de vous à une autre idée, je suis preneur.
Merci par avance.




