Hallo Leute ;D
Ich schreibe mal wieder ein Programm ![]()
Und wollte halt fragen ob ihr mal so über den Code ab und zu schauen könnt und mir sagen könntet
wo ich den Code bessere kürzer etc. machen kann ;D
Also hier mal der Anfang :
Den Exit Button habe ich bestimmt Komplizierter gelöst als es eigentlich ist ![]()
Spoiler anzeigen
#NoTrayIcon
; =======================================================================
; Game Launcher
; Made by Goldy
; © 2010
;
; =======================================================================
#Include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
; Code Anfang (Design)
[/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Game Launcher © by Goldy", 453, 260, 437, 472)
$Button1 = GUICtrlCreateButton("Exit", 312, 224, 129, 25)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Button2 = GUICtrlCreateButton("Start", 8, 224, 129, 25)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Button3 = GUICtrlCreateButton("Website", 160, 224, 129, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_exit()
EndSwitch
WEnd
Func _exit()
exit
EndFunc