title: VBS how to paste user input?
body: <p>I want to get my vbs program to ask for user input using the command</p>
  
  <pre><code>Sl = InputBox("type something")
  </code></pre>
  
  <p>I then need later on to write down the user input into a link like</p>
  
  <pre><code>WshShell.SendKeys ("www.")
  WScript.Sleep 200
  WshShell.SendKeys ("{&amp;Sl}")
  WScript.Sleep 200
  WshShell.SendKeys (".com")
  </code></pre>
  
  <p>but I can't get it to work</p>
  
  <p>Here is the complete code that I used:</p>
  
  <pre><code>Set WshShell = WScript.CreateObject("WScript.Shell")
  WScript.Sleep 1000
  test = InputBox("noget")
  WshShell.SendKeys("^{Esc}")
  WScript.Sleep 1000
  WshShell.SendKeys ("" &amp; test &amp; "")
  WScript.Sleep 200
  </code></pre>