Dim $cfg = @ScriptDir & "\1.txt"
$k = Number(IniRead($cfg, "set", "数值", ""))
MsgBox(64, "123", $k)
$Form1 = GUICreate("Form1", 220, 110)
$Input1 = GUICtrlCreateInput("Input1", 16, 16, 193, 21)
$Input2 = GUICtrlCreateInput("Input2", 16, 40, 193, 21)
$Button1 = GUICtrlCreateButton("Button1", 104, 64, 105, 41)
GUISetState()
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case - 3
Exit
Case $Button1;;;;;;; 数字4,5,6,7,8,9 等数字 它计算的结果小于$K 怎样才可以正确比对??
If GUICtrlRead($Input1) <= $k Then GUICtrlSetData($Input2, GUICtrlRead($Input1))
EndSwitch
WEnd
|