Haiii guys, I am trying to make a bingo game to start a projcet :DD...
However I wanted to make it rather Customable so that you could make your own patterns and such.
I used the ListFilesToArray UDF by SmOke_N.
Did a test to see if I get anything out of it. Before program start.
Nothing happens...It's just down in the process bar doing nothing
The UDF:
My Code:
However I wanted to make it rather Customable so that you could make your own patterns and such.
I used the ListFilesToArray UDF by SmOke_N.
Did a test to see if I get anything out of it. Before program start.
Nothing happens...It's just down in the process bar doing nothing
The UDF:
Spoiler
My Code:
[ autoit ]
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <WindowsConstants.au3> #include <File.au3> #include <UDF/FileToArryUDF.au3> #include <array.au3> $GameArray = _FileListToArrayEx("",'*.ini',1) MsgBox(0,"",$GameArray[0]) MainMenu() ;GUICtrlSetData($Games,$GamesArray[]) ;Starting the GUI Func MainMenu() #Region GUI $Main = GUICreate("Bingo Start up", 306, 542, 192, 124) $Start = GUICtrlCreateButton("Start", 144, 424, 145, 33) $Edit = GUICtrlCreateButton("Edit Game", 144, 488, 145, 33) $Games = GUICtrlCreateList("", 8, 8, 121, 513) GUISetState(@SW_SHOW) #EndRegion While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Start Start() Exit Case $Edit Edit() Exit EndSwitch WEnd EndFunc ;Not yet made :DD Func Start() EndFunc Func Edit() ;So we start off with a name of projcet $Name = InputBox("Name of Game", "Please Choose a name for your game or edit an existing game") ;If it exists...Then open else make a new <-- there where I have problems D: $Exists = FileExists($Name & ".ini") If $Exists = 0 Then FileOpen($Name & ".ini",1) IniWriteSection($Name & ".ini","Form",@LF) ;Make a new window :D... #Region GUI ;Gui blah blah blah blah #include #include #include #include $Edit = GUICreate("Edit", 209, 163, 204, 132) $Rows = GUICtrlCreateInput("", 64, 16, 121, 21) $Collons = GUICtrlCreateInput("", 64, 48, 121, 21) $MinNumber = GUICtrlCreateInput("", 88, 88, 25, 21) $MaxNumber = GUICtrlCreateInput("", 128, 88, 25, 21) $Done = GUICtrlCreateButton("Done", 19, 120, 73, 25) $Next = GUICtrlCreateButton("Next", 112, 120, 73, 25) $RowLabel = GUICtrlCreateLabel("Rows", 16, 16, 31, 17) $CollonsLabel = GUICtrlCreateLabel("Collons", 16, 48, 38, 17) $NumberLabel = GUICtrlCreateLabel("Number from", 16, 88, 64, 17) $NoEdit = GUICtrlCreateLabel("-", 120, 88, 7, 17) ;Reads the texts of my Input boxes (Errors here) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Done $ReadRows = GUICtrlRead($Rows) $ReadCollons = GUICtrlRead($Collons) $ReadMinN = GUICtrlRead($MinNumber) $ReadMaxN = GUICtrlRead($MaxNumber) IniWrite($Name & ".ini", "Form", "Rows", $ReadRows) IniWrite($Name & ".ini", "Form", "Collons", $ReadCollons) IniWrite($Name & ".ini", "Form", "MinN", $ReadMinN) IniWrite($Name & ".ini", "Form", "MaxN", $ReadMaxN) Exit Case $Next Exit EndSwitch WEnd #EndRegion Else MsgBox(0,"LOL","shit exists") EndIF EndFunc