locked
[SOS]The custom menu in Tools menu does not work RRS feed

  • Question

  • Hi guys,

    Firstly I want to say is that I really want your help, if I cannot figure it out, my boss will fire me tomorrow.

    I know how to add custom menus to Lync client menus like below:
    http://msdn.microsoft.com/en-us/library/hh378573%28v=office.14%29.aspx

    But the custom menu only works in the place when I right click the contact.  On the rigth-top of the Lync client,  click Tools-->My Custom Menu, nothing happens, my custom application cannot be loaded.


    For example, I want to add this "Export Lync contacts" menu to the Tooks menu:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Communicator\SessionManager\Apps\{5E0352E8-21F3-4E00-AA46-2ADA7085C9AD}]
    "Name"="Export Contacts"
    "ApplicationType"=dword:00000000
    "ApplicationInstallPath"="C:\\Program Files\\Microsoft Lync\\Export\\ExportDemo.exe"
    "Path"="\"C:\\Program Files\\Microsoft Lync\\Export\\ExportDemo.exe\" %user-id% %contact-id%"
    "SessionType"=dword:00000000
    "ExtensibleMenu"="ContactCardMenu;MainWindowActions;ConversationWindowRightClick;MainWindowRightClick;ConversationWindowActions"


    But when I click "Export Lync contacts" in the Tools menu, nothing happens.
    The question is simple, how can i load my custom application in the Tools menu?

    zhou

    Monday, January 21, 2013 3:33 AM

Answers

  • I suggest:

    1. take a look at the article here:  Starting Custom Applications from the Lync 2010 User Interface, and then SIMPLIFY what you're trying to execute - as follows:
    2. try using ONLY the following 4 subkeys: Name, Path, ApplicationType, ExtensibleMenu
    3. try placing the .exe at the root on your c: (c:\ExportDemo.exe) and delete the added user-id and contact-id parameters in the 'Path' subkey
    4. try using ONLY the MainWindowActions value in the ExtensibleMenu subkey (you want the menu item to appear in the Tools menu, right? -- see the 1st example in the article link above.)

    • Marked as answer by zhaomin Thursday, January 24, 2013 3:50 AM
    Tuesday, January 22, 2013 4:05 PM
  • The following code works like a charm:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Communicator\SessionManager\Apps\{4E0442E8-21F3-4E00-AA46-2ADA7085C9AD}]
    "Name"="Import contacts"
    "ApplicationType"=dword:00000000
    "Path"="\"C:\\Program Files\\Microsoft Lync\\Import\\ImportDemo.exe\""
    "SessionType"=dword:00000000
    "ExtensibleMenu"="MainWindowActions"


    zhou


    • Marked as answer by zhaomin Thursday, January 24, 2013 3:52 AM
    • Edited by zhaomin Thursday, January 24, 2013 3:54 AM
    Thursday, January 24, 2013 3:50 AM

All replies

  • I suggest:

    1. take a look at the article here:  Starting Custom Applications from the Lync 2010 User Interface, and then SIMPLIFY what you're trying to execute - as follows:
    2. try using ONLY the following 4 subkeys: Name, Path, ApplicationType, ExtensibleMenu
    3. try placing the .exe at the root on your c: (c:\ExportDemo.exe) and delete the added user-id and contact-id parameters in the 'Path' subkey
    4. try using ONLY the MainWindowActions value in the ExtensibleMenu subkey (you want the menu item to appear in the Tools menu, right? -- see the 1st example in the article link above.)

    • Marked as answer by zhaomin Thursday, January 24, 2013 3:50 AM
    Tuesday, January 22, 2013 4:05 PM
  • Followup question: "I assume this is Lync 2010?"
    Tuesday, January 22, 2013 4:06 PM
  • The custom menu will be available in the forthcoming general release of the Lync client 2013 SDK.  The preview SDK, which you are using today, does not have this feature.

    John Austin Senior Programming Writer Microsoft

    • Proposed as answer by John M. Austin Tuesday, January 22, 2013 5:48 PM
    Tuesday, January 22, 2013 5:47 PM
  • Hi John Clarkson

    yes,  I am working on Lync2010, I will try your ideas immediately and let you know the result. Thanks so much

     

    zhou

    Thursday, January 24, 2013 2:37 AM
  • Hi John M.Austin,

     You said "The custom menu will be available in the forthcoming general release of the Lync client 2013 SDK"?

    But I can also add the custom menu to Lync 2010, when i  right click the contact, and choose my custom menu, it works. The only issue i am facing right now is I cannot load my custom application from Tools-->Custom Menu.

    Any ideas? Thanks for you help and reply.


    zhou

    • Marked as answer by zhaomin Thursday, January 24, 2013 3:51 AM
    • Unmarked as answer by zhaomin Thursday, January 24, 2013 3:51 AM
    Thursday, January 24, 2013 2:40 AM
  • The following code works like a charm:

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Communicator\SessionManager\Apps\{4E0442E8-21F3-4E00-AA46-2ADA7085C9AD}]
    "Name"="Import contacts"
    "ApplicationType"=dword:00000000
    "Path"="\"C:\\Program Files\\Microsoft Lync\\Import\\ImportDemo.exe\""
    "SessionType"=dword:00000000
    "ExtensibleMenu"="MainWindowActions"


    zhou


    • Marked as answer by zhaomin Thursday, January 24, 2013 3:52 AM
    • Edited by zhaomin Thursday, January 24, 2013 3:54 AM
    Thursday, January 24, 2013 3:50 AM