Jump to content

Autologin for Notes Webmail


Veit
 Share

Recommended Posts

Hallo, 

I not find the way to click the button for the login, (IEAction)

the rest work. Someone can help me? Thanks

here is my script:

#include <IE.au3>
$user=InputBox("","Benutzername" )
$passwd=InputBox("Passwort", "Bitte Passwort eingeben", "","*")
; Create a browser window and navigate to
$oIE = _IECreate ("http://airport.wobi.ipes/mail/" & $user & '.nsf')
_IELoadWait($oIE, 500)

$oForm = _IEFormGetCollection($oIE, 0)
$oText = _IEFormElementGetObjByName ($oForm, "username")
$1Text = _IEFormElementGetObjByName ($oForm, "password")

_IEFormElementSetValue ($oText, $user)
_IEFormElementSetValue ($1Text, $passwd)

$0submit = _IEFormElementGetObjByName($oForm, "Submit")
_IEAction($0submit, "Click")

 

here is the code of the webpage

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="de">
<head>
<title>Serveranmeldung</title>
<script language="JavaScript" type="text/javascript">
<!-- 
function doError(){return true;};window.onerror=doError;
// -->
</script>
</head>
<body text="#000000" onLoad="document.forms[0].username.focus(); document.forms[0].username.select();" bgcolor="#FFFFFFFF">

<form method="post" action="/names.nsf?Login">
<table border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFCC">
<tr><td width="100">&nbsp;</td><td><h1>Serveranmeldung</h1><font color="#FF0000">Sie sind zur Durchführung dieser Operation nicht berechtigt.</font><br>
<br>
Geben Sie bitte Ihren Benutzernamen und Ihr Kennwort ein.<br>
</td><td width="100">&nbsp;</td></tr>

<tr><td height="20" colspan="3">&nbsp;</td></tr>

<tr><td width="100" align="right"><label for="user-id">&nbsp;Benutzername:&nbsp;&nbsp;</label></td><td>
<input type="text" size="20" maxlength="256" name="username" id="user-id"></td><td>&nbsp;</td></tr>

<tr><td width="100" align="right"><label for="pw-id">Kennwort:&nbsp;&nbsp;</label></td><td>
<input type="password" size="20" maxlength="256" name="password" id="pw-id">
<input type="hidden" name="redirectto" value="/mail/stip.nsf"></td><td>&nbsp;</td></tr>

<tr><td height="20" colspan="3">&nbsp;</td></tr>

<tr><td width="100">&nbsp;</td><td>
<input type="submit" value="Anmelden"></td><td>&nbsp;</td></tr>

<tr><td height="20" colspan="3">&nbsp;</td></tr>
</table>
</form>
</body>
</html>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...