Saturday, July 24, 2010

VBS Script for Sending Key Strokes to Windows

Simply put, this script uses the sendkeys command to send various keystrokes to Windows.

set shl = createobject("wscript.shell")
shl.sendkeys "~"
wscript.sleep 1000
shl.sendkeys "~"
wscript.sleep 1000
shl.sendkeys "test"
wscript.sleep 1000

No comments:

Post a Comment