thanh159 Posted December 18, 2010 Posted December 18, 2010 #include <IE.au3>$oIE = _IECreate ("http://xxxxxxxxxxxxxxxx.com"); get pointers to the login form and username, password and signin fields$o_form = _IEFormGetObjByName ($oIE, "form2")$o_login = _IEFormElementGetObjByName ($o_form, "cbxUsername")$o_password = _IEFormElementGetObjByName ($o_form, "txtPassword")$o_signin = _IEFormElementGetObjByName ($o_form, "btnLogin")$username = "125"$password = "123456789"; Set field values and submit the form_IEFormElementSetValue ($o_login, $username)_IEFormElementSetValue ($o_password, $password)_IEAction ($o_signin, "click")how do i make $password change from 0 to xxxxxx with 0 at fistlike this :012345,000123... thank !!!
JohnOne Posted December 18, 2010 Posted December 18, 2010 _IEFormElementSetValue ($o_password, "0" & $password) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
thanh159 Posted December 18, 2010 Author Posted December 18, 2010 if $password < 10 Then $password = "00000" & $passwordelseif $password <100 and $password >=10 then $password = "0000" & $password elseif $password <1000 and $password>=100 then $password ="000" & $password Thenelseif $password<10000 and $password >=1000 Then $password ="00" & $password then elseif $password <100000 and $password>=10000 then $password = "0"& $password endifthis is mine
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now