5

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

set shl = createobject("wscript.shell")
shl.sendkeys "SIMULATED ENTER"
Brian Webster
  • 30,033
  • 48
  • 152
  • 225
Wetrel
  • 85
  • 2
  • 2
  • 5

2 Answers2

7

try {ENTER}, ie

shl.SendKeys "{ENTER}"

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

0

The vbscript to press enter key working!

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

  • All Keys to press and their description: https://www.mediafire.com/file/ht33wetrwboplo6/PressAnyKey.png/file – TimKun 33 Sep 05 '21 at 10:56