Jump to content
Sign in to follow this  

Having a bit of trouble

Recommended Posts


Hey guys, today I am working on part of my script that logs into the server site and updates the call pool. However, i tried to use the _IE properties such as the getobjectbyid, getobjectbyname, forms, set elements but none seem to work on this site. I thought it might have been been b ut I coded gmail logon script using _IE properties and it worked perfectly. Furthermore, if I use the send send functions it will work, but It would be easier to use their ids and such later on in the logging process because it would be very tedious counting how many times i would have to use tab and the arrow buttons. Any help is greatly appreciated like always. Thanks.

#include <ie.au3>

$user = InputBox("Login", "Enter Username:")
;$pass = InputBox("Password", "Enter Password:", "", "*")

;Opens IE then navigates to site
$oIE = _IECreate("", "Start Center - Windows Internet Explorer")
$o_form = _IEGetObjById("", "loginform")
$o_username = _IEGetObjById($o_form, "j_username") ;this is the id i got from developer tools
;$o_password = _IEGetObjById($o_form, "j_password")
_IEFormElementSetValue($user, "j_username")
;_IEFormElementSetValue($o_password, $pass)
;_IEAction($changes, "click")
;ControlClick("", "Changes", "mx127_0")
;_IELoadWait ($oIE)

Share this post

Link to post
Share on other sites

Did you look at the _IEGetObjByID() and _IEFormElementSetValue() functions in the help file? Try the example scripts under them?

What should the first parameter be? (Hint: Not what you have here.)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.