title: SendKeys in c# - not able to send multiple keys
body: <p>I am actually activating the button click event of the VB application through my c# code - I have created shortcut key of the button click and calling with the help of below code.</p>
  
  <p>The code is working fine but button 2 click event is not firing.</p>
  
  <p>1.Step - to call the Click event of button1 of VB project</p>
  
  <pre><code>  ProcessStartInfo startInfo = new ProcessStartInfo();
    startInfo.FileName = @"C:\New\MyProj.exe";
    Process process = Process.Start(startInfo);
    IntPtr h = process.MainWindowHandle;
    SetForegroundWindow(h);
    // Send it Alt-X
    SendKeys.SendWait("%x");
    Thread.Sleep(30000);
  </code></pre>
  
  <p>2.Step - to call one bat file </p>
  
  <pre><code>  Process process1 = null;
    ProcessStartInfo startInfo1 = new ProcessStartInfo();
    startInfo1.FileName = @"C:\App\Test.bat";
    process1 = Process.Start(startInfo1);
    Thread.Sleep(10000);
  </code></pre>
  
  <p>3.Step - to call the Click event of button2 of VB project</p>
  
  <pre><code>   //again i am setting main window as my VB project and calling another click event.
     SetForegroundWindow(h);
     SendKeys.SendWait("%h");
     Thread.Sleep(10000);
  </code></pre>
  
  <p>The last click event is not working, why? - Alt +h is not firing</p>