Sign in to follow this  
Followers 0
subfighter

IE.au3 Cannot Get it To Login in BLIP.tv

3 posts in this topic

#1 ·  Posted (edited)

well looked at the other thread and there was an example on on how use IE.au3 to log into HOTMAIL but my forms do not have names..

the login and password have a a name= associated with it but the LOGIN BUTTON does not...

so i could not use the example that was shown.. mess around for couple of hours with the help and IE.au3 but no luck..

can some one help me out here. here is the page with the form to login...

pissing me off to names and a button..

also if there is a better way to do this please let me know.. thanks

http://www.blip.tv/users/login/?return_url=/%3F

i know you want to have a sample script but like i said i didnt not get close with the example i used

#include <IE.au3>

$oIE = _IECreate ("http://blip.tv/users/login/?return_url=/%3Fs=prefs")

_IELoadWait ($oIE)

$o_form = _IEFormGetCollection ($oIE, 0)

;$o_form = _IEFormGetObjByName ($oIE)

$o_login = _IEFormElementGetObjByName ($o_form, "userlogin")

$o_password = _IEFormElementGetObjByName ($o_form, "password")

$username = "sub***m"

$password = "****i9"

_IEFormElementSetValue ($o_login, $username)

_IEFormElementSetValue ($o_password, $password)

;_IEFormSubmit ($o_form)

Edited by subfighter

Share this post


Link to post
Share on other sites



Use _IEFormElementGetCollection with an index just as you did with _IEFormGetCollection

Dale


Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

try:

#include <IE.au3>

$user="your_name"

$pass="your_pass"

$oIE=_IECreate("http://www.blip.tv/users/login/?return_url=/%3F")

$oFORM = _IEFORMGETCOLLECTION($oIE, 0)

$o_USER = _IEFORMELEMENTGETOBJBYNAME($oFORM, "userlogin")

$o_PASS = _IEFORMELEMENTGETOBJBYNAME($oFORM, "password")

_IEFORMELEMENTSETVALUE($o_USER, $user)

_IEFORMELEMENTSETVALUE($o_PASS, $pass)

_IEFORMSUBMIT($oFORM)

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