|
|
发表于 2011-2-3 14:29:12
|
显示全部楼层
MSDN:
Only windows that have the CS_DBLCLKS style can receive WM_LBUTTONDBLCLK messages, which the system generates whenever the user presses, releases, and again presses the left mouse button within the system's double-click time limit. Double-clicking the left mouse button actually generates a sequence of four messages: WM_LBUTTONDOWN, WM_LBUTTONUP, WM_LBUTTONDBLCLK, and WM_LBUTTONUP
确实autoit没有CS_DBLCLKS风格,不过可以实现的方法有很多.MSDN坑爹了?- $hSelection_GUI = GUICreate("", 400, 300)
- GUIRegisterMsg(0x0203, "WM_LBUTTONDBLCLK")
- GUISetState()
- While GUIGetMsg() <> -3
- WEnd
- GUIDelete()
- Exit
- Func WM_LBUTTONDBLCLK($hWnd, $msg, $wParam, $lParam)
- MsgBox(16, "警告", "双击", -1, $hWnd)
- Return "GUI_RUNDEFMSG"
- EndFunc
复制代码 |
|