title: VBScript - Alternative to SendKeys
body: <p>I have noticed that SendKeys inside a VBScript does not work when the user is not logged in or the script is being executed as LOCAL SYSTEM.</p>
  
  <p>Example:</p>
  
  <pre><code>set WshShell = WScript.CreateObject("WScript.Shell")
  WshShell.SendKeys "telnet 192.168.1.50"
  WshShell.SendKeys "{ENTER}"
  WshShell.SendKeys "some telnet command"
  WshShell.SendKeys "{ENTER}"
  WshShell.SendKeys "another telnet command"
  WshShell.SendKeys "{ENTER}"
  </code></pre>
  
  <p>Is there any other way to send keys to an application? SendInput does not seem to work in a .vbs file...</p>