Jump to content

_IEFormElementSetValue I`m New Here


Recommended Posts

Failed :(

#include <IE.au3>
$oIE = _IECreate ("http://ggmclan.omgforum.net/login.forum?connexion")
$oForm = _IEFormGetObjByName ($oIE, "Log in")
$oText = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oText, "Admin")

Hey, I`m New Here.

Can anyone tell me what is the problem here?

"Admin" Does not appear in "username" form

Edited by Danyiel92
Link to comment
Share on other sites

Yo,

you were using the wrong form name in your code.

#include <IE.au3>
$oIE = _IECreate ("http://ggmclan.omgforum.net/login.forum?connexion")
$oForm = _IEFormGetObjByName ($oIE, "form_login") ; changed this line
$oText = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oText, "Admin")
Edited by Steveiwonder

They call me MrRegExpMan

Link to comment
Share on other sites

Yo,

you were using the wrong form name in your code.

#include <IE.au3>
$oIE = _IECreate ("http://ggmclan.omgforum.net/login.forum?connexion")
$oForm = _IEFormGetObjByName ($oIE, "form_login") ; changed this line
$oText = _IEFormElementGetObjByName ($oForm, "username")
_IEFormElementSetValue ($oText, "Admin")

Thx..

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