还是判断按键的问题!!!???
怎样判断我按了鼠标左键、右键、空格、回车这几个常用键呢?这对编程很有用的!!! 怎么没人回答啊? 有什么意义? 我想查帮助的,但一时查不到,就想问问了!例如,只有按了右键、空格、回车就代表选择结束,其他键不起反应!按左键继续选择!帮帮我好吗?谢了! <TABLE class=tablebody2 style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" width="90%" border=0>
<TBODY>
<TR>
<TD style="FONT-SIZE: 9pt; LINE-HEIGHT: 12pt" width="100%"> <B></B><BR>'判断某一键盘键自上次调用该函数以来是否被按过的API函数<BR>Declare<I> Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Private Const VK_ESCAPE = &H1B
ESC = GetAsyncKeyState(VK_ESCAPE)<BR>If ESC <> 0 Then<BR> Debug.Print "已经按了ECS键"<BR>End If
</TD></TR></TBODY></TABLE>
怎样判断我按了鼠标左键、右键、空格、回车这几个常用键呢?
Private Const VK = ????? 应该怎样写啊?&H1B代表ESC键,那左键、右键、空格、回车呢?求教啊? 各位热心的老大,老师,斑竹啊!帮帮我好吗?先谢啦! 自己顶一下! Public Const VK_ESCAPE = &H1B
Public Const VK_LBUTTON = &H1
Public Const VK_RBUTTON = &H2
Public Const VK_RETURN = &HD
Public Const VK_SPACE = &H20 谢谢啦,请问这能在哪里查到啊?
页:
[1]