Jump to content

Some problems with Register, select Month,day


kctvt
 Share

Recommended Posts

I'm writing code Auto Register for website http://ledmobile.net/

And this's my test code:

#include <IE.au3>

#include <File.au3>

#include <Array.au3>

#include <Date.au3>

$oIE = _IECreate ('http://ledmobile.net/diendan/register.php')

$oAgree = _IEGetObjByName ($oIE, 'agree')

_IEAction ($oAgree , "click")

$oSubmit = _IEFormGetCollection ($oIE, 1)

_IEFormSubmit ($oSubmit)

_IELoadWait ($oIE)

$oForm = _IEFormGetObjByName ($oIE, "register")

$oText = _IEFormElementGetObjByName ($oForm, "month")

_IEAction ($oText , "click")

_IEFormElementSetValue ($oText,"Tháng 4")

I want to auto select Month, day.... but I dont know how... so, can you help me this , thanks so much :D

Edited by kctvt
Link to comment
Share on other sites

Usually when someone is trying to automatically register at a website, they aren't up to any good.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Link to comment
Share on other sites

If it's a pulldown menu thing you might be able to use controlclick.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Link to comment
Share on other sites

If its a pulldown menu thing, you should be able to use controlclick to click on the menu, and then the month/day. Use the helpfile, it's very useful.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

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