I am trying to mark emails as read in Outlook Desktop when I right click on an email in the email list.
I tried:
Code: Select all
#If WinActive("ahk_exe outlook.exe")
RButton::Send {LButton down}{LButton up}{LControl down}{q}{LControl up}
Return
Code: Select all
#If WinActive("ahk_exe outlook.exe")
RButton::
KeyWait LButton
Send ^q
Return
[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]
[Mod action: Moved topic to the v1 section since this is v1 code. The main section is for v2. Please post in the correct section going forward.]