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键