Sure you can write a program to do anything in Outlook you want. It's just an application that offers objects and methods for any object oriented language you like.
But you can't run a program automatically at shutdown. But it's easy to write a batch file or something like it that runs your progra, then calls the system showdown function. Put it on your desktop and run it.
I would like to be able to control my computer more and add in certain things to software. I have never done anything similar nor know if it is possible to do. This is what I want done(in learning how I would also be able to do anything else):
In outlook 2007 when using exchange server, there is a tool call out of the office. You can type a message into it, and when set will auto reply to all incoming messages. I want this to be set everytime I log off of my computer without me having to set it myself everytime. Is it possible to write an if statment that would somehow execute on an event and controll this selection in office?