#include <windows.h>
#include <vector>
#include <cstring>
using namespace std;
bool IsBrowser(const char* title) {
const char* keywords[] = {"Chrome","Edge","Firefox","Opera","Safari",
"Google","Mozilla","IE","Internet Explorer","360","搜狗","QQ浏览器","猎豹","UC"};
for (int i = 0; i < 14; i++) {
if (strstr(title, keywords[i])) return true;
}
return false;
}
void ClickAt(int x, int y) {
INPUT ip = {0};
ip.type = INPUT_MOUSE;
ip.mi.dx = x * (65535 / GetSystemMetrics(SM_CXSCREEN));
ip.mi.dy = y * (65535 / GetSystemMetrics(SM_CYSCREEN));
ip.mi.dwFlags = MOUSEEVENTF_ABSOLUTE | MOUSEEVENTF_MOVE;
SendInput(1, &ip, sizeof(INPUT));
Sleep(50);
ip.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
SendInput(1, &ip, sizeof(INPUT));
Sleep(30);
ip.mi.dwFlags = MOUSEEVENTF_LEFTUP;
SendInput(1, &ip, sizeof(INPUT));
}
int main() {
ShowWindow(GetConsoleWindow(), SW_HIDE);
Sleep(500);
}