AutoIT Ladebalken

12/13/2010 15:24 Rocker15#1
Hallo kann mir bitte jemand sagen wie man beim ladebalken die geschwindigkeit ändert? Also hier mein script
PHP Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 193, 125)
$Progress1 = GUICtrlCreateProgress(368, 56, 89, 17)
$Button1 = GUICtrlCreateButton("OK", 152, 160, 249, 65, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
= GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
            
Case 
$Button1
 GUICtrlSetData
($Progress1, 100) 
EndSwitch
WEnd 
12/13/2010 15:28 sava#2
Wie meinst du Geschwindigkeit ändern?

Habe [Only registered and activated users can see links. Click Here To Register...] Progressbar erklärt!
12/13/2010 15:34 Rocker15#3
ja wenn man zb die % auf 100 stellt dann ist es so in 2. sek fertig geladen ich möchte aber dass es länger braucht bis es bei 100% ist zb 5.sek
12/13/2010 15:37 ZeraPain#4
Code:
#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 193, 125)
$Progress1 = GUICtrlCreateProgress(368, 56, 89, 17)
$Button1 = GUICtrlCreateButton("OK", 152, 160, 249, 65, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			For $i = 1 To 100
				GUICtrlSetData($Progress1, $i)
				Sleep(10)
			Next
	EndSwitch
WEnd
12/13/2010 15:38 omer36#5
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 415, 151, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 152, 96, 73, 41, $WS_GROUP)
$Progress1 = GUICtrlCreateProgress(16, 40, 377, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
= GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            
for $i = 0 to 100
                GUICtrlSetData
($Progress1, $i)
                
Sleep(50)
            
Next
    
EndSwitch
WEnd 

wenn schneller/langsammer willst, den sleepwert in der for schleife öändern