ss_blog_claim=752cdf4fa7cc7b60527b400da1af07d5

Browsing All posts tagged under »Message Passing«Follow This Tag

August 6, 2008

0 Comments

You can easily pass a message to any window from a Vbscript,Use the following code to send message to Notepad(new file) Set wshShell =CreateObject(”WScript.Shell”) wshShell.appactivate(”Untitled – Notepad”) wshShell.sendkeys “Hello World” wshshell.sendkeys “{SCROLLLOCK}” Instruction: 1.Copy in Notepad and save with .vbs extension 2.Open a new file in Notepad. 3.Run the saved .vbs file. Here is the Screen Shot: