phinney Posted September 30, 2009 Share Posted September 30, 2009 (edited) Hey, I was wondering if it was possible to make a script to automatically login to stickam. Basically I want to write a script that when opened will automatically go to this url: http://www.stickam.com/loginForm.do which is simply the login form for stickam, if you login with that form it will take you to your profile page I kind of understand the _IEFORM codes but nothing im trying is working can someone please take a look at that webpage and offer some insight as to what i have to do to get it to select the two textboxes for the username/password then click the Login button? Edited September 30, 2009 by phinney Link to comment Share on other sites More sharing options...
jvanegmond Posted September 30, 2009 Share Posted September 30, 2009 Show me your best effort so we can see what was wrong. Doing that should optimize the learning process of using _IEFormX functions. github.com/jvanegmond Link to comment Share on other sites More sharing options...
phinney Posted September 30, 2009 Author Share Posted September 30, 2009 #include <IE.au3> $oIE = _IECreate ("http://www.stickam.com/loginForm.do") _IELOADWAIT ($oIE) $oUsername = _IEFormGetObjByName ($oIE, "j_username") _IEFormElementSetValue ($oUsername, "E-mail Address goes here") $oPassword = _IEFormGetObjByName ($oIE, "j_password") _IEFormElementSetValue ($oPassword, "Password Goes Here") That code there doesnt include the clicking on the login button. because I havent gotten to the point of needing to write it because I cant even get the username/password fields to fill up. When you look at the source of the webpage, there isnt any actual Forms (<form...>) so I dont know if _IEForm commands will even work... Link to comment Share on other sites More sharing options...
jvanegmond Posted October 1, 2009 Share Posted October 1, 2009 There is a frame inside the page. The frame contains the form to automate. This is the frame URL: http://www.stickam.com/loginFormOverlay.do Here's how to automate it: - Get reference to IE document object ($oIE in almost all cases) - Get reference to the frame containing the form (using the $oIE as parent) - Get reference to the form (using the frame as parent) - Get reference to the form elements (using the form as parent) github.com/jvanegmond 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