title: How can you run a script while keeping the window minimized using VBScript?
body: <p>I have scripted automatic key presses to retrieve information from a form in MS Access, however the script opens the Access window and keeps it open while I continue to pull information from it... </p>
  
  <p>so my question is, how can I run this script that uses key presses ( .sendkeys ) even if the window was minimized?</p>
  
  <pre><code>WshShell.Run "C:\Users\ashleyl\Desktop\AquaProd.lnk"
  
  WshShell.SendKeys "{LEFT}"
  WshShell.SendKeys "{ENTER}"
  WshShell.SendKeys "^{f}"
  WshShell.SendKeys patch
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{UP}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{ENTER}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{ENTER}"
  
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "{TAB}"
  WshShell.SendKeys "^{c}"
  WshShell.Sendkeys "^{TAB}"
  WshShell.Sendkeys "^{TAB}"
  WshShell.Sendkeys "{TAB}"
  </code></pre>
  
  <p>This is just an example of some of the key presses.</p>