Sign in to follow this  
Followers 0
phinney

[Help]Stickam Script

4 posts in this topic

#1 ·  Posted (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 by phinney

Share this post


Link to post
Share on other sites



#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...

Share this post


Link to post
Share on other sites

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)

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