Top 10 Cool Programming Tricks In Notepad

Note:- How to terminate VBS processes

Before start to have fun with these cool notepad tricks, you should know that the problem while trying files with “.vbs” extension is that you might not find how to stop these processes you have just initiated and for that follow the steps below-

  • Open your Task Manager
  • Search for a process named “wscript.exe” or “cscript.exe”.
  • Right click that process and click “End Process” and again “End Process”
  • Voila !! You have ended the process, now no more drive ejection or other hacks will work until you start them again.

1:- Make Your Keyboard Type (Any) Message Continuously-VBS Trick

This VBS trick can make any of your friend's keyboard type any message continuously. 
Open Notepad, copy the code given below and save the file as Tricks.vbs or *.vbs. You will need to restart your computer to stop this. Try this after closing all important programs.

Set wshShell = wscript.CreateObject("WScript.Shell")
do
wscript.sleep 100
wshshell.sendkeys "This is a Virus. You have been infected."
loop
Send this file to your friends as an email attachment to see the fun.

2:- Create a Harmless Funny Virus To Continuously Eject CD/DVD Drives


This VBS trick will create a code which will continuously eject all your connected Optical drives. If you put them back in, it will pop them out again. Copy this code and paste it in Notepad as Virus.vbs or *.vbs.

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

Double click to open this file and you will be impressed by this awesome trick.

3:- Converting Text to Speech Using Notepad.

Just copy and paste the code down below into notepad and save as a .vbs file.  When you play it, you’ll get a dialog box asking what you want the computer to say. Have fun.

Dim message, sapi
message=InputBox("What do you want me to say?","Speak to Me")
Set sapi=CreateObject("sapi.spvoice")
sapi.Speak message


4:- Notepad trick to Test Antivirus

By using this trick, you can easily test whether your antivirus working perfectly or not.

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 change your antivirus.


5:- Notepad Trick to type slowly

This trick will let you to type slowly on the screen and to do so, just copy the below code and save it with “cybomaniacx.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! “

6:- Matrix Effect

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

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

 

goto start 

 Note:- A small tweak to customize this cool effect is that you can change the value in front of color, i.e. 02 in color 02 to any other value like 03 for instance; this will change the color of the text that appears in the command prompt.


7:- Format Hard Disk Using Just Notepad

This code will delete all your hard drive data. Just copy the below code and paste in notepad and save it as “anyname.exe”.

01100110011011110111001001101101011000010111010000 100000011000110011101001011100 0010000000101111010100010010111101011000

 8:- Make a Personal Diary

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

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

Step 2:- Save as a regular text document.

Step 3:- Close it.

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



9:- 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 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 of your keyboard and open task manager and then process section and stop the Wscript running file there. 


10:- Random PIN Generator

If you want to create a simple (numeric) random pin generator, you can do that with this little tricks. Sometimes the numbers are four-digits long; some are five-digits long.

Step 1:- Paste the following code in a Notepad.
@echo off
:Start2
cls
goto Start
:Start
title Password Generator
echo I will make you a new password.
echo Please write the password down somewhere in case you forget it.
echo ----------------------------------------¬-----------------------
echo 1) 1 Random Password
echo 2) 5 Random Passwords
echo 3) 10 Random Passwords
echo Input your choice
set input=
set /p input= Choice:
if %input%==1 goto A if NOT goto Start2
if %input%==2 goto B if NOT goto Start2
if %input%==3 goto C if NOT goto Start2
:A
cls
echo Your password is %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:Exit
exit
:B
cls
echo Your 5 passwords are %random%, %random%, %random%, %random%, %random%.
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2
:C
cls
echo Your 10 Passwords are %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%, %random%
echo Now choose what you want to do.
echo 1) Go back to the beginning
echo 2) Exit
set input=
set /p input= Choice:
if %input%==1 goto Start2 if NOT goto Start 2
if %input%==2 goto Exit if NOT goto Start 2

Step 2:- Save as a .bat file.

Step 3:- Double-click on the file.


11:- Virtual Calculator

Type-A
Step 1:- Paste the following into a Notepad doc:

@echo off

title Batch Calculator by CybomaniacX

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

Step 2:- Save as a .bat file.

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

Type B
@echo off
 Title CybomaniacX-Calculator
 :start
 Echo Press 1 for Addition
 echo Press 2 for Subtraction
 echo Press 3 for Multiplication
 echo Press 4 for Division
 echo Press 5 to Quit
 set /p type=
 if %type%==1 goto a
 if %type%==2 goto b
 if %type%==3 goto c
 if %type%==4 goto d
 if %type%==5 goto e
 :a
 echo Addition
 echo Type The 2 Numbers To Add
 set /p num1=
 set /p num2=
 echo %num1%+%num2%?
 pause
 set /a Answer=%num1%+%num2%
 echo %Answer%
 pause
 goto start
 :b
 echo Subtraction
 echo Type The 2 Numbers To Substract
 set /p num1=
 set /p num2=
 echo %num1%-%num2%?
 pause
 set /a Answer=%num1%-%num2%
 echo %Answer%
 pause
 goto start
 :c
 echo Multiplication
 echo Type The 2 Numbers To Multiply
 set /p num1=
 set /p num2=
 echo %num1%*%num2%?
 pause
 set /a Answer=%num1%*%num2%
 echo %Answer%
 pause
 goto start
 :d
 echo Division
 echo Type The 2 Numbers To Divide
 set /p num1=
 set /p num2=
 echo %num1%/%num2%?
 pause
 set /a Answer=%num1%/%num2%
 echo %Answer%
 pause
 goto start
 :e
 echo. Done!

Comments

Popular posts from this blog

How To Open Chrome In Incognito Mode By Default On Android

How To Shorten The URL/Link