Hallo PokerFace,
hier noch ein Beispiel aus der Hilfe, wo der Progress in der Statusbar angezeigt wird:
Spoiler anzeigen
#include <GuiConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <ProgressConstants.au3>
#include <SendMessage.au3>
Opt('MustDeclareVars', 1)
[/autoit] [autoit][/autoit] [autoit]$Debug_SB = False ; Check ClassName being passed to functions, set to True and use a handle to another control to see it work
[/autoit] [autoit][/autoit] [autoit]_Main()
[/autoit] [autoit][/autoit] [autoit]Func _Main()
[/autoit] [autoit][/autoit] [autoit]Local $hGUI, $hProgress, $hInput, $input, $progress, $hStatus
Local $aParts[4] = [80, 160, 300, -1]
; Create GUI
$hGUI = GUICreate("StatusBar Embed Control", 400, 300)
;===============================================================================
; defaults to 1 part, no text
$hStatus = _GUICtrlStatusBar_Create ($hGUI)
_GUICtrlStatusBar_SetMinHeight ($hStatus, 20)
;===============================================================================
GUISetState()
; Initialize parts
_GUICtrlStatusBar_SetParts ($hStatus, $aParts)
_GUICtrlStatusBar_SetText ($hStatus, "Part 1")
_GUICtrlStatusBar_SetText ($hStatus, "Part 2", 1)
; Embed a progress bar
If @OSTYPE = "WIN32_WINDOWS" Then
$progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_SMOOTH)
$hProgress = GUICtrlGetHandle($progress)
_GUICtrlStatusBar_EmbedControl ($hStatus, 2, $hProgress)
Else
$progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_MARQUEE) ; marquee works on Win XP and above
$hProgress = GUICtrlGetHandle($progress)
_GUICtrlStatusBar_EmbedControl ($hStatus, 2, $hProgress)
_SendMessage($hProgress, $PBM_SETMARQUEE, True, 200) ; marquee works on Win XP and above
EndIf
$input = GUICtrlCreateInput("This is Embeded", 0, 0)
$hInput = GUICtrlGetHandle($input)
_GUICtrlStatusBar_EmbedControl ($hStatus, 3, $hInput, 3)
; Loop until user exits
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
EndFunc ;==>_Main
Kannst es dir ja auf dein Skript umschreiben,
ps.: ohne Stick läuft das gepostete Skript gar nicht Meldungen:
[autoit]>"C:\Programme\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Programme\AutoIt3\Downloads\FunKey\Spoiler\Wie heißt dieser Ladebalken_Post_96239_Beitrag_8_Skript_1.au3" /autoit3dir "C:\Programme\AutoIt3" /UserParams
+>23:22:48 Starting AutoIt3Wrapper v.1.10.1.14 Environment(Language:0407 Keyboard:00000407 OS:WIN_XP/Service Pack 3 CPU:X86 ANSI)
>Running AU3Check (1.54.14.0) from:C:\Programme\AutoIt3
C:\Programme\AutoIt3\Downloads\FunKey\Spoiler\Wie heißt dieser Ladebalken_Post_96239_Beitrag_8_Skript_1.au3(63,27) : WARNING: $Dir: possibly used before declaration.
ShellExecute($Dir&
~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Programme\AutoIt3\Downloads\FunKey\Spoiler\Wie heißt dieser Ladebalken_Post_96239_Beitrag_8_Skript_1.au3 - 0 error(s), 1 warning(s)
->23:22:48 AU3Check ended.rc:1
>Running:(3.3.0.0):C:\Programme\AutoIt3\autoit3.exe "C:\Programme\AutoIt3\Downloads\FunKey\Spoiler\Wie heißt dieser Ladebalken_Post_96239_Beitrag_8_Skript_1.au3"
C:\Programme\AutoIt3\Downloads\FunKey\Spoiler\Wie heißt dieser Ladebalken_Post_96239_Beitrag_8_Skript_1.au3 (148) : ==> Subscript used with non-Array variable.:
For $i = 1 To $aDGD[0]
For $i = 1 To $aDGD^ ERROR->23:22:49 AutoIT3.exe ended.rc:1
+>23:22:50 AutoIt3Wrapper Finished
>Exit code: 1 Time: 2.871
mfg (Auto)Bert