faustf Posted June 29, 2015 Posted June 29, 2015 hi guy i have this site and i want automatic login insidehttps://www.kijiji.it/miei-annunci/accedii 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
MikahS Posted June 29, 2015 Posted June 29, 2015 (edited) Have you tried using _IEFormGetCollection? Edited June 29, 2015 by MikahS clarity Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy 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
faustf Posted June 29, 2015 Author Posted June 29, 2015 (edited) 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 June 29, 2015 by faustf
Exit Posted June 29, 2015 Posted June 29, 2015 #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 faustf 1 App: Au3toCmd UDF: _SingleScript()
MikahS Posted June 29, 2015 Posted June 29, 2015 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 ~ getENVvarsMy 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now