IE URL auslesen (mehrere tabs)

  • Hi @all

    ich habe folgenden code:

    Code
    #include <IE.au3> #include <Process.au3>dim $oldURL = "blank"while 1if _ProcessGetName(WinGetProcess("")) = "iexplore.exe" Then	$hwnd = WinGetHandle("")	$i_obj = _IEAttach($hwnd,"HWND")	$url = _IEPropertyGet($i_obj,"locationurl")	if $url <> $oldURL Then	IniWrite("history.ini","IE",@mday&"."&@mon&"."&@year&"--"&@HOUR&":"&@MIN&":"&@SEC&"."&@MSEC,$url)	$oldURL = $url	EndIfEndIfSleep(250)WEnd


    Problem:
    wenn ich in einem 2 tab umherbrowse, wird der url im history.ini file nicht aufgeführt. und im scite krieg ich folgende fehlermeldung:

    --> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
    --> IE.au3 V2.4-0 Error from function _IEPropertyGet, $_IEStatus_InvalidDataType

    hoffe jemand kann mir sagen wo der fehler liegt