Incomplete AutoIt Login Script for Multiple Accounts

10/27/2013 18:32 Horus19#1
Hello guys,
got quite bored today and wrote a little AutoIt Script, because I was pissed to change my account name and write the password all the time.
When you start it, you can Choose your account Name, press Log In and it automatically starts the launcher and logs in.
Bad thing is, I have no clue about Auto It Programming so it's needed to add all things manually. Also all accounts must have the same password and the "Remember Username" should not be checked.

Code:
#cs ----------------------------------------------------------------------------
	Author: Strugus
#ce ----------------------------------------------------------------------------


GUICreate("Strugus Login Bot", 350, 100)
$startbutton = GUICtrlCreateButton("Log In", 250, 10, 80)
$exitbutton = GUICtrlCreateButton("Exit", 250, 60, 80)
$dropdown = GUICtrlCreateCombo("", 40, 50, 100)
GUICtrlSetData( -1, "ACC1|ACC2|ACC3", "Defaul Account")
GUICtrlCreateLabel("Choose Account Name", 40, 20)


GUISetState(@SW_SHOW)

	while 1
		$msg = GUIGetMsg()
		Select
			case $msg = $startbutton
				Run("F:\League of Legends\League of Legends\lol.launcher.admin.exe") ;Path to lol launcher.exe
				WinWaitActive ("PVP.net Patcher","")
				Sleep(500)
				MouseClick("left",1260,780,1) ;Position of Play Button on LoL Launcher for 1920x1080 Resolution
				WinWaitActive ("PVP.net Client")
				Sleep(1000)
				Send(GUICtrlRead($dropdown))
				Sleep(500)
				Send("{Tab}")
				Send("XXX") ;Password for all accounts
				Sleep(500)
				Send("{Enter}")
				Exit
			case $msg = $exitbutton
				Exit
		EndSelect
	WEnd
All needed things are explained.
Maybe someone here got time to improve it because I like the idea but miss the skills to do it :/
If you edit and release it, a little credit would be nice