Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Outlook Preview pane pain
#1
I've got a macro that does this really nice process of grabbing the contents of an email while in the preview in Outlook. it does a findrx and loads up an Array with the values from the str var that the "get value" retrieves from the message except for this. the email is almost exactly 2 pages long and the code below only gets one page of the email. is there anyway i can make it get the entire email value regardless of how long it is?

thanks.
Code:
Copy      Help
Acc a=acc("" "TEXT" win("Inbox - Microsoft Outlook" "rctrl_renwnd32") "id=4100 RichEdit20WPT" "" 0x1804 0x40 0x20000040)
str value=a.Value
An old blog on QM coding and automation.

The Macro Hook
#2
Max text length that can be retrieved from an accessible object is 4095 characters. It is Windows limitation. Use str.getwintext if possible.

Code:
Copy      Help
Acc a=acc("" "TEXT" win("Document - WordPad" "WordPadClass") "RICHEDIT50W" "" 0x1800 0x0 0x20000040)
str s=a.Value
out s.len ;;4095
int hwnd=child(a)
s.getwintext(hwnd)
out s.len ;;14339
#3
works great!!!
thanks.
An old blog on QM coding and automation.

The Macro Hook
#4
Awesome, I had the same problem and this worked!!!! Helps us check our radiology reports for errors.


Forum Jump:


Users browsing this thread: 1 Guest(s)