Hallo und einen schönen Guten Abend,
ich habe da mal ein Problem.
Heute habe ich von den Leuten von dyndns.org eine Mitteilung erhalten, dass man sich - sofern man einen 'free' Account nutzt - einmal pro Monat mit seinem Account anmelden muss.
Das ist relativ lästig und ich wollte/will das mittels AUTOIT Script und dem MS Taskscheduler automatisieren.
Mein bisheriges Script öffnet den IE, ruft die Dyndns Seite auf und füllt den Usernamen und das Passwort in den entsprechenden Feldern des 'Formulars' korrekt aus.
Mein Problem ist jetzt allerdings das 'Drücken' des "Log in" Buttons ... Irgendwie passiert da leider nichts.
Vllt weiss ja jemand hier Rat ......
[autoit]
#include <IE.au3>
$Username = 'Max Mustermann'
$Password = '1234567890'
$oIE = _IECreate ("https://account.dyn.com/entrance/")
$oForm = _IEFormGetCollection($oIE, 0)
$oUsername = _IEFormElementGetObjByName($oForm, 'username')
$oPassword = _IEFormElementGetObjByName($oForm, 'password')
_IEFormElementSetValue($oUsername, $Username)
_IEFormElementSetValue($oPassword, $Password)
_IELinkClickByText($oIE, "Log in")
[/autoit][autoit][/autoit][autoit][/autoit][autoit];~ _IEFormImageClick($oIE, 'Log in', 'name')
_IEFormSubmit($oForm)
Ich füge nochmal die Stelle des Quelltextes der Webseite an, in der m.M. das entscheidenden Information stehen sollten
Spoiler anzeigen
<fieldset>
<div class='legend'>Already Registered?</div>
<label for='login39_username'>Username</label>
<fieldset><input id='login39_username' name='username'/></fieldset>
<label for='login39_password'>Password</label>
<fieldset><input id='login39_password' name='password' type='password' value='' autocomplete='off'/></fieldset>
<input type="hidden" id="iov1" name="iov_id">
</fieldset>
<fieldset class='submit'><input type='submit' name='submit' id='login39_submit' value='Log in'/></fieldset>
<div class='someinfo'><a href='/resetpass/'>Forgot your password?</a></div>
<input type='hidden' name='multiform' value='59F55AC4B342508221C2FCEB05E16FC4E9'/>
</form>
</div>
<p id="forsignup">Account Registration</p>
Danke schon mal voraus
mfg
ugt100