Outlook COM selected email Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
euras
Posts: 392
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”

Who is online

Users browsing this forum: Bing [Bot], flyingDman, Google [Bot], nohofako, SOTE, vakacjus and 226 guests