title: Delphi DDE Open url in active tab
body: <p>I want to open url in already existing, active opera/IE/FF tab using delphi. </p>
  
  <p>I tried:</p>
  
  <pre><code>ShellExecute(hw,'open',pchar(url),nil,nil,SW_SHOWNORMAL);
  </code></pre>
  
  <p>where hw is handle of web browser and url is string variable with url I want to open, but it opens new tab instead of using active  tab.</p>
  
  <p>I also tried:</p>
  
  <pre><code>procedure SetURL(Browser, URL: String);
  var
    Client_DDE: TDDEClientConv;
  begin
    Client_DDE := TDdeClientConv.Create(nil);
    with Client_DDE do
    begin
      SetLink( Browser, 'WWW_Activate' );
      RequestData('0xFFFFFFFF');
      SetLink( Browser, 'WWW_OpenURL' );
      RequestData(URL);
      CloseLink;
    end;
    Client_DDE.Free;
  end;
  </code></pre>
  
  <p>And <code>SetURL('Opera', url);</code> in buttonclick procedure, but it also opens url in new tab. When I use <code>RequestData(URL + ',-1');</code> in SetURL procedure then it opens url in new window. Any ideas how to open url in already existing browser tab?</p>
  
  <p>I have Delphi 7.</p>