fhanna Posted December 7, 2007 Share Posted December 7, 2007 Currently my script right clicks on the body of the email and selects View Source and the body is loaded into Notepad. I then copy to the clipboard then from the clipboard to a variable. I would like to use an Outllook Com function to do the same. I have only found the general reference to do the following but need additional guidance: $oOutlook = ObjGet("","Outlook.application") $oNameSpace = $oOutlook.GetNamespace("MAPI") How do I read the body of the message. Is there a place I can find additional commands within the AutoIt3 coding scheme? Any and all comments are appreciated. Link to comment Share on other sites More sharing options...
kjactive Posted December 7, 2007 Share Posted December 7, 2007 hallo fhannaOutlook.application currently rev. 11 is a special component that come from OUTLOOK.EXE, there is a lot to deal with four or five componets, panels ec. that all has to be initiated sepparately...check this msnd outhttp://msdn2.microsoft.com/en-us/library/bb208225.aspx Au3PP 4.1 - Autoit3 preprocessor, optimize speed, performance to scripts and do executes....[/url]Au3Calibur - Create libraries of commonly used code excerptsWords manipulate UDF, functions that is lent from the rexx language, topics and index file includedCustomDialog UDF to include custom made dialogs like a extended colorpick requester to scripts...[url="ftp://fritidshjemmet.com/Autoit3/SysColor.zip"]SysColor UDF a low level color library to manipulate RGB and Hex values...Shell32 UDF to Automate Windows® operating tasks from native dialog and Wizards browsers... Optimized the CodeWicard with options to generate browser code etc... Link to comment Share on other sites More sharing options...
fhanna Posted December 7, 2007 Author Share Posted December 7, 2007 hallo fhannaOutlook.application currently rev. 11 is a special component that come from OUTLOOK.EXE, there is a lot to deal with four or five componets, panels ec. that all has to be initiated sepparately...check this msnd outhttp://msdn2.microsoft.com/en-us/library/bb208225.aspxThank you for the quick post and reference. There is a lot to deal with and is compounded due to converting it to AutoIt3 syntex. I'm just hoping for simple AutoIt coding to read the body to a variable. The primary purpose is to retrieve a URL and do some text comparasion.Thanks again for the link as I am sure it will be valuable as I learn the COM interfaces. Link to comment Share on other sites More sharing options...
Zedna Posted December 8, 2007 Share Posted December 8, 2007 (edited) Search forum for "Outlook.Application"Look here or here or here Edited December 8, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
UTA Posted December 10, 2007 Share Posted December 10, 2007 If you have a look to my example-code then it will be quite easy. To do what you want, you will have to use the object "MailItem.Body". How do I know? Just start Outlook and open up the Macro-Visual-Basic-Editor (Alt-F11) afterwards press F2 and you will see all available Outlook-Objects you can use. The "core-part" is usable for each Outlook version. UTA Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now