Komme nicht weiter!! BITTE helfen!

  • Hallo!
    Ich komme bei diesen Script nicht weiter:

    Spoiler anzeigen

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ProgressConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Test-Programm", 625, 445, 192, 124)
    $Progress1 = GUICtrlCreateProgress(80, 264, 353, 25)
    $Button1 = GUICtrlCreateButton("Create ", 80, 168, 201, 49, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit

    EndSwitch
    WEnd


    Wenn man auf den Button klickt soll der Balken immer voller werden!

    ?( ?( ?( ?( :pinch:

    Einmal editiert, zuletzt von slin (13. Oktober 2009 um 17:39)

  • so?

    Spoiler anzeigen
    [autoit]

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ProgressConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Test-Programm", 625, 445, 192, 124)
    $Progress1 = GUICtrlCreateProgress(80, 264, 353, 25)
    $Button1 = GUICtrlCreateButton("Create ", 80, 168, 201, 49, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    case $Button1
    GUICtrlSetData($progress1,GUICtrlRead($progress1)+10)
    EndSwitch
    WEnd

    [/autoit]
  • ja!!!! Danke!

    Spoiler anzeigen

    #include <ButtonConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <ProgressConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Test-Programm", 625, 445, 192, 124)
    $Progress1 = GUICtrlCreateProgress(80, 264, 353, 25)
    $Button1 = GUICtrlCreateButton("Create ", 80, 168, 201, 49, $WS_GROUP)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    case $Button1
    GUICtrlSetData($progress1,GUICtrlRead($progress1)+10)
    EndSwitch
    WEnd