Outlook COM selected email Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
euras
Posts: 429
Joined: 05 Nov 2015, 12:56

Outlook COM selected email  Topic is solved

23 Jan 2019, 03:32

Hi, how to read the email, I have selected, but not doubleclicked to open it on the new window? The following code read the email, which I open in a separate window, but how to read the one, I have selected in inbox and which appeared on the right side of application (uploads the email body)?

Code: Select all

ol := ComObjActive("Outlook.Application").ActiveInspector.CurrentItem
MsgBox, % ol.Body
SOLVED:

Code: Select all

ol := ComObjActive("Outlook.Application").ActiveExplorer.Selection.Item(1)
MsgBox % "Sender: " ol.ReceivedByName "`r`nReceived Time:`r`n" ol.ReceivedTime "`r`nSubject:`r`n" ol.Subject "`r`nBody:`r`n" ol.Body 

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Exies, Google [Bot], JoeWinograd, scriptor2016 and 101 guests