#NoTrayIcon
#PRE_UseX64=n
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=POSID.kxf
$POSID = GUICreate("POSID", 615, 437, 192, 124)
GUISetBkColor(0xABABAB)
Global $BtnNum[0xC], $Caption = ''
For $i = 1 To 0xC
$Caption = 10 - $i
If $i = 0xA Then $Caption = 'C'
If $i = 0xB Then $Caption = 0
If $i = 0xC Then $Caption = 'Back'
$BtnNum[0xC - $i] = GUICtrlCreateButton($Caption, (48 + Mod($i - 1, 3) * 112), (48 + Floor(($i - 1) / 3) * 88), 81, 49)
GUICtrlSetFont(-1, 16, 800, 0, "微软雅黑")
GUICtrlSetColor(-1, 0x00FF00)
GUICtrlSetCursor(-1, 0)
Next
$input = GUICtrlCreateInput("", 384, 96, 225, 83)
GUICtrlSetFont(-1, 42, 400, 0, "微软雅黑")
$ook = GUICtrlCreateLabel("请确认收银工号", 392, 64, 212, 20)
GUICtrlSetFont(-1, 12, 400, 0, "黑体")
$Button1 = GUICtrlCreateButton("配置文件生成", 408, 256, 169, 81)
GUICtrlSetFont(-1, 16, 800, 0, "微软雅黑")
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $BtnNum[0xB] To $BtnNum[0]
GUICtrlSetData($input, StringIsDigit(GUICtrlRead($nMsg)) ? GUICtrlRead($input) & GUICtrlRead($nMsg) : ($nMsg = $BtnNum[2] ? "" : StringTrimRight(GUICtrlRead($input), 1)))
Case $Button1
IniWrite("路径", "项目", "关键字", GUICtrlRead($input))
MsgBox("64", "提醒", "配置文件已生成", 3)
EndSwitch
WEnd