Jump to content
Sign in to follow this  
d0n

not clicking login

Recommended Posts

d0n

GUICtrlSetData($status, "Logging in...")
        $IE = _IECreate($Login_page)
        $Form = _IEFormGetCollection ($IE, 0)
        $Query = _IEFormElementGetCollection ($Form, 0)
        _IEFormElementSetValue ($Query, $username)
        $Query = _IEFormElementGetCollection ($Form, 1)
        _IEFormElementSetValue ($Query, $userpass)
        _IEFormSubmit ($Form)
        GUICtrlSetData($status, "Logged in, uploading info...")

not sure why it doens't click login

i am just trying to log into some forum

Share this post


Link to post
Share on other sites
Thatsgreat2345

GUICtrlSetData($status, "Logging in...")
        $IE = _IECreate($Login_page)
        $Form = _IEFormGetCollection ($IE, 0)
        $Query = _IEFormElementGetCollection ($Form, 0)
        _IEFormElementSetValue ($Query, $username)
        $Query = _IEFormElementGetCollection ($Form, 1)
        _IEFormElementSetValue ($Query, $userpass)
        _IEFormSubmit ($Form)
        GUICtrlSetData($status, "Logged in, uploading info...")

not sure why it doens't click login

i am just trying to log into some forum

Instead of _IEFormSubmit, get the Element using _IEformGetCollection/byname and then use _IEAction($WHATEVER,'click')

Share this post


Link to post
Share on other sites
d0n

ops nvm not working, gonna see if i can figure it out :S

Edited by d0n

Share this post


Link to post
Share on other sites
d0n

ok working now, thanks again :D

Share this post


Link to post
Share on other sites
Thatsgreat2345

ok working now, thanks again :D

Remember _IEAction does not initialize _IELoadWait so it will not wait for the page to load before continuing executing the next code.

Share this post


Link to post
Share on other sites
d0n

yea i noticed that :D thanks again!

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  

×