Code:
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Marco\Eigene Dateien\mein programm.kxf
$Form2 = GUICreate("Dialog", 316, 233, 350, 250)
GUISetIcon("D:\002.ico")
$GroupBox1 = GUICtrlCreateGroup("Multi-Tool", 8, 9, 297, 193)
GUICtrlSetBkColor(-1, 0xFFFBF0)
$Label1 = GUICtrlCreateLabel("", 8, 24, 4, 4)
GUICtrlSetBkColor(-1, 0xFFFBF0)
$Button1 = GUICtrlCreateButton("Herunterfahren", 12, 88, 80, 17, 0)
$Button2 = GUICtrlCreateButton("MSN Starten", 116, 88, 80, 17, 0)
$Button3 = GUICtrlCreateButton("ICQ starten", 216, 88, 81, 17, 0)
$Button4 = GUICtrlCreateButton("Internet Explorer", 16, 120, 81, 17, 0)
$Button5 = GUICtrlCreateButton("PC Uhr", 120, 120, 81, 17, 0)
$Button7 = GUICtrlCreateButton("Taskmanager", 216, 120, 75, 17, 0)
$Button8 = GUICtrlCreateButton("Solitaire", 24, 152, 81, 17, 0)
$Button9 = GUICtrlCreateButton("About", 224, 160, 81, 25, 0)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlSetCursor ($GroupBox1, 2)
;hier musste ich die Namen ändern. Du darfst keine Variablen doppelt benutzten.
$Button10 = GUICtrlCreateButton("&EXIT", 70, 203, 75, 25, 0)
$Button11 = GUICtrlCreateButton("&Cancel", 149, 204, 75, 25, 0)
$Button12 = GUICtrlCreateButton("&Help", 229, 204, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
;Hier kommen die Abfragen rein
;einfacher hast du es wenn du sinnvolle Variablennamen nimmst
;anstatt $Button1 z.B. $But_shutdown -> dann weißt du am But das es ein Button ist
;und an dem Teil nach dem _ was er macht
;ist bei so kleinen Skripts noch egal bei größeren aber fast unabdingbar
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run ("shutdown -s")
Case $Button8
Run ("sol.exe")
Case $Button9
MsgBox(0, "About", "Coder: K0rxxx,Prounreal")
EndSwitch
WEnd
3 Beispiele hab ich dir schonmal reingeschrieben.