Ich habe ein kleines Script zur Abfrage von Adressdaten geschrieben. Es geht dabei um festzustellen wie der Abstand von einer Adresse zu mehren anderen ist. Mir ist das Script einfach zu langsam, könnt ihre helfen es schneller zu machen?
[autoit]
#include <IE.au3>
#include <Array.au3>
#include <GUIConstants.au3>
#include <String.au3>
$fadd = "berliiner Allee 10"
$fcity = "Hannover"
$fstate = "Germany"
local $tadd[10],$tcity[10],$tstate[10],$End[10]
$tadd[1] = "Seestrasse 5"
$tcity[1] = "Berlin"
$tstate[1] = "Germany"
$tadd[2] = "Berliner Allee 4"
$tcity[2] = "Hannover"
$tstate[2] = "Germany"
for $t = 1 to 2
$Start = ($fadd & ", " & $fcity & " " & $fstate)
$End[$t] = ($tadd[$t] & ", " & $tcity[$t] & " " & $tstate[$t])
$sUrl = "http://maps.google.com/maps?f=d&hl=de&saddr="&StringReplace($start&"&daddr="&$End[$t]," ","+")
$oIE = _IECreate($sUrl,0,0)
_IELoadWait($oIE)
$oDiv = _IEGetObjById($oIE, "altroute_0")
$Result = (_IEPropertyGet($oDiv, "innerhtml"))
$data = _StringBetween($Result, '<DIV class="altroute-rcol altroute-info">','</DIV>')
ConsoleWrite($data[0]&@CRLF)
Next