Results 1 to 4 of 4
Thread: ?
Hybrid View
-
3rd February 2015 12:27 #1Registered User
Join Date: Jan:2015
Location: bulgaria
Posts: 40
?
: "Func" statement has no matching "EndFunc".: Func _Menu ()Code:; Script Start - Add your code below here #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Guess Game", 615, 438, 192, 124) GUISetBkColor(0x800080) $Starter = GUICtrlCreateButton("Start", 96, 104, 425, 209) GUICtrlSetFont(-1, 24, 800, 0, "MS Sans Serif") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Starter Func _Menu() EndSwitch WEnd Func _Menu() #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Guess It", 615, 438, -1, -1) GUISetBkColor(0xFF0000) $Start = GUICtrlCreateButton("Start", 232, 88, 147, 57) GUICtrlSetBkColor(-1, 0x3399FF) $Highscores = GUICtrlCreateButton("Highscores", 232, 248, 147, 57) GUICtrlSetBkColor(-1, 0xFFFF00) $Level = GUICtrlCreateButton("Levels", 232, 168, 147, 57) GUICtrlSetBkColor(-1, 0xFF00FF) $Developer = GUICtrlCreateButton("Developer", 232, 328, 147, 57) GUICtrlSetBkColor(-1, 0x0066CC) $Textfeld = GUICtrlCreateLabel("The Guess Game", 176, 16, 256, 41) GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif") GUICtrlSetBkColor(-1, 0x00FF00) $Help = GUICtrlCreateButton("Help", 536, 369, 57, 55) GUICtrlSetBkColor(-1, 0x800000) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Start _Start() Case $Highscores _Highscores() Case $Level _Levels() Case $Developer _Developer() Case $Help _Help() EndSwitch WEnd EndFunc ;------------------------------------------------------------------------------------------------------------------------------------------------------------- Func _Start () #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Start_screen = GUICreate("Start", 615, 438, -1, -1) GUISetBkColor(0x00FF00) $Name = GUICtrlCreateInput("Name", 160, 64, 257, 32) GUICtrlSetFont(-1, 14, 400, 0, "MS Sans Serif") $Lable_Name = GUICtrlCreateLabel("Write your name here", 160, 24, 259, 33) GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif") GUICtrlSetBkColor(-1, 0xFF0000) $Ok_button = GUICtrlCreateButton("OK", 232, 112, 123, 41) GUICtrlSetBkColor(-1, 0x99B4D1) $Back_button = GUICtrlCreateButton("Back", 16, 376, 75, 41) GUICtrlSetBkColor(-1, 0x00FFFF) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Ok_button _explaination() Case $Back_button _Menu() EndSwitch WEnd EndFunc ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Func _Highscores() Endfunc ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Func _Levels() EndFunc ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Func _Developer() EndFunc ;------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Func _Help() EndFunc Func _explaination() #Region ### START Koda GUI section ### Form=c:\users\arnie sinnvoll\desktop\game\form1_2.kxf $Form1_1 = GUICreate("Guess Game", 615, 438, 192, 124) GUISetBkColor(0xFFFF00) $Ok = GUICtrlCreateButton("Ok", 240, 192, 107, 41) $Label1 = GUICtrlCreateLabel("Name", 204, 24, 32, 17) $Edit1 = GUICtrlCreateEdit("", 208, 72, 185, 89) GUICtrlSetData(-1, "Edit1") $Back_button2 = GUICtrlCreateButton("Back", 16, 360, 67, 57) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd EndFunc
EndFunc
-
3rd February 2015 12:36 #2
While 1 endfunc func menu. , .
PS: . xD.
#makeHWBGgreatagain
-
3rd February 2015 14:44 #3
-
20th February 2015 17:18 #4Registered User
Join Date: Jan:2015
Location: bulgaria
Posts: 40
, Call("_Menu"),Call("...") ,




Reply With Quote
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in