3 Cool Programming Tricks Inside Microsoft Notepad - Life Trends & Techs

Life Trends & Techs

Trending News, Entertainment and Technology!

Boxed(True/False)

test banner

Post Top Ad

Responsive Ads Here

Sunday 3 September 2017

3 Cool Programming Tricks Inside Microsoft Notepad



Matrix Effect

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.


Make Your Computer Talk

Make Your Computer Talk

Now you can be just like Matthew Broderick at the height of 1983 tech 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!

Turn Your Keyboard Into an EDM Festival

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.)

No comments:

Post a Comment

Post Bottom Ad

Responsive Ads Here