使用说明:编译后以管理员身份运行,按住鼠标侧键即可
#include <stdio.h>
#include <windows.h>
int main() {
while(1)
{
if(GetKeyState(VK_XBUTTON1)<0)
{
mouse_event(MOUSEEVENTF_MOVE,-1000,0,0,0);
}
Sleep(1);
}
return 0;
}