Outlook 2013 single key shortcut - outlook

I'm trying to build a Outlook 2013 plugin using VSTO , when a user press a single key (not a combination of keys) do something
Any suggestion how to do that ?
Thanks,
Marius

VSTO doesn't provide anything for that. You need to use Windows API to set up a keyboard hook. See Using shortcut keys to call a function in an Office Add-in for more information.

Related

Outlook Add-In manual load > Not a valid Office Add-In

I am working on an Outlook Add-in which works perfectly when loaded from the registry but it seems impossible to load it manually. When trying from the Outlook File > Options > Add-Ins > "Manage -> Go..." and manually select the dll or Vsto file, I receive the message "MyAddIn is not a valid Office Add-In".
I tried with admin right on the machine.
Any idea why?
You need to add windows registry keys before. See Registry entries for VSTO Add-ins for more information.
If you want to add and load your add-in manually make sure the assembly you point implements the IDTExtensibility2 interface. Otherwise, you will end up with an error message. In the case of VSTO add-ins, you may try to point to the .vsto file.

Button in ribbonbar for Outlook 2013

I try to develop a Outlook Add-Ins (pure js/html app), not an VSTO / COM app with c#.
I found a way to add a button to the ribbonbar, but it seems to be only for Outlook 2016: https://msdn.microsoft.com/en-us/library/office/mt267546.aspx
But, is there a way to add a button in the ribbonbar for Outlook 2013?
Can't find anything even on dev.outlook.com...
You need to develop a COM add-in then (VSTO). See Walkthrough: Creating Your First VSTO Add-In for Outlook for more information.
There are two main ways for creating a custom UI in VSTO add-ins:
Walkthrough: Creating a Custom Tab by Using Ribbon XML
Walkthrough: Creating a Custom Tab by Using the Ribbon Designer
Moreover, your ribbon commands can be displayed for Exchange profiles only (where Office Apps can be run). But COM add-ins are run for all kind of profiles in Outlook.

Microsoft Outlook Customize Ribbon

here is the official documentation of how to add a button to the Ribbon in Microsoft Outlook which will invoke some macros written by developer on click, looks very simple:
https://support.office.com/en-us/article/Assign-a-macro-to-a-button-728c83ec-61d0-40bd-b6ba-927f84eb5d2c
this is actually what i want to do but not manually. Is there way to do this programatically? I've searched about it, but nothing came out of it(.Thanks in advance.
Ribbon can only be modified from a COM addin. Please see https://msdn.microsoft.com/en-us/library/bb398246.aspx

Prevent group rename in Outlook 2013 in VSTO Addin

I am developing a VSTO addin in Visual Studio 2013 for Outlook 2013. I add my own group to a few of the ribbons, such as the Home tab in Explorer view.
I would like to prevent anyone from renaming my group. Users can use the Customize Ribbon feature in Outlook to manage groups and commands and I can easily rename, move, or remove the group by customizing it.
Is there a way I can attach to an event and prevent the user from renaming my group (I would prefer to be able to prevent them from removing/hiding my group too).
I have looked through the Outlook 2013 Object Model list and I cannot find any relevant events to attach to. I don't see any Group objects or anything that looks relevant.
Is there a way I can attach to an event and prevent the user from renaming my group
The Fluent UI (aka Ribbon UI) nor the Outlook object model doesn't provide anything for that.
You may consider hiding the button in Outlook (on the backstage UI) for showing the options dialog instead.

Is Ctrl+PageUp/PageDown working in Visual Studio 2010?

I checked the default shortcuts and they show up in the global context, but I am still not able to switch between tabs using these keys.
Any ideas why they are not working?
There is a solution (utilizing the "Productivity Power Tools" extension) outlined in a reply to a similar question.
I found that using the "Press shortcut keys:" and "Shortcut currently user by:" controls in the options dialog (Tools->Options->Environment->Keyboard) helped me identify problematic duplicate mappings quickly.

Resources