Crazy Tricks Hub

If you are crazy about new features of computer, programming, software and other computer related things.. Then you are in the right place..(*_*)

Featured post

How to create your own Windows Run Commands

How to create your own Windows Run Commands Windows OS is the product of Microsoft, and this company has not left any loose strings...

Post Page Advertisement [Top]

Some Cool Notepad Tricks Everyone Should Know

When I was a kid the only thing i know about the notepad is writing our bio-data  and about ourselves.
Microsoft Notepad has been included in every version of Windows going back to Windows 1.0 in 1985. It's an extremely minimalist text editor, and when I say minimalist, I mean minimalist. If Microsoft Word is a "10" as a word processor, Notepad is around a ".000004" (give or take a few zeros).
Notepad takes the concept of "no frills" to the extreme. But what it lacks in word-processing abilities, it makes up for as a minimalist scratchpad for basic coding. Aside from basic text functionality, Notepad is a reliable repository for old-school programming languages like VBScript. Users can create simple programs to personalize the Windows experiences (or just perform a neat little tricks). There are of course better text editors out there for all you code jockeys, but Notepad is the text editor for everyone (running Windows).
Anyone can use Notepad to play around with code and make programs to personalize the Windows experience (in a very informal and fixable way). Even if you know nothing about coding, there are lots of basic code examples out there that you can cut and paste into Notepad for some PC Magic.
Here are seven cool programs that anybody can use to create simple little programs on their PC. All these scripts were tested using Windows 10 Creators Update and may perform slightly different on your Windows setup. In this post, however i have decided to compile the entire list of notepad tricks instead of writing separate posts for each one of them. Here goes the top 10 notepad tricks :

1.   Matrix Effect

Remember The Matrix? It is the closest thing big budget science fiction comes to being "a thinker." Well, now you can relive all your Matrix memories via Notepad and a bit of simple code. Here's what you do.

1) Copy the following lines of code and paste them into Notepad:

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

2) Save as "Matrix.bat" (or you can call it whatever you want, but the important thing is to save it as a .bat file).

3) Double-click on the file to behold some sweet Wachowski action. 

2.   Make a Personal Diary

This one is simple, but might be considered useful to some.

1) Type ".LOG" into a new Notepad document (without quotation marks). Note: It must be all UPPERCASE.

2) Save as a regular text document.

3) Close it.

4) Double-click on the doc. Every time you open the document it will show the time and date. You can just write any text below it. This is good for keeping a diary or for logging observations of something as it changes over time. 

3.   Make Your Computer Talk

Now you can be just like Iron Man "Jarvis" and make your PC talk with a human-ish voice. It's fun! Here's what you do.

1) Type the following code into a Notepad doc:

Dim Message, Speak
Message=InputBox("Enter text","Speak")
Set Speak=CreateObject("sapi.spvoice")
Speak.Speak Message
2) Save as "talk.vbs" or whatever (the important thing is that you save it as a .vbs file).

3) Double-click on the icon to prompt a pop-up window. Enter some text in the box and behold your ear holes! 

4.   Turn Your Keyboard Into an EDM Festival

Ever wish your keyboard was more 1) annoying and 2) festive? Well, thanks to this trick you can make that happen.

1) Paste the following code into a Notepad doc:

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

2) Save as a .vbs file.

3) Double-click on saved file.

4) Dance.  
5) What is happening is the computer is rapidly toggling the CAPS lock, NUMBER lock, and SCROLL lock on and off (which usually lights an LED on most keyboards). This is very annoying if you want to actually use your keyboard for typing. If you want to turn it off, you have to 1) restart the computer or 2) in Windows 10, go to Task Manager and end "Microsoft Windows Based Script Host." (I haven't confirmed it, but reportedly if you're using Windows 8 or before, you'll want to end "wscript.exe" in Task Manager.) 

5.   Guessing Game

Here's a good way to pass the time if you're bored via Instructables.

1) Paste the following into a Notepad doc:

@echo off
color 0e
title Guessing Game by seJma
set /a guessnum=0
set /a answer=%RANDOM%
set variable1=surf33
echo -------------------------------------------------
echo Welcome to the Guessing Game!
echo.
echo Try and Guess my Number!
echo -------------------------------------------------
echo.
:top
echo.
set /p guess=
echo.
if %guess% GTR %answer% ECHO Lower!
if %guess% LSS %answer% ECHO Higher!
if %guess%==%answer% GOTO EQUAL
set /a guessnum=%guessnum% +1
if %guess%==%variable1% ECHO Found the backdoor hey?, the answer is: %answer%
goto top
:equal
echo Congratulations, You guessed right!!!
echo.
echo It took you %guessnum% guesses.
echo.
pause

2) Save as a .bat file.

3) Double-click the file. Guess away!

6.   A Virtual Calculator

This hand-coded calculator is more a cool proof-of-concept than something I would honestly recommend for your number-crunching needs. Your PC or phone most likely comes with a more intuitive virtual calculator

1) Paste the following into a Notepad doc:

@echo off
title Batch Calculator by seJma
color 1f
:top
echo --------------------------------------------------------------
echo Welcome to Batch Calculator
echo --------------------------------------------------------------
echo.
set /p sum=
set /a ans=%sum%
echo.
echo = %ans%
echo --------------------------------------------------------------
pause
cls
echo Previous Answer: %ans%
goto top
pause
exit

2) Save as a .bat file.

3) Math away. Note: it can only handle integers. And only those of a certain number of digits. It also doesn't handle complex equations all that well. But other than all that, it's just fine. 

7. Shortcuts for Changing Header and Footer in Notepad


Open Page Setup from File menu and use the following codes in the header and footer fields for the particular purpose:
&d Print the current date
&t Print the current time
&f Print the name of the document
&p Print the page number
&l Left-align the characters that follow
&c Center the characters that follow
&r Right-align the characters that follow

8. “Bush hid the facts” Trick


This trick is one of most popular tricks of Notepad. Follow these steps to use the trick:
1. Open Notepad.
2. Type “bush hid the facts” or “this app can break”.
3. Save the file and close it.
4. Open the file again.
What happens is when you open the saved file again, you see some different characters instead of what you had typed and saved (i.e. bush hid the facts or this app can break). This happens due to 4-3-3-5 string length bug in old versions of Windows. 

9.  Fake Windows Error Message

Type the following command in Notepad and save the file as error.vbs then Open the saved file and your fake error message will appear.


X=Msgbox(“Press OK and Windows will restart now.”,0+16,“There is a serious problem in your system”)

10. Type “You are a fool” Continuously

Not much to explain, the title says it all! Follow the steps to make this trick work:
  • Open Notepad.
  • 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 any name but with .vbs extension and close it.
Open the file and see how it makes you type!

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib