blitzkrg Posted August 24, 2007 Share Posted August 24, 2007 I'm a complete noob with com, so sorry if this is a stupid question.I'm trying to script something for outlook.and based on this posthttp://www.autoitscript.com/forum/index.php?showtopic=35965i can see the constants (properties?)for example.i see Global Const $olMailItem = 0but looking at a vb scripti see thistheMailItem.Recipients.Add "user@somewhere.com" theMailItem.Subject = "Your Subject Here" theMailItem.Body = "Your message here." theMailItem.Sendhow do i find the .subject the .body the .sendhow do i find those commands?I used the OLE viewer as described in the autoit help file.but it doesn show the (items are they called?) .send .body, etc etc.thanks Link to comment Share on other sites More sharing options...
kjactive Posted August 26, 2007 Share Posted August 26, 2007 (edited) Outlook provides many classes which you can interact. The following sections briefly describe some of the top-level classes, these classes include:Microsoft.Office.Interop.Outlook.Application Microsoft.Office.Interop.Outlook.Explorer Microsoft.Office.Interop.Outlook.Inspector Microsoft.Office.Interop.Outlook.MAPIFolder Microsoft.Office.Interop.Outlook.MailItem Microsoft.Office.Interop.Outlook.AppointmentItem Microsoft.Office.Interop.Outlook.TaskItem Microsoft.Office.Interop.Outlook.ContactItem and you'll have to include, open and make a pool with the ones you want to interact, just like the OVCtl.OVCtl.1 or the Outlook.Application component. Goggle serarch would do no harm and you'll find lots of relevant documentation...kjactive Edited August 26, 2007 by kjactive 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...
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