[autoit] Zitat"C:\Users\Sascha\Documents\AutoIt Programme\BitCoin Gen\BitCoin Gen.au3" (10) : ==> Subscript used on non-accessible variable.:
Return $asResult[0]
Return $asResult^ ERROR
#include <String.au3>
[/autoit][autoit][/autoit][autoit]MsgBox(0, "Test", _GetCurrentStats("EUR", "symbol"))
[/autoit][autoit][/autoit][autoit];Get the current prices etc.
Func _GetCurrentStats($sCurrency, $sState) ;$state: {last|buy|sell|24h|symbol}
$sJSON = BinaryToString(InetRead("http://blockchain.info/ticker", 1), 4)
$asResult = _StringBetween($sJSON, $sCurrency, "}")
$asResult = _StringBetween($asResult[0], $sState & '" : ', ",")
Return $asResult[0]
EndFunc
Anscheinend gibt der immernoch 0 zurück :/.