VC进程相关的学习(三)(模拟键盘鼠标)

模拟鼠标键盘比较简单,只放例子
鼠标定位:

SetCursorPos(point.x, point.y);

鼠标点击:

mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);

键盘点击:

keybd_event(0x52, MapVirtualKey(0x52, 0), 0, 0); keybd_event(0x52, MapVirtualKey(0x52, 0), KEYEVENTF_KEYUP, 0);

你可能感兴趣的:(VC进程相关的学习(三)(模拟键盘鼠标))