Sign in to follow this  
Followers 0
kizsdet

help with _IEFormElementSetValue

2 posts in this topic

#include <IE.au3>
; Create a browser window and navigate to hotmail
$oIE = _IECreate ("http://www.hotmail.com")

; get pointers to the login form and username, password and signin fields
$o_form = _IEFormGetObjByName ($oIE, "f1")
$o_login = _IEFormElementGetObjByName ($o_form, "login")
$o_password = _IEFormElementGetObjByName ($o_form, "passwd")
$o_signin = _IEFormElementGetObjByName ($o_form, "SI")

$username = "your username here"
$password = "your password here"

; Set field values and submit the form
_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)
_IEAction ($o_signin, "click")

hello guys..is there any way to use _IEFormElementSetValue function without opening a new IE page..i want to make a script that will set the value on an already open page..is there any _IE function that i missed to read??

thanks for your reply..

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

This should work for you...

Replace:

$oIE = _IECreate ("http://www.hotmail.com")

With this:

$oIE = _IEAttach ("http://www.hotmail.com")

jfcby

Edited by jfcby

Determined -- Devoted -- Delivered Make your mind up -- to seriously apply yourself -- accomplishing the desired results. **** A soft answer turneth away wrath: but grievous words stir up anger. Proverbs 15:1 KJB ****

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