Jump to content
Sign in to follow this  
ra95

How to login in altervista forum???

Recommended Posts

ra95

Hi gui, i have tryed access in this forum http://avengersalliance.altervista.org/forum/index.php

Can you help me???

My Code

UrlFF = "http://avengersalliance.altervista.org/forum/index.php"
        $Log = "name for login"
        $psw = "password for login"
        _IENavigate($oIE,$UrlFFL)
    _IELoadWait($oIE)
    $o_form = _IEFormElementGetCollection($oIE,0)
    _IEFormElementCheckboxSelect ($o_Form,"1","CookieDate","","",0)
    _IEFormElementCheckboxSelect ($o_Form,"0","Privacy",1,"byIndex",0)
    $o_form_u = _IEFormElementGetObjByName($o_form, "username")
    $o_form_p = _IEFormElementGetObjByName($o_form, "PassWord")
    _IEFormElementSetValue($o_form_u, $Log)
    _IEFormElementSetValue($o_form_p, chr(24))
    _IEFormElementSetValue($o_form_p, $psw)
        _IEFormSubmit($o_Form)

I think not correct use of function.

But i have trie more time...

Please help me

Thx for all seggest.

Ra95

Share this post


Link to post
Share on other sites
bluerein

try something like

#include <IE.au3>
$oIE = _IECreate ("http://avengersalliance.altervista.org/forum/ucp.php?mode=login")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery1 = _IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery1, "password")
_IEFormSubmit ($oForm)

Share this post


Link to post
Share on other sites
ra95

try something like

#include <IE.au3>
$oIE = _IECreate ("http://avengersalliance.altervista.org/forum/ucp.php?mode=login")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery1 = _IEFormElementGetCollection ($oForm, 1)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery1, "password")
_IEFormSubmit ($oForm)

Hi work fine

Very thanks... now i try to interpreter correct command with this help.

have nice night. thx

Ra95

Share this post


Link to post
Share on other sites
ra95

Hi work fine

Very thanks... now i try to interpreter correct command with this help.

have nice night. thx

Ra95

Hi, i have resolved two problem

first submit not work i have used this code for submit:

$oSubmit = _IEGetObjByName ($oIE, "Login")
_IEAction($osubmit, "click")
_IELoadWait($oIE)

and checkbox i have use this code:

$oBox = _IEGetObjById($oIE, "attach_sig")
    $oBox.checked = False; false for uncheck or True for check

I have posted for help other person newbye.

Thx all for help.

Ra95

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  

×