Nach Button Click neue Form

  • Hallo,
    Ich wollte mal fragen wie ich per Button Click eine neue Form aufrufen kann?

  • hm versteh ich net so ganz

    [autoit]

    $start = GUICtrlCreateButton("&Start", 6, 456, 75, 25, 0) $cancel = GUICtrlCreateButton("&Cancel", 94, 456, 75, 25, 0) $help = GUICtrlCreateButton("&Help", 184, 456, 75, 25, 0) GUISetState(@SW_SHOW)

    [/autoit]


    Form selber habe ich natürlcih auch nur jetzt will ich das wne ich button help drücke diese Form kommen soll:

    [autoit]

    #include

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

    #Region ### START Koda GUI section ### Form=
    $Form2 = GUICreate("Hilfe By:Aang !", 405, 171, -1, -1)
    GUISetBkColor(0xFFFFFF)
    FileInstall ( "D:\Dokumente und Einstellungen\Besitzer\Desktop\alo\1.JPG", @ScriptDir & "\imbue.jpg")
    $PIC1 = GUICtrlCreatePic(@ScriptDir & "\imbue.jpg", 8, 8, 49, 36, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    FileInstall ( "D:\Dokumente und Einstellungen\Besitzer\Desktop\alo\2.JPG", @ScriptDir & "\slot.jpg")
    $PIC1 = GUICtrlCreatePic(@ScriptDir & "\slot.jpg", 8, 48, 252, 36, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
    $Label1 = GUICtrlCreateLabel("<--Imbue !", 72, 16, 61, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $Label2 = GUICtrlCreateLabel("<--Slots!", 272, 56, 51, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    $Label3 = GUICtrlCreateLabel("F5 Start Bot,F6 Stop Bot , Esc Exit Bot , F7 Auto Grab ,F8 Stop Grab", 8, 88, 394, 17)
    GUICtrlSetFont(-1, 8, 800, 0, "MS Sans Serif")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

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

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

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

    EndSwitch
    WEnd

    [/autoit]


    </GUIConstants.au3>