Allegro.cc - Online Community

Allegro.cc Forums » Off-Topic Ordeals » Home-made Annoying Apps

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Home-made Annoying Apps
thematrixeatsyou
Member #6,183
September 2005
avatar

Feel free to send in some code that may turn out to be annoying. Please, ONLY test them on yourself or on people who you KNOW can crack a joke or people who you tell what it is.

I'll start with an app that gives you a low-friction mouse:

1#include <stdio.h> // is this needed?
2#include <windows.h> // this is
3#include <time.h> // is this needed for the sleep() function to work?
4 
5POINT woo;
6 
7int main(void){
8 long x,y,nx,ny,xs=0,ys=0;
9 GetCursorPos(&woo);
10 x=woo.x;
11 y=woo.y;
12 while(1){
13 GetCursorPos(&woo);
14 nx=woo.x;ny=woo.y;
15 if(nx!=x || ny!=y){
16 xs+=nx-x;
17 ys+=ny-y;
18 }
19 x=nx;y=ny;
20 x+=xs;y+=ys;
21 SetCursorPos(x,y);
22 xs=xs/1.2;ys=ys/1.2;
23 sleep(1);
24 }
25 return 0;
26}

good food is t3h pwn <-- if anyone can find out how old this sig is they win an ascii penguin

Billybob
Member #3,136
January 2003

<script>
while(1) alert(1);
</script>

LennyLen
Member #5,313
December 2004
avatar

Quote:

#include <stdio.h> // is this needed?

Why don't you just remove the line and find out for yourself? ;)

Quote:

#include <time.h> // is this needed for the sleep() function to work?

I alwys thought sleep() was declared in unistd.h.

Dennis
Member #1,090
July 2003
avatar

int main(){int*eat_mem=NULL;while(1){eat_mem=new int[256000];eat_mem=NULL;}}

Marcello
Member #1,860
January 2002
avatar

Why set it to null?

Billybob
Member #3,136
January 2003

To annoy you.

Archon
Member #4,195
January 2004
avatar

Don't post those else you'll breed script-kiddies...

miran
Member #2,407
June 2002

@thematrixeatsyou: Doesn't compile.

--
sig used to be here

Simon Parzer
Member #3,330
March 2003
avatar

Nasty Windows NT batch files!

rem -- Gets rid of the paper inside your printer
@echo off
:endless
  echo "This is an empty page!" >prn
goto endless

rem -- Network overkill
@echo off
:e
  net send * "Hello" >nul
goto e

rem -- Will open >100 Internet Explorers
@echo off
:e
  start iexplore.exe "http://www.porno.com"
goto e

BAF
Member #2,981
December 2002
avatar

matrixdude: use Sleep instead of sleep which is in the windows API.

Evert
Member #794
November 2000
avatar

I'll give you something that'll nuke your computer if you haven't taken proper precaution (possibly doesn't work on Windows though):

#include <unistd.h>
#include <stdio.h>

int main(void)
{
   while(fork()) printf ("Goodbye, Cruel World!\n");
}

Can't really think of anything else at the moment...

Onewing
Member #6,152
August 2005
avatar

void draw_screen(BITMAP *bBuffer)
{
    // Initiate seizure-procedure
    rectfill(screen, 0, 0, screen->w, screen->h, makecol(255,255,255));
    draw_sprite(screen, bBuffer, 0, 0);
}

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Arthur Kalliokoski
Second in Command
February 2005
avatar

Quote:

rem -- Gets rid of the paper inside your printer
@echo off
:endless
echo "This is an empty page!" >prn
goto endless

The IBM version:

echo "This page intentionally left blank"

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

Peter Hull
Member #1,136
March 2001

It's not an app, but if you sneak on someone's PC, open an explorer window, make a screenshot and set that as their wallpaper, you will annoy them for ages as they try to close a window that doesn't exist.

Pete

[edit] Does anyone remember, there used to be a little snippet of HTML that would crash IE, which meant that you couldn't even browse to it because the act of generating the thumbnail would bring down Explorer with it.

[edit2]
Here's the Windows equivalent of Evert's program ;)

#include <stdio.h>

int main(void)
{
   printf ("Goodbye, Cruel World!\n");
}

OICW
Member #4,069
November 2003
avatar

I used this program when my class-mates spammed the network on CS class.

#include <stdlib.h>

int main(){
  while(1)
    system("net send blah This is a spam!");
}

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

jhuuskon
Member #302
April 2000
avatar

Back in the day when monitors didn't have that fade in when changing mode, you could blow a monitor with five assembly instructions. I did it once at school. Got new monitors to the school that way. :)

mov ax,13h
int 10
mov ax, 3h
int 10
repeat previous steps

You don't deserve my sig.

OICW
Member #4,069
November 2003
avatar

It could be good to post explanation what it does to those who don't know assembly. It seems that you were bad boy at school ;)

[My website][CppReference][Pixelate][Allegators worldwide][Who's online]
"Final Fantasy XIV, I feel that anything I could say will be repeating myself, so I'm just gonna express my feelings with a strangled noise from the back of my throat. Graaarghhhh..." - Yahtzee
"Uhm... this is a.cc. Did you honestly think this thread WOULDN'T be derailed and ruined?" - BAF
"You can discuss it, you can dislike it, you can disagree with it, but that's all what you can do with it"

Pedro Avelar Gontijo
Member #5,372
January 2005
avatar

int main ()
{
 somefunc_to_takeover_the_keyboard ();
 while (1)
 {
  sleep (1);
 }
 return 1289741;
}

----------
兩隻老虎,兩隻老虎,跑得快!

Matthew Leverton
Supreme Loser
January 1999
avatar

Quote:

It's not an app, but if you sneak on someone's PC, open an explorer window, make a screenshot and set that as their wallpaper, you will annoy them for ages as they try to close a window that doesn't exist.

;D I did that to someone. I took a screenshot of the desktop and hid all his icons and the taskbar. When he came back from break, I heard him from the other side of the cubicle, cursing at his computer. After a reboot failed to "fix" the problem, he called me over, but of course I didn't know what was going on. ;)

Jakub Wasilewski
Member #3,653
June 2003
avatar

Quote:

you could blow a monitor

Now, that is what classifies as annoying :).

Quote:

It could be good to post explanation what it does to those who don't know assembly. It seems that you were bad boy at school ;)

It switches the monitor between graphic modes as fast as possible - or in case of the older monitors without safeguards, faster than possible ;).

---------------------------
[ ChristmasHack! | My games ] :::: One CSS to style them all, One Javascript to script them, / One HTML to bring them all and in the browser bind them / In the Land of Fantasy where Standards mean something.

CGamesPlay
Member #2,559
July 2002
avatar

Or play Solitaire until there's one move until you win, and then take a screenshot and set that as the desktop :)

--
Tomasu: Every time you read this: hugging!

Ryan Patterson - <http://cgamesplay.com/>

Onewing
Member #6,152
August 2005
avatar

Quote:

It's not an app, but if you sneak on someone's PC, open an explorer window, make a screenshot and set that as their wallpaper, you will annoy them for ages as they try to close a window that doesn't exist.

I can't wait till April Fool's day. ;D

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Samuel Henderson
Member #3,757
August 2003
avatar

If supported, you can make the desktop wallpaper switch even more confusing by switching the view angle from 0 to 90 (fipped sideways). That depends on if the video card supports it.

We did that to someone. We took a screenshot of his desktop, switched the viewing angle to 180, went into paint and rotated the screenshot so it looked like his normal desktop, we then hid the taskbar and cleared the icons off his desktop and locked his computer (we then hid the lock thingy in the corner.)

He struggled with it for about a half an hour before giving up and going to a new machine.

=================================================
Paul whoknows: Why is this thread still open?
Onewing: Because it is a pthread: a thread for me to pee on.

Marcello
Member #1,860
January 2002
avatar

Wow, some of you are real assholes.

Do you enjoy doing stuff like that to people?

Arthur Kalliokoski
Second in Command
February 2005
avatar

In win9x (dunno about ME) if you do "Start | Run | C:\con\con" it'll be real flaky until a reboot

I've done the printf thing in a Win32 app out of habit and nothing happens. (Then I corrected it and even more nothing happened, this is Winduhs after all)

“Throughout history, poverty is the normal condition of man. Advances which permit this norm to be exceeded — here and there, now and then — are the work of an extremely small minority, frequently despised, often condemned, and almost always opposed by all right-thinking people. Whenever this tiny minority is kept from creating, or (as sometimes happens) is driven out of a society, the people then slip back into abject poverty. This is known as "bad luck.”

― Robert A. Heinlein

 1   2 


Go to: