In an Win/IE environment with the right settings you can fire up a .exe file.
The following code runs fine to fire up Microsoft Lync (the new name for Office Communicator).
...
<a href="#" onclick="fnShellExecute();">start chat</a>
</body>
</html>
<script type="text/javascript">
function fnShellExecute()
{
var objShell = new ActiveXObject("shell.Application");
objShell.ShellExecute("communicator.exe", "", "C:\Program Files (x86)\Microsoft Lync", "open", 10);
}
</script>
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).
Does anyone know how to adjust this line in the javascript to open a Lync chat window to a specified contact?
objShell.ShellExecute("communicator.exe", "", "C:\Program Files (x86)\Microsoft Lync", "open", 10);
Or if there is another way to open Lync in chat mode via some kind of shortcut?
Thank you in advance.