agertnas Posted December 12, 2007 Share Posted December 12, 2007 I know that theres a reason the form name is hidden, which is to prevent bots from signing up etc. However, all I am trying to do is make a program which will allow me to input my username and password for a fantasy football team, and have it bring up the site and sign me in. Eventually I want to do more teams than that (usually I have a few different fantasy sports teams a year), but right now I'm too inexperienced to worry about more than one. Is there a way to get a script to enter text into an input box, without knowing the form name? Link to comment Share on other sites More sharing options...
John117 Posted December 12, 2007 Share Posted December 12, 2007 yea, done it before, let me find it . . . Link to comment Share on other sites More sharing options...
John117 Posted December 12, 2007 Share Posted December 12, 2007 (edited) I don't remember which pro it was but one of the MVP's posted something I made this from. GaryFrost I think? #include <IE.au3> #include <Inet.au3> $URL = "entertheurl" ;Define Signon Forwarding Website $ObjIE = ObjCreate("InternetExplorer.Application") ;Open Forwarding Website ;Wait until Forwarding Website loads With $ObjIE .Visible = False .Navigate ($URL) Do Sleep(50) Until .ReadyState = 4 EndWith ;Set Form Objects on Forwarding Website With $ObjIE.document.forms (0) .username.value = "yada yada" .password.value = "yada yada" .submit EndWith If there is more than one form, and its not working, increase the form by 1 till it works Edited December 12, 2007 by Hatcheda Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now