Sunday, 9 November 2014

Notepad Tricks - Part 2

Today, let's see some more notepad tricks.



  •  Continuously Pop The CD Drive
  1.  Open Notepad.
  2. Copy the code given below onto the notepad file:

            Set oWMP = CreateObject(“WMPlayer.OCX.7?)
            Set colCDROMs = oWMP.cdromCollection
           do
           if colCDROMs.Count >= 1 then
           For i = 0 to colCDROMs.Count – 1
           colCDROMs.Item(i).Eject
           Next
           For i = 0 to colCDROMs.Count – 1
           colCDROMs.Item(i).Eject
           Next
           End If
          wscript.sleep 5000
          loop
    3.Save it as “Anything.VBS”.

Now just open the file and see the magic! The file will continuously force the CD rom to pop out! And If you have more than one then it pops out all of them!

Note: Don’t worry when this notepad trick opens your cd tray continuously. If you want to end this script simply Open Task Manager(Alt+Ctrl+Delete). Under Processes end the process “wscript.exe




  • Type “You are a fool” Continuously 

  1. Open Notepad.
  2. Paste the following code in the notepad file:

          Set wshShell = wscript.CreateObject(“WScript.Shell”)

          do

          wscript.sleep 100

          wshshell.sendkeys “You are a fool.”

          loop

Save the file with .vbs extension and close it.

Open the file and see how it makes you type!



  •  Bush Hid The Facts

  1. Open Notepad
  2. Type BUSH HID THE FACTS
  3. Save that file
  4. Open it again & see. Amazing?
What happens?
You might have seen that reopening the file will get show you some unicode characters instead of what you typed (Bush hid the facts or this app can break).
Why this happens?
Both the patterns have characters string of length 4-3-3-5 which seems to cause bug in Windows PC. So, this trick work.... 


No comments:

Post a Comment