Jump to content
Sign in to follow this  
faustf

_ie automatic login how to ??

Recommended Posts

faustf

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

 

Share this post


Link to post
Share on other sites
MikahS

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

 

Share this post


Link to post
Share on other sites
Exit
#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

 

  • Like 1

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
MikahS

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

 

Share this post


Link to post
Share on other sites
faustf

thanks so much

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  

×