ss_blog_claim=752cdf4fa7cc7b60527b400da1af07d5

Written on August 6th, 2008 at 5:59 pm by Shunmugha

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:


 Message Passing

, , ,

Be the first to start a conversation

Leave a Reply