如何在 Outlook 2013 收件箱中在“全部”和“未读”之间切换?

Are*_*Are 5 microsoft-outlook-2013

我想仅使用键盘和单个组合键(例如 Ctrl+Shift+A 和 Ctrl+Shift+U(仅作为示例))在 Outlook 2013 收件箱中查看所有电子邮件和仅查看未读电子邮件之间进行切换。

是否有这样的快捷方式,或者是否可以创建一个?

我最接近的是按 Ctrl+E 转到搜索框,然后按 Shift+Tab 跳转到“未读”,再次按 Shift-Tab 转到“全部”,然后按空格键进行选择。麻烦!

小智 1

您可以在AutoHotkey中映射一些简单的宏,如下所示:

#SingleInstance
#Persistent
SetTitleMatchMode 2

Hotkey, IfWinActive, Outlook ahk_class rctrl_renwnd32, NUIDocumentWindow
Hotkey, +u, ViewUnreadLabel
Hotkey, +a, ViewReadLabel
Hotkey, IfWinActive

SafeToRunMacro() {
    IfWinActive, ahk_class rctrl_renwnd32
    {
        ControlGetFocus, CurrentCtrl
        CtrlList = Acrobat Preview Window1,AfxWndW5,AfxWndW6,EXCEL71,MsoCommandBar1,OlkPicturePreviewer1,paneClassDC1,RichEdit20WPT2,RichEdit20WPT4,RichEdit20WPT5,RICHEDIT50W1,SUPERGRID1,SUPERGRID2,AfxWndW16,OutlookGrid1,NetUIHWND4
        if CurrentCtrl in %CtrlList%
        {
            Return, True
        } else {
            Return, False
        }
    }
}

ViewUnreadFunc(NormalKey) {
    if SafeToRunMacro() {
        ControlClick, OutlookGrid1, ahk_class rctrl_renwnd32,,,, NA x60 y5
    } else {
        Send %NormalKey%
    }
}

ViewReadFunc(NormalKey) {
    if SafeToRunMacro() {
        ControlClick, OutlookGrid1, ahk_class rctrl_renwnd32,,,, NA x5 y5
    } else {
        Send %NormalKey%
    }
}

ViewUnreadLabel:
    ViewUnreadFunc(A_ThisHotkey)
Return

ViewReadLabel:
    ViewReadFunc(A_ThisHotkey)
Return
Run Code Online (Sandbox Code Playgroud)

如果您有兴趣,可以将其编译为 .exe 文件,并在每次启动 PC 时启动它。我目前正在努力将其实现到我的 Outlook GTD 工具中。如果您有兴趣,可以访问AutoGTD.com了解更多信息