Code:
#include <iostream>
#include <cstdlib>
#include <windows.h>
#include <winable.h>
using namespace std;
int main(int argc, char *argv[])
{
int x = 0;
int option;
int program;
int X;
int Y;
int helper;
while (x<3)
{
cout<<"Loading.";
Sleep(500);
system("cls");
cout<<"Loading..";
Sleep(500);
system("cls");
cout<<"Loading...";
Sleep(500);
system("cls");
x++;
}
system("cls");
cout<<"Welcome to Brad's Annoying Control Centre!"<<endl<<endl;
cout<<"[0] For the menu"<<endl<<"[1] To close this"<<endl<<"[2] For instructions and things (RECOMMENDED FOR YOUR SAFETY)"<<endl<<endl;
cin>>option;
if (option==1)
{
cout<<"Bye!"<<endl;
Sleep(2000);
return 0;
}
else if (option==0)
{
cout<<endl;
cout<<"Choose annoying program!"<<endl<<endl<<endl;
cout<<"Mouse flicker [1]"<<endl<<endl;//Works
cout<<"Notepad (Hehe) [2]"<<endl<<endl;//Works
cout<<"Mouse button switcher (Constant) [3]"<<endl<<endl;//Works
cout<<"Reverse mouse switcher [4]"<<endl<<endl;//Works
cout<<"Moniter on and off in 1 second intervals [5]"<<endl<<endl;//Works //SUPER ANNOYING
cout<<"Fake Virus [6]"<<endl<<endl;//WORKS
cout<<"Block Keyboard & Mouse input for 5 minutes (WINDOWS XP ONLY) [7]"<<endl<<endl; //works
cout<<"REALLY annoying combination of a few [8]"<<endl<<endl; //Works //SUPER ANNOYING
cin>>program;
if (program==1)
{
while (x<100)
{
X = rand()%801;
Y = rand()%601;
SetCursorPos( X, Y );
}
return 0;
}
else if (program==2)
{
while (x<100)
{
char Notepad[MAX_PATH]="notepad.exe";
ShellExecute(NULL,"open",Notepad,NULL,NULL,SW_MAXIMIZE);
}
return 0;
}
else if (program==3)
{
SwapMouseButton(true);
return 0;
}
else if (program==4)
{
SwapMouseButton(false);
return 0;
}
else if (program==5)
{
while (x<100)
{
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
Sleep(1000);
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
}
return 0;
}
else if (program==6)
{
int x = 0;
int y = 0;
int z = 0;
while (x<3)
{
system("cls");
cout<<"Installing Virus.dll.";
Sleep(500);
system("cls");
cout<<"Installing Virus.dll..";
Sleep(500);
system("cls");
cout<<"Installing Virus.dll...";
Sleep(500);
x++;
}
system("cls");
cout<<"Virus.dll installed to C:/Windows/System32"<<endl;
Sleep(30);
cout<<"Starting TrojanAttack.exe"<<endl;
Sleep(30);
cout<<"Deleting HAL.dll"<<endl;
Sleep(30);
cout<<"Deleting BOOTCFG.dll"<<endl;
Sleep(30);
cout<<"Deleting bootstat.dat"<<endl;
Sleep(30);
cout<<"Deleting System32 folder"<<endl;
Sleep(30);
cout<<"Deleting WinHlp.exe"<<endl;
Sleep(30);
cout<<"Deleting Wincog.dll"<<endl;
Sleep(30);
cout<<"Deleting SPIDE.exe"<<endl;
Sleep(30);
cout<<"Deleting REL.dll"<<endl;
Sleep(30);
cout<<"Deleting restart files"<<endl;
Sleep(30);
cout<<"Deleting win32.dat"<<endl;
Sleep(30);
cout<<"Deleting Windows folder"<<endl;
Sleep(30);
cout<<"Deleting Sp1.exe"<<endl;
Sleep(30);
cout<<"Deleting Sp2.exe"<<endl;
Sleep(30);
cout<<"Deleting WERP.exe"<<endl<<endl;
cout<<"System corruption complete."<<endl;
system("PAUSE >> NULL");
system("shutdown /s /f /t 20");
return 0;
}
else if (program==7)
{
BlockInput(TRUE);
Sleep(300000);
BlockInput(FALSE);
return 0;
}
else if (program==8)
{
while (x<100)
{
X = rand()%801;
Y = rand()%601;
SetCursorPos( X, Y );
char Notepad[MAX_PATH]="notepad.exe";
ShellExecute(NULL,"open",Notepad,NULL,NULL,SW_MAXIMIZE);
SwapMouseButton(true);
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2);
Sleep(1000);
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) -1);
}
return 0;
}
else
{
cout<<endl<<"Whoops, try entering a number we tell you to next time...";
system("PAUSE >> NULL");
return 0;
}
system("PAUSE >> NULL");
return 0;
}
else if (option==2)
{
cout<<endl<<"Welcome to the instructions for this program!"<<endl<<endl<<endl;
cout<<"[1] For How to use/close 'Mouse Flicker'"<<endl;
cout<<"[2] For How to use/close 'Notepad'"<<endl;
cout<<"[3] For How to use/close 'Mouse Switcher'"<<endl;
cout<<"[4] For How to use/close 'Moniter on/off'"<<endl;
cout<<"[5] For How to use/close 'Fake Virus'"<<endl;
cout<<"[6] For How to use/close 'Block input'"<<endl;
cout<<"[7] For How to use/close 'The REALLY annoying combination'"<<endl;
cin>>helper;
if (helper==1)
{
cout<<endl<<"Mouse Flicker!"<<endl<<endl;
cout<<"All this really does, is move the mouse around the screen to random locations, CONSTANTLY."<<endl;
cout<<endl<<"To stop this annoying feature, follow these steps:"<<endl<<endl<<"1. Press Ctrl+Alt+Delete"<<endl<<"2. Open task manager"<<endl<<"3. Go to the 'processes' section"<<endl<<"4. Look for 'Project.SZY'"<<endl<<"End the 'Project.SZY' process by using your keyboard to highlight it and pressing Alt+E, then ENTER.";
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else if (helper==2)
{
cout<<endl<<"Notepad!"<<endl<<endl;
cout<<"This very annoying program opens up 'Notepad's until it lags your computer ALOT."<<endl;
cout<<endl<<"To stop this annoying feature, follow these steps:"<<endl<<endl<<"1. Press Ctrl+Alt+Delete"<<endl<<"2. Open task manager"<<endl<<"3. Go to the 'processes' section"<<endl<<"4. Look for 'Project.SZY'"<<endl<<"5. Click 'End Process'"<<endl<<"6. Close all the notepads!"<<endl<<endl;
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else if (helper==3)
{
cout<<endl<<"Mouse Switcher!"<<endl<<endl;
cout<<"This confusing feature changes your left & right mouse buttons around."<<endl<<endl;
cout<<"To undo this, restart 'Project.SZY', and select 'Reverse Mouse switcher' from the menu."<<endl;
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else if (helper==4)
{
cout<<"Moniter on/off!"<<endl<<endl;
cout<<"Ahh. Exasperatingly, this feature turns your moniter on and off in 1 second intervals,"<<endl<<"meaning you can hardly see anything."<<endl<<endl;
cout<<"Turning this off can be a bugger, and time consuming."<<endl<<"To do it, follow these steps:"<<endl<<endl;
cout<<"1. Press Ctrl+Alt+Delete"<<endl<<"2. Open task manager"<<endl<<"3. Go to the 'processes' section"<<endl<<"4. Look for 'Project.SZY'"<<endl<<"5. Click 'End Process'"<<endl<<endl;
cout<<"The hard thing about this one, is that you will have to do those 5 steps, WHILE it's turning on and off. Take your time, and it's easy. Good thing your using this program to annoy! :) "<<endl;
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else if (helper==5)
{
cout<<"Fake Virus!"<<endl<<endl;
cout<<"Yep, this is exactly what it says it is. Fake. All this does, is display messages on the screen, to make it look like your computer is being wrecked."<<endl<<endl;
cout<<"NOTE: THIS IS HARMLESS"<<endl;
cout<<"This shuts your computer down 60 seconds after the messages are finished."<<endl;
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else if (helper==6)
{
cout<<"Block input!"<<endl<<endl;
cout<<"What this little bugger does, is make your mouse and keyboard seem like they don't work for 5 minutes."<<endl<<endl;
cout<<"To stop this, either wait 5 minutes, or press Ctrl+Alt+DEL and end the 'Project.SZY' task."<<endl<<endl;
cout<<"NOTE: This may not work without Admin privleges, and doesn't work on Vista"<<endl;
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else if (helper==7)
{
cout<<"The REALLY annoying combo!"<<endl<<endl;
cout<<"The most ANNOYING of all these programs. You end it the same way as you end:"<<endl<<endl;
cout<<"1. Mouse Flicker, 2. Notepad, 3. Mouse switcher, and 4. Moniter on/off."<<endl;
cout<<endl<<"Restart this program for different help topics."<<endl;
system("PAUSE >> NULL");
return 0;
}
else
{
cout<<endl<<"Whoops, try entering a number we tell you to next time...";
system("PAUSE >> NULL");
return 0;
}
}
else
{
cout<<endl<<"Whoops, try entering a number we tell you to next time...";
system("PAUSE >> NULL");
return 0;
}
}