Wer kann mir das vbs script in au3 übersetzen?
Code
'fb_reconnect.vbs (c) 2009 by Michael Engelke <http://www.mengelke.de>
On Error Resume Next
host = InputBox("Bitte die Adresse der Fritz!Box eingeben!" & vbcrlf & vbcrlf & "Alternativ-Adressen:" & vbcrlf & "192.168.178.1 oder 169.254.1.1", _ "FB-Reconnect (c) 2009 by Michael Engelke","fritz.box")
If host = False Then WScript.QuitEnd IfSet http = NothingSet http = CreateObject("WinHttp.WinHttpRequest.5.1")If http Is Nothing Then Set http = CreateObject("WinHttp.WinHttpRequest.5")If http Is Nothing Then Set http = CreateObject("WinHttp.WinHttpRequest")If http Is Nothing Then Set http = CreateObject("MSXML2.ServerXMLHTTP")If http Is Nothing Then Set http = CreateObject("Microsoft.XMLHTTP")If http Is Nothing Then MsgBox "Kein HTTP-Objekt verfügbar!",16,"Fehler:"Else'On Error Goto 0 body = "<?xml version=""1.0"" encoding=""utf-8""?>" _ & "<s:Envelope xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"" s:encodingStyle=""http://schemas.xmlsoap.org/soap/encoding/"">" _ & "<s:Body><u:ForceTermination xmlns:u=""urn:schemas-upnp-org:service:WANIPConnection:1"" /></s:Body>" _ & "</s:Envelope>" With http .Open "POST", "http://" & host & ":49000/upnp/control/WANIPConn1",false .setRequestHeader "Content-Type", "text/xml; charset=""utf-8""" .setRequestHeader "Connection", "close" .setRequestHeader "Content-Length", Len(body) .setRequestHeader "HOST", host & ":49000" .setRequestHeader "SOAPACTION", """urn:schemas-upnp-org:service:WANIPConnection:1#ForceTermination""" .Send body End WithEnd If