Jump to content

change var value ?


thanh159
 Share

Recommended Posts

#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 fist

like this :012345,000123...

thank !!!

Link to comment
Share on other sites

if $password < 10 Then

$password = "00000" & $password

elseif $password <100 and $password >=10 then

$password = "0000" & $password

elseif $password <1000 and $password>=100 then

$password ="000" & $password Then

elseif $password<10000 and $password >=1000 Then

$password ="00" & $password then

elseif $password <100000 and $password>=10000 then

$password = "0"& $password

endif

this is mine :x

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...