Folgendes Problem:
Ich hab ein Array welches URLs enthält. In einer Schleife lass ich mir die Source der Links mit _INetGetSource() speichern. Den Prozess wollte ich nun optisch in der Progressbar darstellen, jedoch scheint _INetGetSource() das Skript so aufzuhängen das der Ladebalken nicht flüssig abläuft und unsauber aussieht. Desweiteren finde ich diese Funktion ansich schon ziemlich langsam, gibts schnellere alternativen um an die Source zu kommen?
C: Test
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <Inet.au3>
Local $URLs[11]
$URLs[0]="https://www.ebay.de"
$URLs[1]="https://www.ebay.de"
$URLs[2]="https://www.ebay.de"
$URLs[3]="https://www.ebay.de"
$URLs[4]="https://www.ebay.de"
$URLs[5]="https://www.ebay.de"
$URLs[6]="https://www.ebay.de"
$URLs[7]="https://www.ebay.de"
$URLs[8]="https://www.ebay.de"
$URLs[9]="https://www.ebay.de"
$URLs[10]="https://www.ebay.de"
$Form2 = GUICreate("Form2", 410, 105, 297, 406)
$Progress1 = GUICtrlCreateProgress(8, 24, 393, 33)
$Button1 = GUICtrlCreateButton("Nochmal", 56, 72, 273, 25)
GUISetState(@SW_SHOW)
_Test()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Test()
EndSwitch
WEnd
Func _Test()
$nr=0
Do
$Source = _INetGetSource($URLs[$nr])
GUICtrlSetData($Progress1,$nr*10)
$nr=$nr+1
Until $nr == UBound($URLs)
EndFunc
Alles anzeigen