本帖最后由 鸟人 于 2012-7-16 07:54 编辑
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 444, 192, 124)
$Checkbox1 = GUICtrlCreateCheckbox("选择我", 72, 120, 121, 17)
$Input1 = GUICtrlCreateInput("112233", 216, 120, 169, 21,$ES_PASSWORD)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Checkbox1
GUICtrlSetState($Input1, $GUI_FOCUS)
If GUICtrlRead($Input1)<>"" Then ClipPut(GUICtrlRead($Input1))
MsgBox(0,'',ClipGet())
EndSwitch
WEnd
|