Mouse_event 鼠标点击

//这样就是左键单击 
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );// 按下
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );//弹起

//这样就是双击了! 
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );// 按下
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );//弹起
mouse_event( MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0 );// 按下
mouse_event( MOUSEEVENTF_LEFTUP, 0, 0, 0, 0 );//弹起
 
keybd_event(VK_F1,0,0,0);  //按下F1键
keybd_event(VK_F1,0,KEYEVENTF_KEYUP,0); //按下F1键




posted @ 2014-07-29 17:57  XE2011  阅读(1842)  评论(0编辑  收藏  举报