Moin,
und zwar habe ich schon dutzende arten versucht, das irgendwie hinzubekommen.... aber ich schaffe es einach nicht.
Es soll einfach nur die URL aufrufen, den Text abspeichern und mit dem denn das InetGet ausführen.
die .php gibt nur 2 strings aus und nicht mehr.
Biite um Hilfe
Mit freundlichen Grüßen
C
#include <InetConstants.au3>
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>
#include <AutoItConstants.au3>
#include <Inet.au3>
Global $FertigSumme = 0
Global $hDownload = 0
Global $DownRead = 0
Global $Downsize = 0
Func Example()
Global $string
$string = StringSplit( _INetGetSource('http://www.zockery.de/huch.php'), ";")
Global $DownLoadSelect = $string[2]
Global $DownLoadLocation = $string[1]
$hDownload = InetGet($DownLoadLocation,$DownLoadSelect, 1, 1)
Sleep(5000)
ProgressOn("Download" & @CRLF & "..." , "0%", -1, -1, BitOR($DLG_NOTONTOP, $DLG_MOVEABLE))
Do
$DownRead = InetGetInfo ( $hDownload, 0 )
$DownSize = InetGetInfo ( $hDownload, 1 )
$FertigSumme = ($DownRead*100)/$DownSize
ProgressSet(round($FertigSumme,1), round($FertigSumme,1) & "%")
If InetGetInfo ( $hDownload, $INET_DOWNLOADSIZE ) == InetGetInfo ( $hDownload, $INET_DOWNLOADREAD ) Then
ProgressSet(100, "Download", "Complete")
Sleep(5000)
ProgressOff()
EndIf
Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE)
InetClose($hDownload)
EndFunc
Example()
Alles anzeigen