Jump to content
Sign in to follow this  
blitzkrg

how do i find items?

Recommended Posts

blitzkrg

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 post

http://www.autoitscript.com/forum/index.php?showtopic=35965

i can see the constants (properties?)

for example.

i see Global Const $olMailItem = 0

but looking at a vb script

i see this

theMailItem.Recipients.Add "user@somewhere.com"

theMailItem.Subject = "Your Subject Here"

theMailItem.Body = "Your message here."

theMailItem.Send

how do i find the .subject the .body the .send

how 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

Share this post


Link to post
Share on other sites
kjactive

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 by kjactive

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×