Notepad Tricks

                                                  NOTEPAD !!!!!!!


1. Create a fake error message in Windows 

      
  1. Go to Notepad
  2. Type X=Msgbox("Message",0+16,"Title")
  3. Replace Message and Title with your Error Message and Error-Window Title respectively.
  4. Save the file with error.vbs.
  5. Now, click the file and you’ll get  Windows error message.

2. Force Shutdown

       
  1. Type the following code in notepad.
  2. @echo off 
  3. msg * Shutdown computer 
  4. shutdown -c “Sleep Tight” -s 
  5. Save the file with .bat extension. For example  shutdown.bat
  6. Click on your file and it will automatically shutdown your Windows.

3. Make the computer to speak your sentence

     
  1. Type the following code in notepad.
  2. Dim message, sapi
  3. message=InputBox(“What do you want me to say?”,”Speak to Me”)
  4. Set sapi=CreateObject(“sapi.spvoice”)
  5. sapi.Speak message
  6. Save the file with speak.vbs
  7. Now, click the file and it will open a prompt enter sentence.

4. Make the cd drive open and close again and again

      
  1. Enter following command in notepad
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
  1. Save your  file as cdopen.vbs
  2. Now, open cdopen.vbs and it will start the process to continuously open and close CD drive.
To stop the process, open Task Manager by pressing Alt+Ctrl+Del and stop cdopen.vbs process.

Comments

Popular posts from this blog

Set video as desktop wallpaper

Shortcuts