Hallo,
habe folgendes Skript für den privaten Gebrauch erstellt:
Code
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Veridium", 113, 85, 200, 100)
$leuro = GUICtrlCreateLabel("EUR/USD", 2, 2, 60, 15)
$ldax = GUICtrlCreateLabel("DAX", 2, 17, 60, 15)
$ldow = GUICtrlCreateLabel("DOW", 2, 32, 60, 15)
$loel = GUICtrlCreateLabel("Öl", 2, 47, 60, 15)
$Button1 = GUICtrlCreateButton("Refresh", 2, 62, 108, 20, 0)
$weuro = GUICtrlCreateLabel("0", 62, 2, 60, 15)
$wdax = GUICtrlCreateLabel("0", 62, 17, 60, 15)
$wdow = GUICtrlCreateLabel("0", 62, 32, 60, 15)
$woel = GUICtrlCreateLabel("0", 62, 47, 60, 15)
$wdow = GUICtrlCreateLabel("0", 62, 32, 60, 15)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_aktualisieren ()
EndSwitch
WEnd
Func _aktualisieren()
$keuro = InetRead("http://finance.yahoo.com/d/quotes.csv?s=EURUSD=X&f=a",1)
$euro = BinaryToString($keuro)
GUICtrlSetData($weuro, $euro)
$kdax = InetRead("http://finance.yahoo.com/d/quotes.csv?s=^GDAXI&f=a",1)
$dax = BinaryToString($kdax)
GUICtrlSetData($wdax, $dax)
$kdow = InetRead("http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=a3",1)
$dow = BinaryToString($kdow)
GUICtrlSetData($wdow, $dow)
$koel = InetRead("http://finance.yahoo.com/d/quotes.csv?s=CLV11.NYM&f=a",1)
$oel = BinaryToString($koel)
GUICtrlSetData($woel, $oel)
EndFunc
Alles anzeigen
Die Labels werden nur bei dem ersten Klick auf "refresh" ausgefüllt, bei den darauffolgenden Versuchen tut sich nichts...
Woran liegt das?
Gruß
argonautik