Windows Notepad is a basic writing application that is very much neglected I guess. Everyone knows that Windows Notepad as just a basic writing app which gets dominated by the various other feature filled applications. Actually notepad is powerful than what it actually looks like. Here are some surprising things that everyone should know about Notepad tricks, that are useful tips.
Get Line Count:
To view the number of lines in a Notepad document, you will have to display the status bar first, for that you have to View menu and then check whether the status bar option is checked. Windows Notepad even has a GOTO option just like the Microsoft Word and you can use it by just pressing CTRL + G, which opens the dialog box and there you can type the exact line number that you want to go to.
Find the Windows Product key:
You can retrieve your Windows Product key using a simple trick on Windows Notepad which is just copy and paste the following code in Notepad and save it with the extension .vbs
Set WshShell = CreateObject("WScript.Shell") MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) Function ConvertToKey(Key) Const KeyOffset = 52 i = 28 Chars = "BCDFGHJKMPQRTVWXY2346789" Do Cur = 0 x = 14 Do Cur = Cur * 256 Cur = Key(x + KeyOffset) + Cur Key(x + KeyOffset) = (Cur \ 24) And 255 Cur = Cur Mod 24 x = x -1 Loop While x >= 0 i = i -1 KeyOutput = Mid(Chars, Cur + 1, 1) & KeyOutput If (((29 - i) Mod 6) = 0) And (i <> -1) Then i = i -1 KeyOutput = "-" & KeyOutput End If Loop While i >= 0 ConvertToKey = KeyOutput End Function
When you open this file, it will show you the windows product key.
Test your Antivirus:
Find how safe your PC is under the surveillance of your antivirus program. Just use this simple trick. Save the following harmless code of text in your Notepad.
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
Your Antivirus software should pick it up as a malware and should take action accordingly. This will be small test for your antivirus software to know whether it is functioning properly or not.
So these are some surprising things that you can do with the Windows Notepad. Do try these Notepad tricks and start using Notepad in a differently useful way. Useful tips in Notepad can be useful to you.