Creating a self writing notepad

1. Open Notepad.
2. Copy this script in Notepad
set wshshell = wscript.CreateObject(“wscript.shell”)
wshshell.run “Notepad”
wscript.sleep 2000
wshshell.AppActivate “Notepad”
WshShell.SendKeys “H”
WScript.Sleep 500
WshShell.SendKeys “ell”
WScript.Sleep 500
WshShell.SendKeys “o “
The little program will make your Notepad type “Hello”. You can always make your custom message by replacing the letters between the ” ” signs with the ones you want.
You can add more lines like the following ones for more letters:
WScript.Sleep 500
WshShell.SendKeys “insert here your letter of group of letters ”
3. Now save the file. Go to File->Save as. Type the name of the file with the extension .vbs. For example if you want to choose the name Notepad, type Notepad.vbs. Also be sure that File type is All files not Text file!
4. When you double-click on it, Notepad will start typing letters.
5. Enjoy……. ;)

0 comments:

Post a Comment