问题描述
各位大哥帮我看看看谢谢了为什么mouse_event不起点击作用拉,Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())和Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0)都试过了不行各位大哥帮帮忙呀PrivateConstMOUSEEVENTF_ABSOLUTE=&H8000'absolutemovePrivateConstMOUSEEVENTF_LEFTDOWN=&H2'leftbuttondownPrivateConstMOUSEEVENTF_LEFTUP=&H4'leftbuttonupPrivateConstMOUSEEVENTF_MIDDLEDOWN=&H20'middlebuttondownPrivateConstMOUSEEVENTF_MIDDLEUP=&H40'middlebuttonupPrivateConstMOUSEEVENTF_MOVE=&H1'mousemovePrivateConstMOUSEEVENTF_RIGHTDOWN=&H8'rightbuttondownPrivateConstMOUSEEVENTF_RIGHTUP=&H10'rightbuttonupPrivateConstKEYEVENTF_KEYUP=&H2PrivateSubTimer1_Timer()DimbiaAsPOINTAPIDimdAsPOINTAPIDimhwnd,thisAsLong'储存FindWindow函数返回的句柄hwnd=FindWindow(vbNullString,"")'取得进程标识符CallGetWindowThreadProcessId(hwnd,this)'只要把WindowsMediaPlayer换成游戏的名称就可了!Ifhwnd=0ThenLabel1.Caption="游戏未运行"ElseLabel1.Caption="游戏已运行"EndIfGetCursorPosbiaIfi>20Theni=0i=i+1Elsei=i+1EndIfSelectCaseiCase1:CallSetCursorPos(150,120)'''Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case2:CallSetCursorPos(150,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case3:CallSetCursorPos(350,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case4:CallSetCursorPos(350,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case5:CallSetCursorPos(550,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case6:CallSetCursorPos(550,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case7:CallSetCursorPos(750,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case8:CallSetCursorPos(750,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case9:CallSetCursorPos(950,120)''Callkeybd_event(65,0,0,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case10:CallSetCursorPos(950,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case11:CallSetCursorPos(1014,667)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case12:CallSetCursorPos(950,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case13:CallSetCursorPos(750,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case14:CallSetCursorPos(750,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case15:CallSetCursorPos(550,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case16:CallSetCursorPos(550,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case17:CallSetCursorPos(350,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case18:CallSetCursorPos(350,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case19:CallSetCursorPos(150,600)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())Case20:CallSetCursorPos(150,120)'Callkeybd_event(65,0,0,0)'Callkeybd_event(65,0,DEYEVENTF_KEYUP,0)Callmouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,GetMessageExtraInfo())Callmouse_event(MOUSEEVENTF_LEFTUP,0,0,0,GetMessageExtraInfo())EndSelectEndSub
解决方案
解决方案二:
路过帮顶=============11月6日,论坛升级公告,积分已经做了调整!http://topic.csdn.net/u/20081107/11/b27dc75f-14b1-4594-9de3-5b18d9e36a11.html此次调整增加了两个新的可用分获取渠道:1:帖子被推荐(加精)后,帖主可以获得88分的可用分奖励;2:帖子结帖后会返还帖主50%的悬赏分,无满意结帖不返还分数;3:接下来会不断增加新的可用分获取途径,比如参与活动赠送等,请大家多关注;