Wetrel
Wetrel

Reputation: 85

Simulate Enter Key

Is there a way to simulate the enter key in VBScript? Ex.:

set shl = createobject("wscript.shell")
shl.sendkeys "SIMULATED ENTER"

Upvotes: 5

Views: 35241

Answers (2)

TimKun 33
TimKun 33

Reputation: 1

The vbscript to press enter key working!

Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.SendKeys "{ENTER}"

Upvotes: 0

user69820
user69820

Reputation:

try {ENTER}, ie

shl.SendKeys "{ENTER}"

here's my reference http://www.computerperformance.co.uk/ezine/ezine120.htm

Upvotes: 7

Related Questions