Website Form Input
#1
Posted 27 February 2012 - 10:51 PM
I am really new to Autoit but i'm hoping it will solve my problem.
Im hoping to put together something which will allow me to log into my E-mail from a custom input box.
So:
Custom Input Box
User name: JoeBlogs
Password: xxxxx
then script opens e-mail website and inputs JoeBlogs"@etc.com" and password and logs me in which also adds "@etc.com"
Any advice would be most appreciated!
#2
Posted 27 February 2012 - 11:04 PM
E.G. How you can achieve what you want.
#include <IE.au3> ; Create a browser window and navigate to hotmail $oIE = _IECreate("<a href='http://mail.yahoo.com' class='bbc_url' title='External link' rel='nofollow external'>http://mail.yahoo.com"</a>) ; get pointers to the login form and username, password and signin fields Local $o_form = _IEFormGetObjByName($oIE, "login_form") Local $o_login = _IEFormElementGetObjByName($o_form, "login") Local $o_password = _IEFormElementGetObjByName($o_form, "passwd") Local $username = "your username here" Local $password = "your password here" ; Set field values and submit the form _IEFormElementSetValue($o_login, $username) _IEFormElementSetValue($o_password, $password) _IEAction($o_password, "focus")
Edited by Aipion, 27 February 2012 - 11:06 PM.
#3
Posted 27 February 2012 - 11:06 PM
thanks
#4
Posted 27 February 2012 - 11:10 PM
#5
Posted 27 February 2012 - 11:14 PM
#6
Posted 27 February 2012 - 11:59 PM
#include <IE.au3> ; Create a browser window and navigate to hotmail $oIE = _IECreate("<a href='http://www.outlook.com' class='bbc_url' title='External link' rel='nofollow external'>http://www.outlook.com"</a>) Sleep(1000) Send("User Email here") ; Email Sleep(500) Send("{TAB}") Sleep(500) Send("User Password here") ; Password Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}")
#7
Posted 28 February 2012 - 12:36 AM
#8
Posted 28 February 2012 - 12:55 AM
#include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <IE.au3> GUICreate("Login",300,200,-1,-1) GUICtrlCreateLabel("Account Name:",20,32,200,25) GUICtrlCreateLabel("Password:",20,102,200,25) $UserNameCON = GUICtrlCreateInput("",20,50,260,22) $UserPasswordCON = GUICtrlCreateInput("",20,120,260,22,0x0020) $loginBtn = GUICtrlCreateButton("Login",105,160,100,25) GUISetState(@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() Switch $msg Case $loginBtn $UserName = GUICtrlRead($UserNameCON) $UserPassword = GUICtrlRead($UserPasswordCON) $oIE = _IECreate("<a href='http://www.outlook.com' class='bbc_url' title='External link' rel='nofollow external'>http://www.outlook.com"</a>) Sleep(1000) Send($UserName&"@EmailHere.com") ; Email <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Sleep(500) Send("{TAB}") Sleep(500) Send($UserPassword) ; Password Send("{TAB}") Send("{TAB}") Send("{TAB}") Send("{ENTER}") ExitLoop Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd GUIDelete()
#9
Posted 28 February 2012 - 12:59 AM
#10
Posted 28 February 2012 - 06:25 AM
#11
Posted 28 February 2012 - 05:04 PM
It's ironic, really. I had just finished reading this post when I was directed towards the report directed at me. Kind of rings pretty damn true. For those curious, here's the report description:
Let's pick this apart, shall we?Wow so we can what ever we like on this forum to other people, like fuck you, you waste-man on the street i don't even know.
Nice,
I am looking forward to go around looking at random posts and saying fuck you which i don't think is very nick thing well thats coz if valik can do that then i can do that right. Nice example he is showing to every1.
When did I say "fuck you" or advocate saying that? When did I mention anything about garbage? I didn't. I said the code was shit. This is not opinion. This is not subjective. It can be very clearly demonstrated scientifically that the code is bad because it is easy to break the script's flow of execution. There are very simple alternatives that are an order of magnitude more reliable. Then, of course, there's the years of empirical data I have that proving that Send() is unreliable on a good day due to unforeseen events. But what do I know.Wow so we can what ever we like on this forum to other people, like fuck you, you waste-man on the street i don't even know.
You know what I don't find to be very nice? People who fail to read the rules. You did not read the rules and helped somebody do something that violates our rules. Then you got some sand in your vag and abused the report feature to report me. Me. A moderator. You reported a moderator. What are the others going to do? Ban me for telling you and the OP to read the rules because you broke them? Choo choo. Hear that? It's the logic train. You missed it.I am looking forward to go around looking at random posts and saying fuck you which i don't think is very nick thing
This would be incorrect. I can get away with what I want because of substantial contributions to this language and this community. My eccentricities are tolerated because in general I'm valuable to have around. You? What purpose do you serve? Well right now you are serving as fodder for me to shred which others will find entertaining. So you have that going for you I guess. /golfclapwell thats coz if valik can do that then i can do that right. Nice example he is showing to every1.
Anyway. You get a 7 day ban for your little report. My suggestion to you is accept the 7 day ban, don't PM me - or other mods - to bitch about it and don't try to evade it. Basically anything but being quiet will lead to your permanent removal from this forum. No, you won't evade the removal. At least not for very long.
- jaberwocky6669, Aipion and Xandy like this
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



This topic is locked
