Schliesungsproblem

  • Ich mach das so:
    -#include <GUIConstants.au3>

    Spoiler anzeigen
    [autoit]


    while 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then exit(1) --> so funktioniert es bei mir.
    select
    case $msg = $close ; hier gehen dann die normalen weiteren case befehle weiter...
    exit(1)

    [/autoit]
  • Ok und wie baue ich es bei mir ein

    Qode:

    [autoit]

    GUICreate("Programm", @DesktopWidth, @DesktopHeight, 0, 0, 0x80880000 + 0x00000008)
    GUICtrlCreateProgress(100,@DesktopHeight - 300,@DesktopWidth - 200,200)
    GUISetState()

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

    While 1
    Switch GUIGetMsg()
    Case -3
    Exit
    EndSwitch
    WEnd

    [/autoit]
  • DA habe ich jetzt aber nix gefunden dass mir weiterhilft wie der GUICTrlCreateProgress durchläuft
    :?:

  • Wiso verschwindet der BAlken durch die Funktion GUISetSTate nicht oder stimmt das mit =100 nicht

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>

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

    GUICreate("Programm", @DesktopWidth, @DesktopHeight, 0, 0, 0x80880000 + 0x00000008)
    $Porgress1 = GUICtrlCreateProgress(100,@DesktopHeight - 300,@DesktopWidth - 200,200)
    GUICtrlSetData($Porgress1, 50)
    Sleep(100)
    GUICtrlSEtData($Porgress1,100)

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

    GUISetState()

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

    While 1
    Switch GUIGetMsg()
    Case -3
    Exit
    Case $Porgress1 = 100
    GUISetState($Porgress1,$GUI_HIDE)
    EndSwitch
    WEnd

    [/autoit]