Is there someone around you always taking up your computer, but you are not able to drive them away for some reason?
Don't worry. Now we have this "Bad Screen Maker". Maybe you can give me a better name. Whis this, you can make your monitor looks dieing, and the bad guy can not tolerance this, so you take over your computer again!
To start it, just double click it, and what happened? No window appears, and everything looks unchanged. Wait a few seconds. Oh, something wrong with my computer? My monitor looks instable! That's right, the code works.
You can simpley press ctrl+alt+shift+F12 to enable or disable the function. Originally, I use ctrl+alt+shift+win+F12 as the hotkey, but maybe some friends' keyboard have no win key, so I use the current one. The code works immediately when it is started, why? Think about this, if someone log on your computer with your ID, and he don't know you have this code, and don't know you have it started when the system is starting, he will think something is wrong with your computer, and leave it.
There's one problem. With task manger, you can see the process with the name "badscreen.exe". To over come this, change the name of the executable file to some others, e.g. "IntelPro.exe". I think no one will suspect the name above.
The program draw your primary screen, every 1 to 10 seconds randomly, and leave it disordered for 0.3s. You can change this by editing the code, or add some command line control.
Ok, buddy. I will appreciate if it is useful to you.
Contents added after reading some replies
This is my first time to put my idea on code project, and I am not a native english speaker, so some grammar errors may occur. If you do not understand me please let me know, and i will modify the article.
About the code
This is a simple win32 application with one cpp file, and a few lines in it. Now I will tell you the principle of the program.
The most important function is
In that function, you get DC of primary monitor. And then you create two compatible DC according to the primary DC, one for storing the bitmap before being ruined, and the other for pranking. After the primary bitmap is stored, a for loop is followed, to offset some lines of the screen. The loop count is set randomly. After the for loop, I sleep for 300ms, and then restore the bitmap which has been stored before ruin the screen.
A timer event is used to invok the function. After each invocation the timer is set randomly from 0s~10s.
OK, I think the above explanation is the kernel of the program. If you know how to program win32 application, you can read the code easily. If you do not, I can not help you.
I build it with VC6.0 under WinXP, and it works well there. I don't know if it still works under other version of windows. If it does not work, please rebuild the code under your environment.