edit 找不到有双击的消息
下面是,A不需要双击,自动复制到粘贴版,B点击一次就会粘贴#include <GUIConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("test", 271, 121, 297, 145)
$Input1 = GUICtrlCreateInput("A", 32, 24, 217, 21)
$Input2 = GUICtrlCreateInput("B", 32, 72, 217, 21)
GUIRegisterMsg($WM_COMMAND, "WM_COMMAND")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Func WM_COMMAND($hWnd, $Msg, $wParam, $lParam)
$nNotifyCode = BitShift($wParam, 16)
$nID = BitAND($wParam, 0x000FFFF)
Switch $nID
Case $Input1
Switch $nNotifyCode
Case $EN_UPDATE
ClipPut(GUICtrlRead($Input1))
EndSwitch
Case $Input2
Switch $nNotifyCode
Case $EN_SETFOCUS
GUICtrlSetData($Input2,ClipGet())
EndSwitch
EndSwitch
EndFunc ;==>WM_COMMAND
|