Jump to content

_ie automatic login how to ??


Recommended Posts

hi guy  i have  this  site  and  i want  automatic login  inside

https://www.kijiji.it/miei-annunci/accedi

i tryed  to find  a  class

$oIE = _IECreate("https://www.kijiji.it/miei-annunci/accedi", 0, 1, 1, 1)

Local $oBtns = _IELinkGetCollection($oIE)

            For $oBtn In $oBtns
            $classname = String($oBtn.classname())
            ConsoleWrite($classname & @CRLF)
            If $classname = "text-input" Then
            ;MsgBox(0, 'menubar', $classname)
            ConsoleWrite("Found it" & @CRLF)
          ;  _IEAction($oBtn,"Focus")
           ; $b = _IEAction($oBtn,"Click")
            ;ConsoleWrite("ie click return=[" & $b & "]." & @CRLF)
            ExitLoop
            EndIf
            Next
            ;MsgBox(0, '', 'errore ')

but  not  wirte   nothing  in console  how  is possible???

<form data-loginform="" method="post" action="https://www.kijiji.it/miei-annunci/login">

    <div class="error-msg"></div>
    <label>
        <span class="a11y-only"></span>
        <input class="text-input" type="text" value="" data-validate="email" required="" autocapitalize="off" autocorrect="off" placeholder="Email" name="email"></input>

    </label>
    <label></label>
    <label class="checkbox"></label>
    <input class="btn btn-primary shadow" type="submit" value="Accedi"></input>
    <a id="dialog-anchor" class="login-forgot" data-fastclick="false" href="#forgot" data-fastclick-init="true"></a>

</form>

so,e  one  can help me???  thankz  at  all

 

Link to comment
Share on other sites

Have you tried using _IEFormGetCollection?

Edited by MikahS
clarity

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

i tryed  to use in this mode 

#include <IE.au3>

Local $oIE = _IECreate("https://www.kijiji.it/miei-annunci/accedi")
Local $oForm = _IEFormGetCollection($oIE, 0)
 Local $oQuery = _IEFormElementGetCollection($oForm, 4)
_IEFormElementSetValue($oQuery, "AutoIt IE.au3")
_IEFormSubmit($oForm)

but not  go

Edited by faustf
Link to comment
Share on other sites

#include <IE.au3>
$oIE = _IECreate("https://www.kijiji.it/miei-annunci/accedi", 0, 1, 1, 1)
$oInputs = _IETagNameGetCollection($oIE, "input")
For $oInput In $oInputs
    If $oInput.name = "email" Then $oInput.value = "MyEmail@email.com"
    If $oInput.name = "password" Then $oInput.value = "MyPassword"
    If $oInput.type = "submit" Then ExitLoop _IEAction($oInput,"click")
Next

 

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

Using your script here is a way to find it:

#include <IE.au3>

$oIE = _IECreate("https://www.kijiji.it/miei-annunci/accedi", 0, 1, 1, 1)

Local $oBtns = _IETagNameGetCollection($oIE, "input")

For $oBtn In $oBtns
    $classname = $oBtn.classname
    ConsoleWrite($classname & @CRLF)
    If $classname = "text-input" Then
        ConsoleWrite("Found it" & @CRLF)
        ;  _IEAction($oBtn,"Focus")
        ; $b = _IEAction($oBtn,"Click")
        ;ConsoleWrite("ie click return=[" & $b & "]." & @CRLF)
        ExitLoop
    EndIf
Next
;MsgBox(0, '', 'errore ')

 

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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