I've searched the forum but couldn't find a topic about this
In Microsoft Outlook 2003, I can't seem to get the From nor Subject text of an email (in the "reading pane), even though I do have their unique Control names (RichEdit20WPT1 and RichEdit20WPT2 respectively).
Here's a sample usage:
Code:
SetTitleMatchMode,Slow
;VARIABLES
wintitle = Inbox - Microsoft Outlook
check:
WINWAITACTIVE,%wintitle%
GoSub,getheaders
Sleep,300
Goto,check
Return
GETHEADERS: ;will get subject, sender, email content
;get subject
ControlGetText, subjectfield,RichEdit20WPT1,%wintitle%
;get from field
ControlGetText, fromfield,RichEdit20WPT2,%wintitle%
;get body field
;ControlGetText, bodyfield,RichEdit20W5,%wintitle% <--this works
ToolTip, FROM: %fromfield%`n`nSUBJECT: %subjectfield%`n`nBODY: %bodyfield%
RETURN
Any other method/suggestion to retreive this info within Outlook? Thanks