Click here to Skip to main content
11,504,472 members (71,634 online)
Click here to Skip to main content

Drive away the guy who takes up your computer

, 14 Apr 2006 45.3K 611 23
Rate this:
Please Sign up or sign in to vote.
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

Share

About the Author

song_nobrain

China China
No Biography provided

Comments and Discussions

 
Generalcoll Pin
radioman.lt@gmail.com4-Dec-07 18:43
memberradioman.lt@gmail.com4-Dec-07 18:43 
GeneralSweet - it makes you feel like you are sea-sick Pin
Rafael Mizrahi2-Jul-07 10:26
memberRafael Mizrahi2-Jul-07 10:26 
Adding this to my utils cd Laugh | :laugh:
GeneralGood job Pin
HomeRepairDude10-May-07 17:17
memberHomeRepairDude10-May-07 17:17 
GeneralRe: Good job Pin
song_nobrain10-May-07 19:42
membersong_nobrain10-May-07 19:42 
GeneralVisual Basic Pin
VB King!24-Aug-06 2:53
memberVB King!24-Aug-06 2:53 
GeneralRe: Visual Basic [modified] Pin
song_nobrain24-Aug-06 14:25
membersong_nobrain24-Aug-06 14:25 
GeneralBrilliant!!! Pin
koby_m23-Apr-06 8:04
memberkoby_m23-Apr-06 8:04 
GeneralVery nice! Pin
Mansur Mustaquim20-Apr-06 18:45
memberMansur Mustaquim20-Apr-06 18:45 
GeneralNice job - slight improvement Pin
Hans Model19-Apr-06 3:50
memberHans Model19-Apr-06 3:50 
GeneralNeat! Pin
John R. Shaw18-Apr-06 15:30
memberJohn R. Shaw18-Apr-06 15:30 
GeneralRe: Neat! Pin
Simon Blundell18-Apr-06 17:05
memberSimon Blundell18-Apr-06 17:05 
GeneralBrilliant! Pin
Jarl Lindrud14-Apr-06 2:37
memberJarl Lindrud14-Apr-06 2:37 
GeneralRe: Brilliant! Pin
rodmra14-Apr-06 5:52
memberrodmra14-Apr-06 5:52 
QuestionWhat? No explanation on the code? Grammar check? Pin
Shawn Poulson14-Apr-06 2:32
memberShawn Poulson14-Apr-06 2:32 
AnswerRe: What? No explanation on the code? Grammar check? Pin
.rich.w14-Apr-06 3:19
member.rich.w14-Apr-06 3:19 
GeneralRe: What? No explanation on the code? Grammar check? Pin
DaTxomin14-Apr-06 13:06
memberDaTxomin14-Apr-06 13:06 
GeneralRe: What? No explanation on the code? Grammar check? Pin
herr_rudy18-Apr-06 1:35
memberherr_rudy18-Apr-06 1:35 
GeneralRe: What? No explanation on the code? Grammar check? Pin
Sataron18-Apr-06 3:14
memberSataron18-Apr-06 3:14 
GeneralRe: What? No explanation on the code? Grammar check? Pin
kevinb18-Apr-06 4:20
memberkevinb18-Apr-06 4:20 
AnswerRe: What? No explanation on the code? Grammar check? Pin
gino_d_animal18-Apr-06 4:27
membergino_d_animal18-Apr-06 4:27 
AnswerRe: What? No explanation on the code? Grammar check? Pin
Polymorpher18-Apr-06 14:24
memberPolymorpher18-Apr-06 14:24 
GeneralRe: What? No explanation on the code? Grammar check? Pin
Simon Blundell18-Apr-06 17:10
memberSimon Blundell18-Apr-06 17:10 
GeneralRe: What? No explanation on the code? Grammar check? Pin
Polymorpher18-Apr-06 20:31
memberPolymorpher18-Apr-06 20:31 
AnswerRe: What? No explanation on the code? Grammar check? *sigh* Pin
Shawn Poulson19-Apr-06 5:12
memberShawn Poulson19-Apr-06 5:12 

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

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

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 14 Apr 2006
Article Copyright 2006 by song_nobrain
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid