title: Creating Chrome popup with a C++ program
body: <p><strong>Problem context:</strong> </p>
  
  <p>I have a C++ program and a web presence. Currently the way things are working I have made a control panel with javascript and html. And it send commands via an unimportant communication medium to control things or get information from the C++ program.</p>
  
  <p>Now, when the C++ program launches, I'm making it run a </p>
  
  <pre><code>ShellExecute(NULL, "open", addressBuffer," --new-window", NULL, SW_NORMAL);
  </code></pre>
  
  <p>This is a way of launching the default browser with the given address. The addressBuffer in this case points to an intermediate HTML file that quickly turns around and uses the </p>
  
  <pre><code>window.open()
  </code></pre>
  
  <p>in Javascript to open the final popup, then closes itself.</p>
  
  <p>The result is the user now has the popup control panel that I want them to have but the user's main browser window also gets given focus, un-minimized, and placed on a different tab than the one they had selected. (Basically pops up out of nowhere and selects a another tab)</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>I'm looking for a way to launch a Chrome popup, without disturbing a previously open browser window. Any ideas or solutions would be very helpful.</p>
  
  <p>Lastly, it's worth noting that the " --new-window" from the code above doesn't actually open a new window like you would expect. In this case it's actually doing nothing... If it did work, none of this would really be an issue.</p>
  
  <p>I know this is wordy so thanks in advance for you time!</p>
  
  <p>-Michael</p>