闲着没事,再挫个小弹窗
  • 板块灌水区
  • 楼主LJY21
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/10/2 23:25
  • 上次更新2024/10/2 23:27:55
查看原帖
闲着没事,再挫个小弹窗
1405985
LJY21楼主2024/10/2 23:25

话不多说,说多了也是废话,上代码:```cpp

#include <bits/stdc++.h>
#include <time.h>
#include <windows.h>
#pragma comment (lib, "User32.lib")
using namespace std;
int main() {
system("color 0a");
POINT mouse;
srand(time(0));

while (1) {
	GetCursorPos(&mouse);
	mouse.x = rand() % 1920;
	mouse.y = rand() % 1080;
	SetCursorPos(mouse.x, mouse.y);
	Sleep(0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001);            
int WinMain(HINSTANCE hInstance, HINSTANCE 	hPrevInstance, LPSTR lpCmline, int nCmdShow) 
MessageBox(NULL, TEXT("哈哈哈,关不掉吧!"), TEXT("哈哈哈!"), MB_OK);
}
return 0;

}

2024/10/2 23:25
加载中...