Jump to content

Recommended Posts

Posted

Hi, i've been trying to get text from active Outlook 2013 window to read the mailbody text but it seems i need to do it with com instead, but how do i create the object from the active window and only if it's an actual active window of a mail only then retrieve the text in the body?

Any pointers were to start even would be helpful

Thanx !

Posted

Use my OutlookEX UDF ;)

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Yeah that would be cool if i knew how to connect to the active object still.

Like i know how to open the recent mail like this:

Global Const $InBox = 6

Global $outlook = ObjCreate("Outlook.Application")
Global $NameSpace = $outlook.GetNamespace("MAPI")

$InboxItems = $NameSpace.GetDefaultFolder($InBox).Items

;MsgBox(0,"",$InboxItems.Count)

Local $myFolder = $NameSpace.GetDefaultFolder($Inbox)
Local $myItem = $myFolder.Items($InboxItems.Count)

$myItem.Display

But if i allready have a mail open, how do i retrieve that info into a variable?

Edited by smellyfingers
Posted

I'm not in my office at the moment but I think you need the ActiveInspector method.

My UDFs and Tutorials:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...