0

I have shortcuts within Outlook 2010, but I don't like that the combos within are three button combos (Ctrl+Shift+9). So, I want to have hotkeys to those shortcuts when Outlook is active. My code is below, why isn't it working?

;++++++++++++++++++++++++++++++++++++++;
;OutlookShortcuts;                     
SetTitleMatchMode, 2                   
GroupAdd, shortcut, - Microsoft Outlook   
#IfWinActive, ahk_group shortcut
!c::^+7 ;move to inbox;
!d::^+6 ;mark as unread;                            
!e::^+5 ;mark as read;
return                        
4

2 回答 2

0

我会这样尝试:

;++++++++++++++++++++++++++++++++++++++;
;OutlookShortcuts;                     
SetTitleMatchMode, 2                   
GroupAdd, shortcut, ahk_exe Outlook.exe   
#IfWinActive, ahk_group shortcut
!c::^+7 ;move to inbox;
!d::^+6 ;mark as unread;                            
!e::^+5 ;mark as read;
#If

事实ahk_exe证明,用于指定窗口对我非常有帮助。我不认为return可以用来结束一个#If something区域。我有点惊讶它没有抛出错误。祝你好运!让我们知道它是否仍然无法正常工作。

于 2013-09-09T21:31:27.987 回答
0

谢谢@gunr2171!下面的代码对我有用!它与@Paul 几乎相同,只是去掉了一条不必要的行,下一行有一个编辑。

;++++++++++++++++++++++++++++++++++++++;
;OutlookShortcuts;                     
SetTitleMatchMode, 2                     
#IfWinActive, ahk_exe Outlook.exe
+c::^+7 ;move to inbox;
+d::^+6 ;mark as unread;                            
+e::^+5 ;mark as read;
#If

;======================================;
于 2013-09-10T16:04:17.960 回答