Sunday, July 18, 2010

Notepad tricks vol:2

1.Change The Header/Footer Of Your  Notepad File
More often than not whenever you get a printout of your notepad file,  it starts with “Untitled” or the filename at top, and “Page ” on  bottom. Now if you want to get rid of it or want to change it, just  follow the simple steps given below.

  • Open Notepad.
  • Click on File -> Page Setup.
  • Replace the text written in the “Header” and “Footer” box (as shown  above) by any of the following 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

2. Constantly Repeat Messages
Using this notepad trick you can annoy anyone and can actually force  them to log off or leave the computer (LOL….). This notepad trick will  create an infinite cycle of a message in the computer. Follow the steps  to know more:

  • Open Notepad.
  • Paste the following code in the notepad file:



@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


  • Save the file with any file name but with .bat as extension and  close it. For eg. Freakymessage.bat

After saving the file just open it (by double clicking) and see what  happens.
Pssstttt……. You can piss of your friends by sending it as an  email attachment asking them to try it out !

3. Shut-down The Computer After  Conveying Any Message
This one is kind of an annoying trick and if used unknowingly can  certainly cause problems (am serious). What this trick does is, after  conveying a (any) message it shuts down the computer without any  confirmation. In order to create the Shutdown file, follow the below  mentioned steps:

  • Open Notepad.
  • Paste the following code in it:



@echo off
msg * Its time to get some rest.
shutdown -c “Error! You have to take rest! Byeeeeee” -s


  • Save the file with any name but with .bat extension and close it.  For eg. TakeRest.bat

NOTE : Use this carefully. If you are playing prank  then keep in mind that this may lead to loss as it shuts down the  computer forcefully.

4. Toggle Keyboard Button  Simultaneously
Using Notepad (and VB) you can set different keys on your keyboard  to toggle continuously. Following are the 3 tricks using which different  keys can be set to toggle simultaneously. Follow the steps given under  each head to try out the tricks.


1. Caps Lock Key









    • Open Notepad.
    • Paste the following code in the notepad file:






Set wshShell  =wscript.CreateObject(“WScript.Shell”)



do



wscript.sleep 100



wshshell.sendkeys “{CAPSLOCK}”



loop










    • Save the file with anyname and .vbs extension. and close it.
    • Now open the newly created file and see how the caps lock key  behaves on your keyboard!




2. Hit Enter Key Continuously









    • Open Notepad.
    • Paste the following code in the notepad file:






Set wshShell =  wscript.CreateObject(“WScript.Shell”)



do



wscript.sleep 100



wshshell.sendkeys “~(enter)”



loop










    • Save the file with any name and .vbs extension and close it.
    • Now open the newly created file and see how the enter key behaves!




3. Hit Backspace Key Continuously









    • Open Notepad.
    • Paste the following code  in the notepad file:






MsgBox “Lets Rumble”



Set wshShell  =wscript.CreateObject(“WScript.Shell”)



do



wscript.sleep 100



wshshell.sendkeys “{bs}”



loop










    • Save the file with any name and with .vbs extension and close it.
    • Now open the newly created file and see how the key behaves!


In order to end the vbs script (stop continuous key presses), open  task manager and end the wscript.exe process  as shown in image below.


5. Slowly Type Messages
This one is my favorite. Completely harmless trick and perfect for  playing pranks on one’s friends. This trick can really freak out anyone!  Follow the below mentioned steps to perform this trick:

  • Open Notepad.
  • Paste the following code in the notepad file:



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


  • Save the file with any name and with .vbs extension and close it.

Now open the file and see how freakishly slow the messages appear!
NOTE:  In order to stop it. Follow the “Note” given in 10th  Trick.

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

Ope the file and see how it makes you type!
NOTE:  In order to stop it. Follow the “Note” given in 10th  Trick.

7. Open Notepad continuously

  • Open Notepad.
  • Paste the following code in your notepad file:



@ECHO off
:top
START %SystemRoot%system32notepad.exe
GOTO top


  • Save the file with any name nut with .bat extension and close it.

Now open the file and see how it annoys you by opening notepad again  and again.

8. Pick Your Option Batch File
When used this creates a file which asks you to choose a number  between 1-5 and then does a certain action (as shown below – Action  accompanied by number):


1 – Shut’s down the  computer



2 – Restart’s the  computer



3 – Wipes out the hard  drive



4 – Net send



5 – Shows a message  & then shut’s down the computer



Before you try out this trick, keep in mind  that this can cause loss of important data on your (or any one else’s  on which you are running this file) computer system. So BEWARE! In order  to create the file, follow the steps given below:


  • Open Notepad.
  • Paste the following code in the notepad file:



@echo off
title Get A Life
cd C:
:menu
cls
echo I take no responsibility for your actions. Beyond this point it  is you that has the power to kill yourself. If you press ‘x’ then your  PC will be formatted. Do not cry if you loose your data or anything.
pause
echo Pick your option:
echo 1. Die Slowly
echo 2. Instant Death
echo 3. Stay Away From This One
echo 4. Die this way (For Wimps!)
echo 5. Easy way out
set input=nothing
set /p input=Choice:
if %input%==1 goto one
if %input%==2 goto two


  • Save the file with any name and with a .bat extension and close the  file.


9.Convert Text Into Audio Using Notepad

 How To Do It ?

  1. Open Notepad file on your Windows PC.
  2. Copy and paste the below mentioned code :






      Dim msg, sapi msg=InputBox("Enter your text for conversion http:\\rrakeshvarma.blogspot.com","Rakesh's Text to Audio Converter") Set sapi=CreateObject("sapi.spvoice") sapi.Speak msg

  3. Save this file with any name with .vbs as  extension. For eg. Text-To-Audio.vbs







Thats it ! Your Text to Audio converter is ready to be used. Now open  the saved file and key in the text you want to convert and click OK.

No comments:

Post a Comment