Jump to content

Recommended Posts

$sUsername = "test@gmail.com"
$sPassword = "test"
$sUrl = "https://www.smartdraw.com/smartshare/login/default.aspx"
$oIE = _IECreate($sUrl, 1)
$oHWND = _IEPropertyGet($oIE, "hwnd")
WinSetState($oHWND, "", @SW_MAXIMIZE)
$oForm = _IEFormGetCollection($oIE, 0)
$oUsername = _IEFormElementGetObjByName($oForm, 'Email')
$oPassword = _IEFormElementGetObjByName($oForm, "Password")
_IEFormElementSetValue($oUsername, $sUsername)
_IEFormElementSetValue($oPassword, $sPassword)

It only fills the Email field, and not the password field. Thank you for your help.

And the view source info

<input name="Email" type="text" id="Email" spellcheck="false" autocomplete="on" />

<span id="ctl00__mpBody__reqEmail" style="color:Red;display:none;">*</span><span id="ctl00__mpBody__validEmail" style="color:Red;display:none;">*</span>



<input name="Password" type="password" id="Password" autocomplete="on" />

<input name="ctl00$_mpBody$_fakePassword" type="text" value="Password" id="ctl00__mpBody__fakePassword" class="login-watermark" />

<span id="ctl00__mpBody__reqPassword" style="color:Red;display:none;">*</span>

Edited by trypay
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...