title: Vbscript. How do you sendkeys to a SWbemObject?
body: <p>I feel like this should be easy, but I haven't figured it out yet.</p>
  
  <p>I have an executable that is already running when I run my vbscript. I want to find the executable and call sendkeys to give it input.</p>
  
  <p>Here is what I have so far:</p>
  
  <pre><code>dim service, Process, myObject
  
  set service = GetObject ("winmgmts:")
  
  for each Process in Service.InstancesOf ("Win32_Process")
      if Process.Name = "abc.exe" then
          myObject = Process
      end if
  next
  myObject.SendKeys "This is a test."
  </code></pre>
  
  <p>This doesn't work, but I think it would look similar to this. I basically just want to sendkeys to myObject.</p>
  
  <p>NOTE: I do not want to run a new instance of abc.exe, I want to send input to the one that is already running</p>