Click here to Skip to main content
15,880,427 members
Articles / Programming Languages / C++
Article

Drive away the guy who takes up your computer

Rate me:
Please Sign up or sign in to vote.
4.17/5 (46 votes)
14 Apr 20063 min read 62.5K   681   24   24
A way to make others think something is wrong with your video card or monitor

Sample Image - badscreen.jpg

Introduction

Hi, buddy!

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

<BR>void DrawBadScreen();

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.

About compiler

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.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalcoll Pin
radioman.lt4-Dec-07 18:43
radioman.lt4-Dec-07 18:43 
GeneralSweet - it makes you feel like you are sea-sick Pin
Rafael Mizrahi2-Jul-07 10:26
Rafael Mizrahi2-Jul-07 10:26 
GeneralGood job Pin
HomeRepairDude10-May-07 17:17
HomeRepairDude10-May-07 17:17 
GeneralRe: Good job Pin
song_nobrain10-May-07 19:42
song_nobrain10-May-07 19:42 
GeneralVisual Basic Pin
VB King!24-Aug-06 2:53
VB King!24-Aug-06 2:53 
GeneralRe: Visual Basic [modified] Pin
song_nobrain24-Aug-06 14:25
song_nobrain24-Aug-06 14:25 
GeneralBrilliant!!! Pin
kobymeir23-Apr-06 8:04
kobymeir23-Apr-06 8:04 
GeneralVery nice! Pin
Mansur Mustaquim20-Apr-06 18:45
Mansur Mustaquim20-Apr-06 18:45 
GeneralNice job - slight improvement Pin
Barry F. Hunt19-Apr-06 3:50
Barry F. Hunt19-Apr-06 3:50 
GeneralNeat! Pin
John R. Shaw18-Apr-06 15:30
John R. Shaw18-Apr-06 15:30 
GeneralRe: Neat! Pin
Simon Blundell18-Apr-06 17:05
Simon Blundell18-Apr-06 17:05 
GeneralBrilliant! Pin
Jarl Lindrud14-Apr-06 2:37
Jarl Lindrud14-Apr-06 2:37 
That's definitely good for a laugh, thanks!

/Jarl

GeneralRe: Brilliant! Pin
rodmra14-Apr-06 5:52
rodmra14-Apr-06 5:52 
QuestionWhat? No explanation on the code? Grammar check? Pin
Shawn Poulson14-Apr-06 2:32
Shawn Poulson14-Apr-06 2:32 
AnswerRe: What? No explanation on the code? Grammar check? Pin
.rich.w14-Apr-06 3:19
.rich.w14-Apr-06 3:19 
GeneralRe: What? No explanation on the code? Grammar check? Pin
DaTxomin14-Apr-06 13:06
DaTxomin14-Apr-06 13:06 
GeneralRe: What? No explanation on the code? Grammar check? Pin
herr_rudy18-Apr-06 1:35
herr_rudy18-Apr-06 1:35 
GeneralRe: What? No explanation on the code? Grammar check? Pin
Sataron18-Apr-06 3:14
Sataron18-Apr-06 3:14 
GeneralRe: What? No explanation on the code? Grammar check? Pin
kevinb18-Apr-06 4:20
kevinb18-Apr-06 4:20 
AnswerRe: What? No explanation on the code? Grammar check? Pin
gino_d_animal18-Apr-06 4:27
gino_d_animal18-Apr-06 4:27 
AnswerRe: What? No explanation on the code? Grammar check? Pin
Polymorpher18-Apr-06 14:24
Polymorpher18-Apr-06 14:24 
GeneralRe: What? No explanation on the code? Grammar check? Pin
Simon Blundell18-Apr-06 17:10
Simon Blundell18-Apr-06 17:10 
GeneralRe: What? No explanation on the code? Grammar check? Pin
Polymorpher18-Apr-06 20:31
Polymorpher18-Apr-06 20:31 
AnswerRe: What? No explanation on the code? Grammar check? *sigh* Pin
Shawn Poulson19-Apr-06 5:12
Shawn Poulson19-Apr-06 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.