#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 193, 125)
$Label1 = GUICtrlCreateLabel("Nützliche Seiten", 16, 16, 81, 17)
GUICtrlSetFont(-1, 5, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Button1 = GUICtrlCreateButton("YouTube", 16, 48, 81, 25, 0)
$Button2 = GUICtrlCreateButton("AutoIT Forum", 16, 88, 81, 25, 0)
$Button3 = GUICtrlCreateButton("Google", 16, 128, 81, 25, 0)
$Label2 = GUICtrlCreateLabel("Nützliche Programme", 16, 168, 104, 17)
GUICtrlSetFont(-1, 5, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Button4 = GUICtrlCreateButton("Auto Maus", 16, 200, 81, 25, 0)
$Label3 = GUICtrlCreateLabel("Shutdown-Funktionen", 16, 240, 108, 17)
GUICtrlSetFont(-1, 5, 400, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Button5 = GUICtrlCreateButton("Ausschalten", 16, 272, 89, 25, 0)
$Button6 = GUICtrlCreateButton("Neustart", 16, 312, 89, 25, 0)
$Button7 = GUICtrlCreateButton("Stanby", 16, 352, 89, 25, 0)
$Label4 = GUICtrlCreateLabel("By Robin", 8, 424, 47, 17)
GUICtrlSetFont(-1, 2, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

		Case $Button1
			ShellExecute("www.youtube.com")
		Case $Button2
			ShellExecute("www.autoit.de")
		Case $Button3
			ShellExecute("www.google.de")
		Case $Button4
			MsgBox(0, "Infomation", "Der Pc wird heruntergefahren")
			MouseClick("left",34,749,1)
			MouseClick("left",345,695,1)
		Case $Button5
			Shutdown(1)
		Case $Button6
			Shutdown(2)
		Case $Button7
			Shutdown(32)


	EndSwitch
WEnd

