不知道pusofalse 大虾是不是这个意思:#include <WindowsConstants.au3>
$Form1 = GUICreate("Form1", 300, 300)
$Input1 = GUICtrlCreateInput("", 80, 50, 150, 21)
$Input2 = GUICtrlCreateInput("", 80, 100, 150, 21)
GUISetState()
GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case - 3
Exit
EndSwitch
WEnd
Func WM_COMMAND($hWnd, $iMsg, $iwParam, $ilParam)
Switch $ilParam
Case GUICtrlGetHandle($Input1)
GUICtrlSetData($Input2, GUICtrlRead($Input1))
Case GUICtrlGetHandle($Input2)
GUICtrlSetData($Input1, GUICtrlRead($Input2))
EndSwitch
EndFunc ;==>WM_COMMAND
|