keybd_event的简单问题(请务必帮忙!)(50分)

V

VI-1

Unregistered / Unconfirmed
GUEST, unregistred user!
[?]一个很初级的问题,用keybd_event模拟键盘动作时,我不知道那些虚拟键码,<br>谁能给我一个详细的虚拟键码的列表?
 
VK_LBUTTON 01 Left mouse button <br>VK_RBUTTON 02 Right mouse button <br>VK_CANCEL &nbsp; &nbsp; &nbsp; &nbsp; 03 Control-break processing <br>VK_MBUTTON 04 Middle mouse button (three-button mouse) <br>&nbsp;? &nbsp; &nbsp; &nbsp; &nbsp; 05-07 Undefined <br>VK_BACK &nbsp; &nbsp; &nbsp; &nbsp; 08 BACKSPACE key <br>VK_TAB &nbsp; &nbsp; &nbsp; &nbsp; 09 TAB key <br>&nbsp;? &nbsp; &nbsp; &nbsp; &nbsp; 0A-0B Undefined <br>VK_CLEAR &nbsp; 0C CLEAR key <br>VK_RETURN 0D ENTER key <br>&nbsp;? &nbsp; &nbsp; &nbsp; &nbsp; 0E-0F Undefined <br>VK_SHIFT &nbsp; &nbsp; &nbsp; &nbsp; 10 SHIFT key <br>VK_CONTROL 11 CTRL key <br>VK_MENU &nbsp; &nbsp; &nbsp; &nbsp; 12 ALT key <br>VK_PAUSE &nbsp; &nbsp; &nbsp; &nbsp; 13 PAUSE key <br>VK_CAPITAL 14 CAPS LOCK key <br>...<br>自己看API帮助Virtual-Key Codes。
 
if key=vk_Return<br>&nbsp;then <br>&nbsp; &nbsp;keybd_event(vk_tab,0,0,0);<br><br><br>Windows.Pas 里有虚拟键定义
 
在delphi的帮助中敲入“Virtual key codes”就知道了
 
谢谢,请问ALT的VK是什么?<br>是 VK_ATTN = &amp;HF6 吗?
 
顶部