Page 1 sur 1

[R] Un petit problème

Posté : sam. 18 juil. 2009 10:09
par Eoweakin
Bonjour !
Je vais faire court :
Quand le script arrive au bout de code (souligné), rien ne se passe... :cry:
Pourquoi ?

Code : Tout sélectionner

    $URL = "http://www.wow-rif.fr/forum/"

    $IE = ObjCreate("InternetExplorer.Application")
    $IE.visible = 1
    $IE.navigate($URL)

    WinWaitActive("WoW-RiF - Exploits, Cheats, Bots, Hacks et guides du MMO World Of Warcraft - Powered by vBulletin - Windows Internet Explorer")

    [u]$IE.document.getElementById("vb_login_username" ).value = $Login
    $IE.document.getElementById("vb_login__password" ).value = $Password
    Send("{ENTER}")[/u]

Re: [..] Un petit problème

Posté : sam. 18 juil. 2009 10:51
par ani
bonjour :)

Code : Tout sélectionner

Func _wow($Login,$Password)
$oIE = _IECreate("http://www.wow-rif.fr/forum/", 0, 1)
$oForm = _IEFormGetCollection($oIE,0)
$oName = _IEFormElementGetObjByName ($oForm, "vb_login_username")
$oPass = _IEFormElementGetObjByName ($oForm, "vb_login_password")
_IEFormElementSetValue ($oName, $Login)
_IEFormElementSetValue ($oPass, $Password)
_IEFormSubmit ($oForm)
EndFunc
bonne continuation ;)

Re: [..] Un petit problème

Posté : sam. 18 juil. 2009 11:10
par Eoweakin
Merci ! :mrgreen: