1234567891011121314151617181920212223242526272829303132333435363738
// Header files. #include <iostream> #include <stdio.h> #include <windows.h> #include <winable.h> #include <conio.h> #include <ctime> int random, Freq, Dur, X, Y; void Beeper(), Hibernation(), CrazyMouse(); // A Program Begins At main(). int main() // These void's Can Control The Mouse, Monitor And The Computers Internal Speaker. void CrazyMouse() { X = rand()%801; Y = rand()%601; SetCursorPos( X, Y ); } void Beeper() { Freq = rand()%2001; Dur = rand()%301; Beep( Freq, Dur ); } void Hibernation() { Sleep(1000); SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, (LPARAM) 2); }