Wednesday, March 19, 2014

How to Play a Computer Keyboard and CD Tray Prank

This will explain how to have fun pranking your friends. This MUST be saved as a vbs file ( filename. vbs) so that it works correctly.

This will show you how to do one of two options, or both. Open and close the CD tray, over and over again. Or have caps lock and the other locks turn on and off with it over and over.

Repeatedly turn on and off all of the caps/scroll/num lock keys

1. Open notepad

2. Type or copy/paste the following:

Set wshShell =wscript.CreateObject("WScript.Shell")
wscript.sleep 100
wshshell.sendkeys "{CAPSLOCK}"
wshshell.sendkeys "{NUMLOCK}"
wshshell.sendkeys "{SCROLLLOCK}"

3. Then save the following as whatever you want. Just make sure, once again, that the file extension is .vbs

Now you double click on the file..
and now you can see your keyboard light doing Disco dance.

Repeatedly open the CD drive

1. Open notepad

2. Type or copy/paste the following:

    • Set oWMP = CreateObject("WMPlater.ocx.7")
    • Set colCDROMS = OWMP.Cdrom collection
    • do
    • Col CDROMs.Count >= 1 then
    • For i = 0 to colCDROM.count -1
    • ColCDROMs.item (i).eject
    • Next
    • For i = 0 to colCDROMs.count -1
    • Col CDROMs.item (i).Eject
    • Next
    • End if
    • wscript.sleep 100
    • loop

3. Then, save it as whatever name you want, and make sure the file extension is .vbs (normally it will save as filename. text, but change it to filename. vbs)


  • You can save the files in notepad like normal, but for the first line type
  • @echo off
  • Script here (whichever one you chose)
  • Start safari
  • Then save the as internet.vbs in a common folder.
  • Once you have done so, right click the icon and click create desktop shortcut/create shortcut.
  • Once this is done, drag it to the desktop, if not already there, and right click it, change the icon. Make it look like the internet icon.
  • Then hide one internet shortcut so you can change it back later
  • Once this is done, replace all of the places where the internet normally was with the new "internet"
  • If you want to stop the prank go to task manager, go to processes and then end all of the wscript ones.

Thanks for coming by and taking your time to read this post :) I hope you have learnt something today and shared this. Now I'd love to hear from you. Got any views, thoughts and questions related to the post? I'm all ears here. Add your comment.


Post a Comment