重新输入值怎么成了0?
#include <ButtonConstants.au3>#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$input1 = GUICtrlCreateInput("", 96, 96, 121, 21)
$input2 = GUICtrlCreateInput("", 104, 152, 121, 21)
$Button1 = GUICtrlCreateButton("Button1", 288, 296, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$Input1 = GUICtrlRead($Input1)
$Input2 = GUICtrlRead($Input2)
MsgBox(0, 0, $Input1 & "---" & $Input2)
EndSwitch
WEnd
老革命碰到新问题?
Case $Button1
$AInput1 = GUICtrlRead($input1)
$AInput2 = GUICtrlRead($input2)
MsgBox(0, 0, $AInput1 & @CRLF & $AInput2) 用这样就直接明了
Case $Button1
MsgBox(0, 0, GUICtrlRead($input1) & @CRLF & GUICtrlRead($input2))
$Input1 = GUICtrlRead($Input1) 哎,不好意思了,各位。
页:
[1]