title: Can I open office communicator (Lync 2010) in chat mode?
body: <p>In an Win/IE environment with the right settings you can fire up a .exe file. </p>
  
  <p>The following code runs fine to fire up Microsoft Lync (the new name for Office Communicator). </p>
  
  <pre><code>...
      &lt;a href="#" onclick="fnShellExecute();"&gt;start chat&lt;/a&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;script type="text/javascript"&gt;
      function fnShellExecute()
      {
          var objShell = new ActiveXObject("shell.Application");
          objShell.ShellExecute("communicator.exe", "", "C:\Program Files (x86)\Microsoft Lync", "open", 10);
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>But I can't work out the parameters (or if it is possible) to create a shortcut that would open the Lync client with the chat box to another available user open.  Basically I know who is available and I want to be able to create (in HTML) a simple link that would open a chat window to that person (outside of WPF or Silverlight or any of the built in controls).</p>
  
  <p><strong>Does anyone know how to adjust this line in the javascript to open a Lync chat window to a specified contact?</strong></p>
  
  <pre><code>objShell.ShellExecute("communicator.exe", "", "C:\Program Files (x86)\Microsoft Lync", "open", 10);
  </code></pre>
  
  <p><strong>Or if there is another way to open Lync in chat mode via some kind of shortcut?</strong></p>
  
  <p>Thank you in advance.</p>