[..] Probleme avec _IEImgClick

Aide et conseils concernant AutoIt et ses outils.
Règles du forum
.
Répondre
Avatar du membre
yagonfstm91
Niveau 4
Niveau 4
Messages : 66
Enregistré le : dim. 07 août 2011 14:26
Status : Hors ligne

[..] Probleme avec _IEImgClick

#1

Message par yagonfstm91 »

Boujour voila j'essaye d'utiliser _IEImgClick mais je n'y arrive pas, voici un exemple :

Code : Tout sélectionner

#include <IE.au3>
$oIE = _IECreate ("http://m.jeuxvideo.com/etajvbis.htm")
$Input_Name  = _IEGetObjByName($oIE, "texte")
_IEFormElementSetValue($Input_Name, "mario")
_IEImgClick($oIE, "http://image.jeuxvideo.com/mobile/bt_valid.png")

Code : Tout sélectionner

--> IE.au3 V2.4-0 Warning from function _IEImgClick, $_IEStatus_NoMatch
Ou est le problème ? :|

Merci
Mon site web : http://YagoServer.net/
Avatar du membre
mikell
Spammer !
Spammer !
Messages : 6292
Enregistré le : dim. 29 mai 2011 17:32
Localisation : Deep Cévennes
Status : Hors ligne

Re: [..] Probleme avec _IEImgClick

#2

Message par mikell »

$_IEStatus_NoMatch : _IEImgClick n'a pas trouvé l'image, ou le lien ne lui dit rien ^^
C'est probablement parce que l'image a un tag html <input> et pas <img>
Essaie plutôt ça

Code : Tout sélectionner

include <IE.au3>
$oIE = _IECreate ("http://m.jeuxvideo.com/etajvbis.htm")
$oForm = _IEFormGetCollection ($oIE, 0)
$Input_Name = _IEGetObjByName($oIE, "texte")
_IEFormElementSetValue($Input_Name, "mario")
_IEFormSubmit ($oForm)
" L'échec est le fondement de la réussite. " (Lao-Tseu )
" Plus ça rate, plus on a de chances que ça marche " (les Shadoks )
Avatar du membre
yagonfstm91
Niveau 4
Niveau 4
Messages : 66
Enregistré le : dim. 07 août 2011 14:26
Status : Hors ligne

Re: [..] Probleme avec _IEImgClick

#3

Message par yagonfstm91 »

J'ai essayer avec l'image rechercher en haut a droite du site, son code est

Code : Tout sélectionner

<a href="http://m.jeuxvideo.com/recherche.htm">
<img class="bt_rech" src="http://image.jeuxvideo.com/mobile/bt_rech.png" alt="Recherche"/>
</a>
Ca ne fonctionne pas non plus :(

Code : Tout sélectionner

#include <IE.au3>
$oIE = _IECreate ("http://m.jeuxvideo.com/etajvbis.htm")
_IEImgClick($oIE, "http://image.jeuxvideo.com/mobile/bt_rech.png")
Mon site web : http://YagoServer.net/
Avatar du membre
mikell
Spammer !
Spammer !
Messages : 6292
Enregistré le : dim. 29 mai 2011 17:32
Localisation : Deep Cévennes
Status : Hors ligne

Re: [..] Probleme avec _IEImgClick

#4

Message par mikell »

Bah chez moi il marche ton code ...

Code : Tout sélectionner

_IEImgClick($oIE, "Recherche", "alt")
ou
_IEImgClick($oIE, "http://image.jeuxvideo.com/mobile/bt_rech.png")  ; , "src")
" L'échec est le fondement de la réussite. " (Lao-Tseu )
" Plus ça rate, plus on a de chances que ça marche " (les Shadoks )
Répondre