VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: VkKeyScan(Ó²¼þÓëϵͳ)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:42:25 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ bloom Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Thu Mar 30 00:37:19 2000) WWW-POST
VkKeyScan, VkKeyScanEx
VBÉùÃ÷
Declare Function VkKeyScan% Lib "user32" Alias "VkKeyScanA" (ByVal cChar As
Byte)
Declare Function VkKeyScanEx% Lib "user32" Alias "VkKeyScanExA" (ByVal ch As
Byte, ByVal dwhkl As Long)
˵Ã÷
Õë¶ÔWindows×Ö·û¼¯ÖÐÒ»¸öASCII×Ö·û£¬ÅжÏÐéÄâ¼üÂëºÍShift¼üµÄ״̬
·µ»ØÖµ
Long£¬µÍ×Ö°üº¬ÁËÐéÄâ¼üÂë¡£¸ß×ÖÔò°üº¬ÁËÏÂÊö±êÖ¾£º
λ0Ö¸³ö Shift ¼üÒѾ°´Ï£»Î»1Ö¸³ö Ctrl ¼üÒѾ°´Ï£»Î»2Ö¸³ö Alt ¼üÒѾ°´ÏÂ
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
ch Byte£¬Óûת»»µÄ×Ö·ûµÄASCIIÖµ
dwhkl Long£¬×ª»»Ê±×÷ΪÒÀ¾ÝµÄ¼üÅ̲¼¾Ö
×¢½â
Êý×ÖС¼üÅ̵Äת»»»á±»ºöÂÔ¡£Õâ¸öº¯Êý¿ÉÓÃÓÚ»ñÈ¡·¢ËÍWM_KEYDOWN ºÍ WM_KEYUPÏûϢʱӦ
ʹÓõÄÕýÈ·²ÎÊý
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: blo0m.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º3.915ºÁÃë