sumit Posted July 13, 2007 Share Posted July 13, 2007 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 Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 13, 2007 Share Posted July 13, 2007 (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 July 13, 2007 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] Link to comment Share on other sites More sharing options...
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