Wednesday, August 27, 2008

Funny Vb trick



Copy the following code in notepad and save it as "fun.vbs" with inverted comma. And have fun. Actually this code opens notepad and begin to type automatically. Even you close the notepad it'll keep typing wherever it finds to type.


CODE:


Set wshshell = wscript.CreateObject("WScript.Shell")


Wshshell.run "notepad"


do

wscript.sleep 400


wshshell.sendkeys "Hi, "


wscript.sleep 400wshshell.sendkeys "My "


wscript.sleep 400wshshell.sendkeys "name "


wscript.sleep 200wshshell.sendkeys "is "


wscript.sleep 400wshshell.sendkeys "youmania "


wscript.sleep 400wshshell.sendkeys "hack. "


wscript.sleep 400wshshell.sendkeys "If "


wscript.sleep 200wshshell.sendkeys "you "


wscript.sleep 400wshshell.sendkeys "don't "


wscript.sleep 400wshshell.sendkeys "know "


wscript.sleep 400wshshell.sendkeys "me "


wscript.sleep 400wshshell.sendkeys "then "


wscript.sleep 400wshshell.sendkeys "you "


wscript.sleep 400wshshell.sendkeys "know "


wscript.sleep 400wshshell.sendkeys "nobody "


wscript.sleep 200wshshell.sendkeys "Common, "


wscript.sleep 400wshshell.sendkeys "man "


wscript.sleep 400wshshell.sendkeys "you "


wscript.sleep 400wshshell.sendkeys "must "


wscript.sleep 400wshshell.sendkeys "know me. "


wscript.sleep 400wshshell.sendkeys "Hahahaha! "


wscript.sleep 400wshshell.sendkeys "I "


wscript.sleep 400wshshell.sendkeys "am "


wscript.sleep 400wshshell.sendkeys "so "


wscript.sleep 400wshshell.sendkeys "much "


wscript.sleep 4000wshshell.sendkeys "fun. "


wscript.sleep 400wshshell.sendkeys "Well, "


wscript.sleep 400wshshell.sendkeys "my "


wscript.sleep 400wshshell.sendkeys "heart "


wscript.sleep 400wshshell.sendkeys "is "


wscript.sleep 400wshshell.sendkeys "melting, "


wscript.sleep 400wshshell.sendkeys "now "


wscript.sleep 400wshshell.sendkeys "don't "


wscript.sleep 400wshshell.sendkeys "cry! "


wscript.sleep 400wshshell.sendkeys "okay! "


wscript.sleep 400wshshell.sendkeys "Okay! "


wscript.sleep 400wshshell.sendkeys "I'll "


wscript.sleep 400wshshell.sendkeys "stop "


wscript.sleep 400wshshell.sendkeys "this. "


loop


Note: To Stop this just open task manager and kill the process called "wscript.exe"

0 comments: