keybd_event(VK_LCONTROL,0,0,0);//按下左ctrl键
keybd_event('S',0,0,0);//再按下s键
keybd_event('S',0,KEYEVENTF_KEYUP,0);//先放开s键
keybd_event(VK_LCONTROL,0,KEYEVENTF_KEYUP,0);//再放开ctrl键
POINT lpPoint;
GetCursorPos(&lpPoint);
SetCursorPos(lpPoint.x, lpPoint.y);
mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
http://www.vckbase.com/document/viewdoc/?id=255