Sunday, September 17, 2006

Day 3 - Moo Prank

This was a request sent in by someone (gotten too many to remember) and I had to do it.

Download the application here
Download the source here

There are 2 executables:

AnAppADay.MooPrank.Moo.exe :
 double click to make a moo sound
 run at the command line with 2 args: min and max. This will pick a random number of SECONDS between min and max, then make a moo. It will repeat FOREVER. Kill using task manager.

AnAppADay.MooPrank.SendMoo.exe :
 Windows form to allow sending a moo to a remote PC. This is only useful for a windows domain where you are an admin on the target PC.
 The first button will copy the files to the remote PC (root of C:).
 The second button will launch the process on the remote machine. Will use c:\ as default unless network location is specified. DLL file must be alongside the MOO program when using network. .NET CAS policy may cause issues with this running (can't fully test here).
 Min and max do the same as above remotely, FOR BEST PRANK RESULTS MAKE THEM 300 AND 3600 RESPECTIVELY. This will do a moo every 5-60 mins. You will not be able to stop the remote process without walking to the PC and killing the task!

**special thanks to The Code Project as I used one of their source projects to make the windows volume crank all the way up.

Had a good time writing this. Learned a little WMI. See ya tomorrow.

13 Comments:

At 11:48 AM, Anonymous Anonymous said...

This one doesn't work on any PC I've tried it on:

Unknown Error: Retrieving the COM class factory for component with CLSID: {...} failed due to the following error: 80040154.

 
At 12:28 PM, Blogger Unknown said...

hmmmm, thats definitely an error with media player. Perhaps I should remove that code to unmute and max vlume.
Maybe it doesn't work on PCs without sound cards? Confirm?

 
At 2:23 PM, Anonymous Anonymous said...

awsome. using it now.....

 
At 4:30 PM, Anonymous Anonymous said...

haven't looked at the code but thought wmi provided a process kill method?

you could also cheat and use taskkill /S ...

 
At 7:01 PM, Anonymous Anonymous said...

I'm the one who suggested it... although you still don't know who I am as I am anonymous!

 
At 11:54 AM, Blogger Dan said...

Doesn't work for me. I downloaded, unzipped and ran "C:\Downloads\MooPrank\AnAppADay.MooPrank.Moo.exe 1 10" and got nothing. It didn show up in Task Manager but just didn't make any noise.

 
At 9:52 PM, Anonymous Anonymous said...

I tried to run it on my roomate's PC while he was gone (just put the files in his WINDOWS directory and ran from command prompt), but nothing ever happened...

 
At 2:33 AM, Blogger Unknown said...

We've been using at the office. works great. Target PC (or your PC) need .NET 2,0 installed (see earlier blog).

Yes, I could do kill feature, butit was done in a day. Source provided. May the source be with you.

 
At 11:29 AM, Anonymous Anonymous said...

Can you give an example for input...

Remote Machine:


Remote Machine:
Network Location:
Min: Max:

As to make this work on a friend/coworkers PC, if I have admin access.

 
At 9:56 AM, Anonymous Anonymous said...

I would love to be able to use this in my office as it would be a great prank to play on the guy who sits a couple of cubicles over. Unfortunately, the tech overloards at my company do not allow the .Net framework version 2 yet and I have no control over it :-(. I installed on my home PC and it worked great. I just wish I could use it in a network environment and have some fun with my friends.

 
At 12:11 PM, Anonymous Anonymous said...

Luckily, I am one of the tech overlords here, so much amusement has been had mooing new (and not so new) employees. Just had one chap searching every web page he had open for embedded Flash files for half an hour!

 
At 1:23 PM, Anonymous Anonymous said...

I seem to be having trouble posting, lets see if it works this time.

 
At 3:36 PM, Anonymous Anonymous said...

What are you meant to put in the box for 'Remote Machine'?

I've tried local IP and the hostname but neither seems to work

 

Post a Comment

<< Home