Custom one-key keyboard shortcuts in Outlook 2010 or 2013?

18

4

I'm a gmail junkie, and one of my favorite features is the keyboard shortcut "a" inside an email to archive the message. I can't remember if that was the default or if I set it to such a quick little keypress, but by now it's totally ingrained in my memory.

I'm setting up Outlook 2010 (or 2013) for work, and set up a similar "quick step" to archive, mark as read, and mark as complete any email.

It would be great, except for keyboard shortcuts they only give the option for "CTRL + SHIFT + 1" and other number key options. With a keyboard shortcut that convoluted, I'm not going to remember it and might as well just reach for my mouse.

Is there any way to set custom keyboard shortcuts for Outlook 2010? I want one-key shortcuts, not 3-keys-at-once!

ck_

Posted 2010-10-25T22:00:25.427

Reputation: 353

Answers

8

I also thought that a shortcut where you have to press three keys at once was too difficult!

My solution was also in AutoHotKey. First you set the title match mode to RegEx because then you can match the titles through a regular expression. Put the following near the top of your script:

SetTitleMatchMode RegEx

And here is the shortcut which should only work in Outlook 2010 (note that I am using Control + Shift + 9):

#IfWinActive Inbox.*Microsoft Outlook
a:: SendInput ^+9
#IfWinActive

For Outlook 2013, the regex needs to be modified slightly:

#IfWinActive Inbox.*Outlook
a:: SendInput ^+9
#IfWinActive

Tahir Hassan

Posted 2010-10-25T22:00:25.427

Reputation: 305

Caveat emptor. Using the reading pane seems to break these snippets since the active window title does not change. – iPaulo – 2014-07-25T18:45:13.823

iPaulo - true, but I only use them from the main window so it works for me. BTW, I use CapsLock & a not just a for the hotkey. – Tahir Hassan – 2014-07-26T22:23:02.037

What if I'm typing an email within the main window of Outlook 2013? Seems like this approach won't work, since pressing "a" will trigger the shortcut. Do you know of any way to detect this using AutoHotkey? – Mikhail – 2016-03-09T10:27:06.670

@Mikhail - its quite easy to use another shortcut like Alt-a which would be !a. See https://autohotkey.com/docs/Hotkeys.htm for more info.

– Tahir Hassan – 2016-03-09T10:33:02.373

8

  1. Open a new email
  2. Right-click on the Quick Access Toolbar and select Customize Quick Access Toolbar.
  3. Under Choose commands from, select All Commands.
  4. Select Signature and click the Add button.
  5. Click OK

If you had the default five items in your Quick Access Toolbar, Signature will now be #6. Access it by pressing Alt+6. Note that if you are in the Calendar then you need to release Alt before pressing 6.

Don

Posted 2010-10-25T22:00:25.427

Reputation: 89

4

You can use Autohotkey to make any shortcut you want. It's very easy to learn, they have a good enough documentation

Note: Use #IfWinActive / #IfWinExist to target Outlook or any other program specifically.

Lombas

Posted 2010-10-25T22:00:25.427

Reputation: 396

@blackmastiff I tried to switch Outlook from reading mode to typing reply mode - Window Spy detected no changes at all. Any other ideas? I only can think of inspecting windows hierarchy or pixel colors (which is not robust). – Mikhail – 2016-03-09T10:32:22.337

1Thanks, and I actually have a few autohotkey scripts running... I foresee trouble, though, changing something as simple as the "a" key into a command. It would have to be limited to Outlook firstoff, and only when a textfield doesn't have focus. Might be possible with advanced autohotkey, but not simple. – ck_ – 2010-10-26T00:10:46.003

1

I think that you could achieve what you wanted simply using the Window Spy in AutoHotKey to find out what the whole window is defined as, and then using IfWinActive to make it only apply in certain window classes. See this page for details. http://www.autohotkey.com/docs/commands/IfWinActive.htm

– blackmastiff – 2010-12-13T04:37:51.483

1

Actually OS X itself allows you to do this for any app for any menu item using the Keyboard/Mouse system prefs pane. For details see:

http://lifehacker.com/343328/create-a-keyboard-shortcut-for-any-menu-action-in-any-program

Jon

Jon

Posted 2010-10-25T22:00:25.427

Reputation: 111

0

Thierry Dalon

Posted 2010-10-25T22:00:25.427

Reputation: 161

-2

Like this:

Opt("WinTitleMatchMode", 2)
HotKeySet("{INSERT}", "captureIns")
Func captureIns()
    HotKeySet("{INSERT}")

   if (WinGetState("Microsoft Outlook") == 15) Then
      Send("{CTRLDOWN}")
      Send("{SHIFTDOWN}")
      Send("1")
      Send("{SHIFTUP}")
      Send("{CTRLUP}")
   EndIf

   HotKeySet("{INSERT}", "captureIns")
 EndFunc

while 1
   sleep(100000000)
WEnd

Stefan M.

Posted 2010-10-25T22:00:25.427

Reputation: 1

7This reply is missing a context. Where should the code be written into? – pabouk – 2013-10-17T10:19:05.653