#include #include #include #include #include #Region ### START Koda GUI section ### Form=c:\users\k3stros\desktop\programs\my game\p1namepromptgui.kxf $P1NamePromptGUI = GUICreate("Player 1", 188, 99, 411, 289) $PlayerNameInput = GUICtrlCreateInput("Enter Name", 8, 8, 169, 21, BitOR($ES_CENTER,$ES_AUTOHSCROLL,$WS_BORDER)) GUICtrlSetLimit(-1, 7) GUICtrlSetFont(-1, 11, 400, 0, "Absolute Zero") GUICtrlSetBkColor(-1, 0x00FFFF) GUICtrlSetCursor (-1, 5) $ConfirmName = GUICtrlCreateButton("Confirm", 40, 56, 105, 33, $WS_GROUP) $CharacterLimit = GUICtrlCreateLabel("7 Characters", 56, 32, 64, 17) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit case $ConfirmName $DataFromUser = GUICtrlRead($PlayerNameInput) $SaveLocation = FileSaveDialog('Save file', @scriptDir, 'text files (Player1.txt)', 16) FileWrite($SaveLocation, $DataFromUser) EndSwitch WEnd