VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: GetKeyState(Ó²¼þÓëϵͳ)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:38:04 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Wed Mar 29 23:47:50 2000) WWW-POST
GetKeyState
VBÉùÃ÷
Declare Function GetKeyState Lib "user32" Alias "GetKeyState" (ByVal nVirtKey
As Long) As Integer
˵Ã÷
Õë¶ÔÒÑ´¦Àí¹ýµÄ°´¼ü£¬ÔÚ×î½üÒ»´ÎÊäÈëÐÅϢʱ£¬ÅжÏÖ¸¶¨ÐéÄâ¼üµÄ״̬
·µ»ØÖµ
Integer£¬È翪¹Ø¼ü´ò¿ª£¬Ôòλ0ÉèΪ1£¨¿ª¹Ø¼ü°üÀ¨CapsLock£¬ NumLock£¬ScrollLock£©
£»Èçij¸ö¼üµ±Ê±Õý´¦ÓÚ°´ÏÂ״̬£¬Ôòλ15Ϊ1£»ÈçÒѾ̧Æð£¬ÔòΪ0
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
nVirtKey Long£¬Óû²âÊÔµÄÐéÄâ¼ü¼üÂë¡£¶Ô×Öĸ¡¢Êý×Ö×Ö·û£¨A-Z¡¢a-z¡¢0-9£©£¬ÓÃËüÃÇʵ
¼ÊµÄASCIIÖµ
Àý×Ó£º 1-59,
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: casi.bbs@smth.org]
--
¡ù תÔØ:£®¹þ¹¤´ó×϶¡Ïã bbs.hit.edu.cn£®[FROM: 202.118.247.254]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
Ò³ÃæÖ´ÐÐʱ¼ä£º2.134ºÁÃë