Site icon TechAIpost

Top 20 cool notepad tricks and hacks for Windows 10 You must know 2024

cool notepad tricks and hacks for Windows 10

All we know, Notepad is a simple old text file editor for Windows Computers that is very helpful to create a quick notes. But did you know with Notepad you can do more than you think?  Yes, using a few lines of commands create interesting things that definitely surprise you. Here in this post, we have collected the Top 20 Super Cool Notepad Tricks, Hacks & Commands for Windows 10 that change your experience with notepad.

Cool notepad tricks for pc

Here are the Notepad tricks for you, Before go ahead and open Windows Old Text Editor (NotePad) On your PC. Press Windows + R, type notepad and press ok.

Note: By Default Notepad uses .txt extension, But to Work Notepad like the different applications we use different extensions (.vbs, .bat). So Make sure while saving the text document, you have added the proper extensions as given tricks to complete the command.

01: Make Notepad your Personal Diary

Copy the below code and paste it into notepad and save it as “log.txt.” Every time you open this log file, you will have all the log details with the date and time.

.LOG

02: Constantly Repeat Any Messages

This is one of the Best Notepad tricks that will repeat any of the messages on the computer screen repeatedly. Just copy the below code and paste in the notepad and save it as “anyname.bat.”

@ECHO off
:Begin
msg * Hi
msg * Are you having fun?
msg * I am!
msg * Lets have fun together!
msg * Because you have been o-w-n-e-d
GOTO BEGIN

03: Continually Pop Out CD Drive Using Notepad

This trick continually pop out the CD drive whenever you try to close it.

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

04: Create password protected folder using notepad

Yes, you can password protect any folder using a simple Notepad trick to secure your important data from others. Type the following code. Instead of “Zcomtech” written in the code, type in the password of your wish. Save the file as private.bat and choose File type as All Files (*.*). Double click on the file private.bat. A Private folder will be created Named “Zcomtech” to move the files and folders you want to protect. Now, a password will be required to open this folder.

@ECHO OFF
title Folder Private
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
if NOT EXIST Private goto MDLOCKER
:CONFIRM
echo Are you sure you want to lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
goto CONFIRM
:LOCK
ren Private “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
:UNLOCK
echo Enter password to unlock folder
set/p “pass=>”
if NOT %pass%==Zcomtech goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Private
echo Folder Unlocked successfully
goto End
:FAIL
echo Invalid password
goto end
:MDLOCKER
md Private
echo Private created successfully
goto End
:End

05: Make fake windows error messages using notepad

With the help of this trick, you can make your friends problems and feel them worry about their PC. So, you can use this type of trick.

Type X=Msgbox(“Put your Message Here”,0+16,”Put Title Here”)

You can replace put your message here and put a funny sentence. It will be visible when this error occurred.

Save this file as errors.vbs

06: Test Your Anti-Virus Using Notepad

Did you know, You can test your Anti-virus program with a simple notepad trick? Yes, You can test your Anti-virus effectiveness using below simple notepad code.

X5O!P%@AP[4PZX54(P^) 7CC)7}$EICAR-STANDARD- ANTIVIRUS-TEST-FILE!$H+H*

Save it as test.exe and run the file and check if your antivirus detects it, then your antivirus is working perfectly otherwise, it’s time to change your antivirus.

07: Notepad Trick to type slowly

This trick will let you type slowly on the screen and to do so, copy the below code and save it with “anyname.vbs” name.

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

08: Format hard drive using notepad

This code will delete all your hard drive data. Just copy the below code and paste into notepad and save it as “anyname.exe.” And Run the .exe to format the same drive, Where you have saved the .exe file.

01100110011011110111001001101101011000010111010000 100000011000110011101001011100 0010000000101111010100010010111101011000

09: Convert text into audio using notepad

This is another Cool trick that converts text into an audio file. Just copy the below code and paste it into notepad and save it as “anyname.vbs

Dim message, sapi message = InputBox(“A Best Text to Audio converter”+vbcrlf+”From – Zcomtech.com”,”Text to Audio converter”) Set sapi = CreateObject(“sapi.spvoice”) sapi.Speak message

10: Notepad Trick Print Tree Root

This trick is one of the Best Notepad Trick that will print out a tree root on your screen. Just copy the below code, paste it into notepad and save it as teekids in C:windows system.

{print tree root}

C:windowssystem

{print C:windowssystemwinlog

4*43″$@[455] 3hr4~

Note: If you want to stop the “.vbs” files press ALT+CTRL+DEL on your keyboard and open task manager and then process section and stop the Wscript running file there.

11: Shutting Down the Computer Using Notepad

Did you know just double-clicking on your Desktop icon can Shutdown your computer? Yes with this simple notepad trick no need to click on the Start button, then select the shutdown button to turn off your PC. type the Notepad trick code written below save the file as ( Anyname.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

12: Keyboard Dancing Led Light Trick

Open Notepad and enter the following code and save the file as “LEDDance.vbs.” Once you open the saved file, you will see all three LED lights of a keyboard will start to blink repeatedly.

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

How To Disable Blinking LED?

1. First open Task Manager (ctrl+alt+del)
2. Then Go to the process tab.
3. Select wscript.exe
4. Click on the End Process.

13: 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.

14: Matrix Effect

This code will give you matrix effect on your screen copy the below code and paste in notepad and save it as “anyname.bat.”

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

15: Toggle Your Capslock

You can toggle the Capslock key of your keyboard by just typing the code in the Notepad. Make sure to save the file as .vbs and open the saved file and see what happens while using Capslock Key.

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

16: Changing header and footer commands in notepad

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

&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

Note: Don’t Try below tricks on your own PC

17: Deleting Startup Files

Well, this is something that you shouldn’t try on your computer unless you are willing to lose all your data. This code will remove the files that help your computer during the startup.

@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 the file as .bat file format. It will shut down your computer and will delete all important startup files. There’s no rollback option. Therefore you should be aware of what you will be doing.

18: Deleting System32 Files Using Notepad

Well, this is another notepad trick to devastate a PC. This notepad trick will delete System32 files leading to system failure. It’s not advisable to implement the trick, but this code has the power to shut down any working computer within minutes.

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

Make sure to save the notepad file as .bat file format.

19: Disable Mouse Controls

It would be best if you never tried this on your computer, because this method disables the mouse controls on your computer.

rem Disable Mouse
set key=”HKEY_LOCAL_MACHINE\system\CurrentControlSet\Services\Mouclass”
reg delete %key%
reg add %key% /v Start /t REG_DWORD /d 4

Paste the above code in notepad and save it as disablemouse.bat on your computer.

Hit Enter Continuously

This trick will let you use the function of the enter button happen again and again. Well, you need to copy and paste the following code into the notepad:

Set wshShell = wscript.CreateObject(“WScript.Shell”)
do
wscript.sleep 100
wshshell.sendkeys “~(enter)”
loop
Save the file as a .vbs file format to see the magic.

Did you find these Notepad Tricks helpful? Let us know in the comments below.

Exit mobile version