Sign in to follow this  
Followers 0
sumit

Help with Input Box

2 posts in this topic

Please Check this code.

CODE
$username = InputBox("Username", "Enter your username", "", "", 100, 120)

if $username = "" Then Exit

$passwd = InputBox("Password", "Enter your password.", "", "*", 100, 120)

if $passwd = "" Then Exit

$oIE = _IECreate ("http://mptadsl.net.mm/WGarden/Popup.php")

_IELoadWait($oIE)

Send($username)

Send("{TAB}")

Send($passwd)

Send("{ENTER}")

But How can I Save the Username and Password so that the user may not have to enter it each time he runs this script.

Would really appreciate if you can give me the code to have the username and password field in same input box along with save checkbox.

IF thats complicated please tell me how to save this username and password in an ini file and skip the input box the second time someone runs the script.

Would really appreceate

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You could write the username/pass to a .txt or .ini file depending on the status of a checkbox. Have you tried something like this?

Edited by mikehunt114

IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


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
Sign in to follow this  
Followers 0