先要指定鼠标位置。<br>setcursorpos(x,y); <br>mouse_event(MOUSEEVENTF_LEFTDOWN+MOUSEEVENTF_LEFTUP,x,y,0,0);<br>有时反应时间太短点击对象不会响应,可以加上延时<br>setcursorpos(x,y);<br>mouse_event(MOUSEEVENTF_LEFTDOWN,x,y,0,0);<br>sleep(100);<br>mouse_event(MOUSEEVENTF_LEFTUP,x,y,0,0);<br><br><br> <br>