1
已解决
快速利索的程序开发商
新手守护
新手守护
#include<cstdio>
#include<iostream>
#include<windows.h>
using namespace std;
POINT p1,p2;
int t=100;
int main(){
HWND hwnd=GetForegroundWindow();
ShowWindow(hwnd,SW_HIDE);
system("pause");
GetCursorPos(&p1);
system("pause");
GetCursorPos(&p2);
system("pause");
while(t--){
SetCursorPos(p1.x,p1.y);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
Sleep(10);
SetCursorPos(p2.x,p2.y);
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}
return 0;
}
/*
----------------------------------
在老师喊开始之前,录好答题和选项位置(先录入选项),按空格,的在老师喊开始前的0.5秒,在按空格,可提交。
*/
0
1
0
0
0
0
0
0