#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
HWND hwnd=GetForegroundWindow();
if(hwnd){
ShowWindow(hwnd,SW_HIDE);
}
Sleep(10000);
for(int i=0;i<=10;i++){
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_LEFTUP,0,0,0,0);
}
return 0;
}
#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
Sleep(10000);
for(int i=1;i<=105;i++){
cout<<"第"<<i<<"次启动"<<endl;
system("start F:/Minecraft/PCL2.exe");
Sleep(3000);
system("taskkill /im PCL2.exe");
Sleep(1000);
cout<<endl;
}
return 0;
}