autoit怎么判断键盘按下了那个键?
貌似没有专门的读取按键的函数啊?跪求解释、、、、、 #include <GUIConstantsEx.au3>#include <WindowsConstants.au3>
$Gui = GUICreate("KEYDOWN", 370, 220, -1, -1, $WS_OVERLAPPEDWINDOW)
GUISetState()
GUIRegisterMsg($WM_KEYDOWN, "WM_KEYDOWN")
Do
Until GUIGetMsg() = -3
Func WM_KEYDOWN($hWnd, $Msg, $wParam, $lParam)
MsgBox(0,'WM_KEYDOWN','您按下了' & Chr($wParam) &'键' )
EndFunc
回复 2# 李岸
好真的可以按摩 实用,顶一下
页:
[1]