Reputation: 85
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
Reputation: 1
The vbscript to press enter key working!
Set WshShell = WScript.CreateObject("WScript.Shell") WshShell.SendKeys "{ENTER}"
Upvotes: 0
Reputation:
try {ENTER}
, ie
shl.SendKeys "{ENTER}"
here's my reference http://www.computerperformance.co.uk/ezine/ezine120.htm
Upvotes: 7