Jump to content

Recommended Posts

Posted

I don't know if this has been posted before but I've been toying with an idea the past few days.

I want a program that will let me store username/password pairs for different email sites and then let me choose from the pairs and then launch them into either my choice of Firefox or IE.

I really want to be able to control this through a GUI that will allow me to choose a browser and a username pair in one window. From there I want to be able to have a launch button that will start the browser, go to the email login and enter the username pair and login.

I'm not entirely sure if it is possible and if it is I have no idea where to start. If this has been done before please let me know. If you have any questions let me know. I'm fairly new to coding in general so I'm sorry if I'm trying to do something impossible.

Cheers!

Posted (edited)

Yes, Dale have made this but it works only in IE. Below is the one found in the help file

#include <IE.au3>

; Create a browser window and navigate to hotmail
$oIE = _IECreate ("http://www.hotmail.com")

; get pointers to the login form and username, password and signin fields
$o_form = _IEFormGetObjByName ($oIE, "f1")
$o_login = _IEFormElementGetObjByName ($o_form, "login")
$o_password = _IEFormElementGetObjByName ($o_form, "passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "SI")

$username = "your username here"
$password = "your password here"

; Set field values and submit the form
_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)
_IEAction ($o_signin, "click")
Edited by icadea

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