Saturday, December 10, 2011

Notepad tricks

Notepad- the most plain looking application in your system. But even that can perform tricks.
Let me show how.



1) Infinite Notepad Trick
    
    All people with interest in computer programming know about infinite loop. And that's what we gonna use   
    here.


   echo off
   :hahaha
   start notepad.exe
    goto hahaha


   And save it as a .bat file. Best way to fool people is to change the icon to some other 
   application like internet explorer that no one will doubt before clicking.
   This can be stopeed once you restart your system. You can even try giving the path of any other .exe.


2) Disco Light Trick
    Copy the following code in notepad
     
     Set wshShell =wscript.CreateObject("WScript.Shell")
     do
     wscript.sleep 300
     wshshell.sendkeys "{CAPSLOCK}"
     wscript.sleep 100
     wshshell.sendkeys "{NUMLOCK}"
     wscript.sleep 100
     wshshell.sendkeys "{SCROLLLOCK}"
     wscript.sleep 100
     loop


  Save as a .vbs file. Then run it to see the caps lock,num lock and scroll lock lights flashing.
  You can set the sleep time as per your wish.




3) Eject Disk Drive
   
    Use the following code.
    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


    Save this as .vbs .


4) Fatal System Error
  
     Now this can really scare the fledgelings.
     
     x=msgbox ("You windows is corrupt" ,16, "Fatal System Error")
     
     Again save as .vbs.
     You can choose some other dialog box by changing the numbers.
      16 - critical message icon
      32 - warning icon
      48 - warning message
      64 - info message


All this stuff is harmless for your system and none of this is a virus. :) Enjoy!

1 comment:

Feel free to comment or post your query