The How-To Geek Forums Have Migrated to Discourse


How-To Geek Forums / Off Topic

opens notepad and automatically types the text

(2 posts)
  • Started 8 years ago by zs474
  • Latest reply from SarahJames
  • Topic Viewed 1238 times

zs474
Posts: 0

This vbs script is going to open your notepad after 1000ms and type each letter with specified time gap as in the code.

WScript.Sleep 1000
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad"
WScript.Sleep 100
WshShell.AppActivate "Notepad"
WScript.Sleep 500
WshShell.SendKeys "H"
WScript.Sleep 500
WshShell.SendKeys "e"
WScript.Sleep 500
WshShell.SendKeys "l"
WScript.Sleep 500
WshShell.SendKeys "l"
WScript.Sleep 500
WshShell.SendKeys "o "
WScript.Sleep 500
WshShell.SendKeys "We"
WScript.Sleep 500
WshShell.SendKeys "llc"
WScript.Sleep 500
WshShell.SendKeys "om"
WScript.Sleep 500
WshShell.SendKeys "e "
WScript.Sleep 500
WshShell.SendKeys "to "
WScript.Sleep 500
WshShell.SendKeys "Ho"
WScript.Sleep 500
WshShell.SendKeys "w "
WScript.Sleep 500
WshShell.SendKeys "To "
WScript.Sleep 500
WshShell.SendKeys "G"
WScript.Sleep 500
WshShell.SendKeys "ee"
WScript.Sleep 500
WshShell.SendKeys "k... "
WScript.Sleep 500

Copy and paste this entire code in notepad and save it as "anyname.vbs" and open that file.

Posted 8 years ago
Top
 
SarahJames
Posts: 0

Hehe :)

Posted 8 years ago
Top
 



Topic Closed

This topic has been closed to new replies.

The Best Tech Newsletter Anywhere

Join 250,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.