回复 7# lon91ong
你是想监控鼠标点击?
看看这个是不是你想要的
#include <GUIConstantsEx.au3>
Opt("GUIOnEventMode", 1)
GUICreate(" GUI 接收文件的输入控件", 320, 120)
GUISetOnEvent(-7, "SpecialEvents")
GUISetOnEvent(-3, "SpecialEvents")
$file = GUICtrlCreateInput("你好", 10, 5, 300, 20)
$file2 = GUICtrlCreateInput("再见", 10, 30, 300, 20)
$file3 = GUICtrlCreateInput("再见", 10, 55, 300, 20)
$btn = GUICtrlCreateButton("确定", 40, 80, 60, 20)
GUICtrlSetOnEvent(-1, "OK")
GUISetState()
While 1
Sleep(10)
WEnd
Func SpecialEvents()
Select
Case @GUI_CtrlId = -7
Sleep(100)
Send("^a")
Case @GUI_CtrlId = -3
Exit
EndSelect
EndFunc ;==>SpecialEvents
Func OK()
MsgBox(0, 0, "OK!")
EndFunc ;==>OK
|