lync extension development - lync-2010

Could anyone please send me some urls or code samples for develop extension for lync 2010.
I mean development some tools which can integrated into lync 2010 as extension.
add a menu or button to lync 2010, when click the menu or button, the customerized tool will popup.
Thanks a lot.

You've got 4 options:
1 - Add a custom menu item to either the main Lync window or a conversation window.
2 - Create a Conversation Window Extension to host your custom functionality. This is a Silverlight or HTML application that can be hosted inside a conversation window. Note, this can only be applied to a conversation window, and not to the main Lync window.
3 - Create a Silverlight or WPF application that contains your custom functionality, and then automate Lync from that application
4 - Probably a bit extreme depending on what you're trying to achieve, but you could run Lync in UI suppression mode, and then create your custom functionality in an application that also uses Lync for communication related tasks - but in this case, you'll have to provide all the communication UI (e.g. conversation windows) yourself.
The Lync SDK can be downloaded here - This contains sample code and walkthroughs, and should be enough to get you started.

You can find a solution at
http://visualstudiogallery.msdn.microsoft.com/29576efc-0d12-4ad8-8ace-6a9a63275a57
Using this package, you can add custom tab functionality to lync 2010 client.

Related

In a Microsoft Office Add-in, is there a way to access whether the window is active/focussed?

I am developing an Add-in for Microsoft Word (desktop and web versions). The add-in will feature a timer and a requirement is for the timer to pause when the user navigates away from the window.
I can detect navigation away from the Add-in pane using "focus" and "blur" event listeners on the global window object. Is there a way to do the same for the Word application itself, both desktop and web versions?
I have tried the accepted solution from this question, trying both document.onvisibilitychange and document.addEventListener("visibilitychange"), but not able to get either of those events to trigger: MS Word Online add-in: How to detect focus?

Add-in disappearing from customers' ribbon in Word desktop

We are getting an increased number of reports from customers that our add-in sporadically disappear from the ribbon in Word. It is a problem for us as people don't use what they can't see and many are very un-tech savvy and don't know how to reactivate add-ins (especially if they are used to have their central admin push them out to them).
Is this a known issue? Is there any setting in the manifest file that we might have missed? We would appreciate any information that might point us in the right direction to solve this.
First of all, I'd suggest making sure the add-in is available and loaded by host application.
Second, I'd recommend checking whether any ribbon UI errors are thrown by the host application. By default, if an add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear.
To show add-in user interface errors you need to start the application and configure the following option:
Click the File tab.
Click Options.
In the categories pane, click Advanced.
In the details pane, select Show VSTO Add-in user interface errors, and then click OK.
See How to: Show Add-in user interface errors for more information.

office js change DOM loaded in task pane

I'm developing an office add-in using office-js (not using VSTO) and I want to access the DOM loaded in the task pane from the java script function-file used in the manifest extension points .
Yes, you can access the DOM loaded in the task pane from your JavaScript function-file. Think of it as if you have two browser windows or tabs and you want to communicate between them. Since the windows don't have access to a reference for one another, postMessage isn't a good solution. One option would be to use localStorage, which triggers an event on all same-domain pages when it changes.
Yes, you can access the DOM loaded in the task pane from your JavaScript function-file. Think of it as if you have two browser windows or tabs and you want to communicate between them. One option would be to use the postMessage() API to notify the task pane and include any information you'd like.
Edit: see my other answer: this solution isn't feasible since the window reference isn't available.

Adding custom toolbar and docking your app to Lync Client main window

I looked over the internet to find out how to add a custom toolbar to Lync client main window as well as to doc my web application to the main window when it triggered by a button on the custom toolbar.
I couldn't find how to implement the functionality, although I could find on youtube Avaya and prairieFyre presentations of their client side with custom toolbars and docked application, so I assume it is doable.
Could somebody refer me to where I can find some info on how to implement that?
Thank you.
This is doable, but not supported by Microsoft. I'd imagine it's done by using Win32 calls to find the Lync windows, and the calling SetParent on your own window to tie the two together - but I haven't tried it.
For a list of supported extensibility points, take a look at this post

how to add a tab into lync 2010 client

Thanks First.
Could any one tell me some reference urls or docs to implement this function.
Add a customerized winform tab into lync 2010 client.
(in the main window, not the contact window extension.)
There is no way to do this unfortunately. Previous versions of Lync (actually, Office Communicator) let you add custom UI similar to what you are describing, but this functionality has been removed in Lync.
This document (http://technet.microsoft.com/en-us/library/gg398300.aspx) suggests you can add custom tabs using the -TabUrl parameter, but actually this is an error in the documentation, as the Lync client does not support it.