Friday, 16 August 2019

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


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!



Answer



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

No comments:

Post a Comment

How can I VLOOKUP in multiple Excel documents?

I am trying to VLOOKUP reference data with around 400 seperate Excel files. Is it possible to do this in a quick way rather than doing it m...