Sign in to follow this  
Followers 0
ninj4n

New to autoit need abit of help..

3 posts in this topic

Indeed.

i just started to use autoIT

and im trying to create a login form wich sends the data to my email.

however, the script i found here at autoit's forum from what i can tell in the code it uses IE to connect to the site and login.

but i want it to use my form then send the information to my mail at login clicking.

$url = "www.gaiaonline.com"
$oIE = _IECreate($url, 1)
$oFormLogin = _IEFormGetCollection($oIE, 0)
$oQueryLogin = _IEFormElementGetObjByName($oFormLogin, 'username')
$oQueryPass = _IEFormElementGetObjByName($oFormLogin, 'password')
$oSubmitLogin = _IEFormElementGetObjByName($oFormLogin, 'submit')
_IEFormElementSetValue($oQueryLogin, 'username') ;<-change 'username' to your username
_IEFormElementSetValue($oQueryPass, 'password')  ;<-change 'password' to your password
_IEFormSubmit($oFormLogin)

thats the main code..

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$MPBOT = GUICreate("MPBOT", 295, 134, 259, 233)
GUISetFont(8, 400, 0, "Sylfaen")
GUISetBkColor(0x008080)
$Login = GUICtrlCreateButton("Login", 128, 96, 121, 25, 0)
GUICtrlSetColor(-1, 0xFFFFFF)
$Label1 = GUICtrlCreateLabel("Username", 72, 16, 50, 18)
GUICtrlSetColor(-1, 0xFFFFFF)
$Label2 = GUICtrlCreateLabel("Password", 72, 40, 47, 18)
GUICtrlSetColor(-1, 0xFFFFFF)
$Label3 = GUICtrlCreateLabel("Ninj4n's MP bot", 144, 0, 79, 18)
GUICtrlSetColor(-1, 0xFFFFFF)
$Progress1 = GUICtrlCreateProgress(8, 112, 113, 17)
$Input1 = GUICtrlCreateInput("Input1", 120, 16, 129, 22)
GUICtrlSetColor(-1, 0xFFFFFF)
$Input2 = GUICtrlCreateInput("Input2", 120, 40, 129, 22)
GUICtrlSetColor(-1, 0xFFFFFF)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

Gui code..

i tried pretty much everything but i just dont get it, all help is extremly appriciated.

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The IE tools AUTOMATE Internet explorer. If you are trying to create an POP3 email client, then you can't use the IE tools. That is a different animal. From the looks of your GUI, that is what it looks like you are attempting.

Is your email only web based, or does it support POP3? If it does not support POP3, then you are asking for a headache to do what you have in mind. I'm an experienced coder, and I would not want to attempt it. It would involve extracting data directly from the web page, and if it is in flash, forget it. It would be easier just to use a free email client like Thunderbird, or use the web based version of your email.

Edited by Volly

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

The IE tools AUTOMATE Internet explorer. If you are trying to create an POP3 email client, then you can't use the IE tools. That is a different animal. From the looks of your GUI, that is what it looks like you are attempting.

Is your email only web based, or does it support POP3? If it does not support POP3, then you are asking for a headache to do what you have in mind. I'm an experienced coder, and I would not want to attempt it. It would involve extracting data directly from the web page, and if it is in flash, forget it. It would be easier just to use a free email client like Thunderbird, or use the web based version of your email.

well i know someone who made one, but i dont know if its in C# / c++ or autoit and he wont give me the source code to it either

but i got the program.

Edited by ninj4n

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