1# zjg2003 #include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 447, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 80, 40, 449, 273)
GUICtrlSetData(-1, "在这里输入文本")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
$Mouse=GUIGetCursorInfo()
If $Mouse[2]=1 And $Mouse[4]=$Edit1 Then
$Txt=GUICtrlRead($Edit1)
If $Txt="在这里输入文本" Then
GUICtrlSetData($Edit1,"")
EndIf
EndIf
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|