IE Automatisierung Hilfe

03/31/2012 14:21 merlin1102#1
Hallo,
ich möchte gerne meinen IE Automatisieren. Komme nur nicht weiter.
FF ist zu langsam und macht das auch nicht im minimierten zustand.
Ich will für SP einen Autologin machen. Ich war schon in anderen Foren unterwegs,
jedoch nur Kommentare gehört die mir nicht bei dem Problem helfen.
Das ist das was ich bis jetzt erreicht habe:
PHP Code:
$name=""
$pw=""

$oIE=_IECreate("http://www.looki.de/info/space-pioneers/start.html")

$Form = _IEFormGetCollection ($oIE,"login")
$Query = _IEFormElementGetObjByName ($Form, "email")
$Query1 = _IEFormElementGetObjByName ($Form, "password")
_IEFormElementSetValue ($Query, $name)
_IEFormElementSetValue ($Query1, $pw) 
Das Problem besteht jetzt darin das ich den Button fürs Login nicht ansteuern kann.
Könnte mir jemand helfen, ohne dumme Kommentare?
03/31/2012 14:27 jacky919#2
PHP Code:
_IEFormSubmit($form) 
03/31/2012 14:30 omer36#3
PHP Code:
#include <IE.au3>

$name=""
$pw=""

$oIE=_IECreate("http://www.looki.de/info/space-pioneers/start.html")

$Form = _IEFormGetCollection ($oIE, 0)
$Query = _IEFormElementGetObjByName ($Form, "email")
$Query1 = _IEFormElementGetObjByName ($Form, "password")
_IEFormElementSetValue ($Query, $name)
_IEFormElementSetValue ($Query1, $pw)


_IEFormSubmit($Form) 
€War einer schneller :>
03/31/2012 14:30 merlin1102#4
Vergessen zu erwähnen.
PHP Code:
_IEFormSubmit($form) 
Damit klappt das nicht.
03/31/2012 14:33 omer36#5
_IEFormGetCollection ($oIE, 0)

(habs oben getestet und es klappt)
03/31/2012 14:36 merlin1102#6
JA, super hat funktioniert. Danke danke.
weil ich login genommen habe statt 0.
Was gelernt. Danke