Suche den fehler ?

  • wo ist hier der fehler ?!

  • wo ist hier der fehler ?!

    benutze Organize Includes und dann hast Du solche Probleme nicht mehr...

    Gruss,
    Automatisator

  • Der grösste Fehler ist das du das bild nicg disablest, der nächste dass du den beiden Buttons keine Aktion zu weist. Das ganze könnte dann so aussehen:

    Spoiler anzeigen
    [autoit]

    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <GUIConstants.au3>

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

    $Form1 = GUICreate("Starter", 384, 384, 233, 136)
    $Pic1 = GUICtrlCreatePic("C:\Users\thekiller2552\Pictures\creeperlove2.jpg", 0, 0, 400, 400, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    GUICtrlSetState(-1,$GUI_DISABLE)
    $Button1 = GUICtrlCreateButton("Ja", 16, 8, 105, 33, 0)
    $Button2 = GUICtrlCreateButton("Nein", 264, 8, 105, 33, 0)
    GUISetState(@SW_SHOW)

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

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $Button1
    MsgBox(0,"Taste","Ja wurde gedrückt")
    Case $Button2
    MsgBox(0,"Taste","Nein wurde gedrückt")
    EndSwitch
    WEnd

    [/autoit]

    mfg autoBert