Help with auto login

08/19/2009 05:35 wossen#1
Hi I'm new to this AutoIT stuff and I was trying to make a simple bot that autologin with a gui.in the gui there is an input section where i want the user to input their username and password, after that you press launch and it autologin for you ^^. I seem to get it until its time to do the send function. here's the script.



#include <GUIConstants.au3>
$widthCell=70
GUICreate(" My GUI input acceptfile", 220,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1, 0x00000018)
GUICtrlCreateLabel ("Username: ", 6, 10, $widthCell)
GUICtrlCreateLabel ("Password: ", 5, 40, $widthCell)
$username = GUICtrlCreateInput ( "", 70, 5, 100, 20)
$password = GUICtrlCreateInput ("", 70, 35, 100, 20)
$Button1 = GUICtrlCreateButton ("Mabinogi", 100, 75, 60, 20)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###





While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run("C:\Nexon\Mabinogi\Mabinogi.exe")
MouseMove (805, 620)
MouseClick ("left")
WinWaitActive ("Mabinogi G7")
Sleep (30000)
MouseMove (567, 510)
Sleep (1000)
MouseClick ("left")
Send (WTF do i do?) ; <================= this part is where i dont get it X_X
Sleep (2000)
MouseMove(571, 539)
Sleep (1000)
MouseClick ("left")
Send(GUICtrlRead) ; <==================== and this part i've already tried putting ($Username)





EndSwitch
WEnd


Please help me as i said i'm pretty new to this and don't understand much. I've also tried Google and many many other hacking forum sites, and of course the search button please tell me what to do at this part and pls don't flame X_X
08/19/2009 05:56 Dark Raccoon#2
Next time, post a Download-Link for the au3 and for which resolution you coded it (Also Window Mode/Fullscreen)...

EDIT:

And because I don't want to be mean...


au3 and .exe Download: [Only registered and activated users can see links. Click Here To Register...]

Have Fun.