add option to right click in Outlook 2016 on windows 10 ver 2004 x64


  1. Posts : 232
    Win 10 Ver 1903
       #1

    add option to right click in Outlook 2016 on windows 10 ver 2004 x64


    This probably can't be done anyway
    In any Outlook email that contains a hyperlink , if you right click it you have a few option. Select, Open, Copy and Who is.

    none of the functions of Outlook have ever been stored in the registry AFAIK and I have no idea if adding the option of Open using Incognito or "InPrivate" to right click hyperlinks in email can be done at all.

    There have been times i would like to open a link but want to do so using Incognito if possible. Copying the link and pasting it into chrome opened using incognito mode is harder than it could be. This is for Desktop Outlook 2016 not the WebPortal.

    To be honest, it would be nice to have the same choice on any place I open a Hyperlink. An added choice to open "InPrivate" for Edge or "Incognito" for Chrome in the right click selections would be handy. I think i can manage to do that for URL's on my desktop by tweaking the registry but adding the same right click options in an email is not going to be easy if even possible
      My Computer


  2. Posts : 43,025
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    Hi, considering e.g. Chrome: the command line invocation includes a parameter to open it in incognito mode:

    A list of useful Google Chrome command line switches - gHacks Tech News

    Thus if you were to be able to add any context menu entry in Outlook, you should be able to construct one that does when you want.

    This would relatively easy in a normal Windows scenario (rather than an application-specific one).

    Thunderbird did have add-ons for amending context menus but these are now obsolete. I have no idea as to the situation with Outlook.
      My Computers


  3. Posts : 1,223
    W10-Pro 22H2
       #3

    I don't know any way to modify or add to the rt-click options in Outlook (in my case 2010). However, if you are prepared to use VBA, the following code will work[*] if you first copy the url to the clipboard using the existing rt-click option:
    Code:
    Public Sub link()
    '20/6/20: MNG: attempt to open browser at selected link in private window'
    Dim item As DataObject, s As String
     Set item = New DataObject
     item.GetFromClipboard
     s = item.GetText
     ShellExecute 0, "open", "C:\Program Files\Mozilla Firefox\Firefox.exe", "-private-window " & s, "", vbNormalNoFocus
     Set item = Nothing
    End Sub
    You will need to declare the ShellExecute function first, outside any subs:
    Code:
    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _
     (ByVal hwnd As Long, _
      ByVal lpOperation As String, _
      ByVal lpFile As String, _
      ByVal lpParameters As String, _
      ByVal lpDirectory As String, _
      ByVal nShowCmd As Long) _
    As Long
    I have only tried the code for Firefox (as that is what I use). I know Chrome allows the -incognito parameter, I don't know about Edge. I completely failed to get the same thing to work using the default browser, eg:
    Code:
    ShellExecute 0, "Open", " -private-window " & s, "", "", vbNormalNoFocus
    It didn't matter how I played with adding the 'private' bit (before or after the url (in my case 's'), or as the 4th parameter) - nothing worked. I know that hard-coding the path to Firefox is a cludge.

    So you would have to put the link in the clipboard, then click on a button for the macro - I keep my few in the Quick Access toolbar. Still a pain, but maybe this is enough to get you going?

    hth, Martin
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 03:24.
Find Us




Windows 10 Forums