Jump to content

Help With values and fields [AutoIT v3]


Recommended Posts

You them boxes like username, password and all them boxes where you type, i wanna make autoIT do that for me using a browser i made my program open 1 internet explorer page then navigate to the site but it wont put my username and password in and click login can someone help me on how to set values in internet explorer muttley please i code in vb6 but moved to something harder :) please help me

Link to comment
Share on other sites

this is code i got

#include<IE.au3>

$oIE = _IECreate("http://www.bebo.com/m/signout?")

_IENavigate($oIE,"http://www.bebo.com/m/signin")

$oForm = _IEFormGetCollection($oIE, 0)

$oUser = _IEFormElementGetObjByName($oForm, "u")

$oPass = _IEFormElementGetObjByName($oForm, "p")

_IEFormElementSetValue($oUser, $Username)

_IEFormElementSetValue($oPass, $Password)

_IEFormSubmit($oForm)

Link to comment
Share on other sites

Your forgetting $Username and $Password on that script.

$Username = "Something"
$Password = "Something"

Here is a script that will work for Bebo

#include <IE.au3>

$Username = "Something"
$Password = "Something"

$oIE = _IECreate("http://www.bebo.com/m/signout?")
_IENavigate($oIE,"http://www.bebo.com/m/signin")

$oForm = _IEFormGetCollection($oIE, 0)
$oUser = _IEFormElementGetObjByName($oForm, "u")
$oPass = _IEFormElementGetObjByName($oForm, "p")
$oLogin = _IEFormElementGetObjByName($oForm, "login")

_IEFormElementSetValue($oUser, $Username)
_IEFormElementSetValue($oPass, $Password)
_IEAction($oLogin, "click")

Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...