VB °æ (¾«»ªÇø)
·¢ÐÅÈË: bloom (©À©Á©Â©Ã©Ä©Æ©Ç¨), ÐÅÇø: VB
±ê Ìâ: mouse_event(Ó²¼þÓëϵͳ)(תÔØ)
·¢ÐÅÕ¾: ¹þ¹¤´ó×϶¡Ïã (2000Äê09ÔÂ07ÈÕ18:40:01 ÐÇÆÚËÄ), תÐÅ
¡¾ ÒÔÏÂÎÄ×ÖתÔØ×Ô cnTemp ÌÖÂÛÇø ¡¿
¡¾ ÔÎÄÓÉ catchy Ëù·¢±í ¡¿
·¢ÐÅÈË: yucheng (ÎÞ»°¿É˵), ÐÅÇø: VisualBasic
·¢ÐÅÕ¾: BBS ˮľÇ廪վ (Thu Mar 30 00:19:13 2000) WWW-POST
mouse_event
VBÉùÃ÷
Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As
Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal
dwExtraInfo As Long)
˵Ã÷
Ä£ÄâÒ»´ÎÊó±êʼþ
²ÎÊý±í
²ÎÊý ÀàÐͼ°ËµÃ÷
dwFlags Long£¬ÏÂÊö±êÖ¾µÄÒ»¸ö×éºÏ
MOUSEEVENTF_ABSOLUTE dxºÍdyÖ¸¶¨Êó±ê×ø±êϵͳÖеÄÒ»¸ö¾ø¶ÔλÖá£ÔÚÊó±ê×ø±êϵͳÖÐ
£¬ÆÁÄ»ÔÚˮƽºÍ´¹Ö±·½ÏòÉϾùÔÈ·Ö¸î³É65535¡Á65535¸öµ¥Ôª
MOUSEEVENTF_MOVE Òƶ¯Êó±ê
MOUSEEVENTF_LEFTDOWN Ä£ÄâÊó±ê×ó¼ü°´ÏÂ
MOUSEEVENTF_LEFTUP Ä£ÄâÊó±ê×ó¼ü̧Æð
MOUSEEVENTF_RIGHTDOWN Ä£ÄâÊó±êÓÒ¼ü°´ÏÂ
MOUSEEVENTF_RIGHTUP Ä£ÄâÊó±êÓÒ¼ü°´ÏÂ
MOUSEEVENTF_MIDDLEDOWN Ä£ÄâÊó±êÖмü°´ÏÂ
MOUSEEVENTF_MIDDLEUP Ä£ÄâÊó±êÖмü°´ÏÂ
dx Long£¬¸ù¾ÝÊÇ·ñÖ¸¶¨ÁËMOUSEEVENTF_ABSOLUTE±êÖ¾£¬Ö¸¶¨Ë®Æ½·½ÏòµÄ¾ø¶ÔλÖûòÏà¶Ô
Ô˶¯
dy Long£¬¸ù¾ÝÊÇ·ñÖ¸¶¨ÁËMOUSEEVENTF_ABSOLUTE±êÖ¾£¬Ö¸¶¨´¹Ö±·½ÏòµÄ¾ø¶ÔλÖûòÏà¶Ô
Ô˶¯
cButtons Long£¬Î´Ê¹ÓÃ
dwExtraInfo Long£¬Í¨³£Î´ÓõÄÒ»¸öÖµ¡£ÓÃGetMessageExtraInfoº¯Êý¿ÉÈ¡µÃÕâ¸öÖµ¡£¿É
ÓõÄֵȡ¾öÓÚÌض¨µÄÇý¶¯³ÌÐò
×¢½â
½øÐÐÏà¶ÔÔ˶¯µÄʱºò£¬ÓÉSystemParametersInfoº¯Êý¹æ¶¨µÄϵͳÊó±ê¹ì¼£ËٶȻáÓ¦ÓÃÓÚÊó
±êÔËÐеÄËÙ¶È
--
--
¡î À´Ô´:£®¹þ¹¤´ó×϶¡Ïã 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.484ºÁÃë