Hallo liebe Community
Ich versuche gerade einen Login für Autoit über die WebTcp.au3 hin zu bekommen.
Anschließend möchte ich das der Login der über WebTcp zustanden gekommen ist an ein Internet Explorer Fenster übergeben wird.
So das ich dann normal mit dem Internet Explorer weiter surfen kann ich aber angemeldet bin.
Zur Zeit scheitere ich am übergeben der Session die sich meines wissen ja in den Cookies befindet.
Ich hoffe das jemand mir weiterhelfen kann.
Mein bisheriges Script
#include <IE.au3>
#include <WebTcp.au3>
_WebTcp_Startup()
$oWebTcp = _WebTcp_Create(False)
$username=InputBox("Benutzername","Geben sie einen Benutzernamen ein")
$password=Inputbox("Password","Geben sie ihr Password ein")
$oWebTcp.Navigate("http://www.autoit.de/index.php?form=UserLogin","loginUsername="&$username&"&loginPassword="&$password&"&useCookies=1&url=")
$cookies=$oWebTcp.Cookies.Tostring
$oIE = _IECreate('www.autoit.de')
_IESetCookies($oIE, $cookies)
_IEAction($oIE, 'refresh')
Func _IESetCookies(ByRef $oIE, $Cookies)
$oIE.document.cookie = StringStripWS($Cookies, 7)
EndFunc
Ich habe hier aus einem anderen Forum eine Lösung gefunden die bei mir jedoch nicht Funktioniert.
Ich hoffe ihr könnt mir weiterhelfen.
Es würde auch schon helfen wen ihr mir eine Funktion geben könntet mit der ich Cookies im Internet Explorer oder in Firefox setze.