Hallo zusammen.
Ich habe eine Frage bezüglich "_IECreate".
Hier einmal der Code;
[autoit]
#include <IE.au3>
$url = "https://blabla.com"
Global $oIE = _IECreate($url)
$oform = _IEFormGetCollection($oIE, 0)
;Anmeldedaten
$sUsername = ''
$sPassword = ''
$oname = _IEFormElementGetObjByName($oform , "username")
$opasswd = _IEFormElementGetObjByName($oform , "password")
$obutton = _IEFormElementGetObjByName($oform , "login")
$setname = _IEFormElementSetValue($oname, $sUsername)
$setpasswd = _IEFormElementSetValue($opasswd, $sPassword)
;Links
$IEaccounts = "https://"
$CPtup001 = "https://"
$BackupTup001 = "https://"
;Anmeldung wird ausgeführt
_IEAction($obutton, "click")
_IELoadWait($oIE)
_IENavigate ($oIE, $IEaccounts)
_IELoadWait($oIE)
_IENavigate ($oIE, $CPtup001)
_IELoadWait($oIE)
_IENavigate ($oIE, $BackupTup001)
_IELoadWait($oIE)
;Nun muss ich, damit ich einen Button klicken kann der oben noch nicht "geladen"
;wurde, die Form neu laden
$url2Download = "https://www.anderer.link.com"
Global $oIE2Download = _IECreate($url2Download )
$oform2Download = _IEFormGetCollection($oIE2Download, 0)
$oButton2Download = _IEFormElementGetObjByName($oform2Download , "dbbackup")
_IEAction($oButton2Download, "click")
;Leider macht es ein neues Fenster auf (Logisch _IECreate) und dass
;möchte ich nicht ![]()
Das "Problem" ist, wenn ich eine Form neu laden will resp. der neue "Download Button", öffnet es mir ein neues IE-Fenster (schaue Code) und dies möchte ich nicht.
Leider habe ich noch keine andere Möglichkeit gefunden...
Besten Dank für eure Hilfe =)