title: C# Auto typing in a selected process
body: <p>So hey guys im trying to create an auto typer wich for example only auto types in Internet Explorer</p>
  
  <p>This script</p>
  
  <pre><code>Process[] processes = Process.GetProcessesByName("JLauncher");
  
  foreach (Process proc in processes)
      PostMessage(proc.MainWindowHandle, WM_KEYDOWN, detail, 0);
  
  int detail = 0x33
  </code></pre>
  
  <p>Basically this script presses 3 on the keyboard only in the process <code>JLauncher</code></p>
  
  <p>I was wondering if there's a way to combine this script with:</p>
  
  <pre><code>SendKeys.Send();
  </code></pre>
  
  <p>So basically:</p>
  
  <pre><code>Process[] processes = Process.GetProcessesByName("JLauncher");
  
  foreach (Process proc in processes)
      PostMessage(proc.MainWindowHandle, WM_KEYDOWN, SendKeys.Send("Hello"), 0);
  </code></pre>
  
  <p>I understand that this forum isnt for you guys to code stuff for others, but i really need a line of script for this</p>
  
  <p>Could anny1 help please?</p>