Scripting / programming question

  • Thread starter Thread starter Buddy Greenshield
  • Start date Start date
B

Buddy Greenshield

I need to know if there is a way to run a script or macro when the user
sends a message, depending on which mapi profile is in use. It would need
to run whenever replying, forwarding, or sending a new message.

I would prefer using VBScript, not Outlook VBA if possible - or how
different is VBA compared to VBS calling an activeX control designed to work
with vbs.

Thanks for your help
Buddy
 
VBScript can only handle events like that if you use a custom form for
all messages, incoming and outgoing. You'd be far better off handling
the ItemSend event on a global basis in VBA code or a COM addin. You
won't need to work with any ActiveX controls in forms if you do that.

See http://www.slipstick.com/dev/vb.htm for more information about
working with Outlook VBA.
 
Thanks for your reply.
My situation is a group of my users are running the GroupWise connector for
Outlook to connect to a GroupWise 6 mail store. We recently pushed out Panda
Antiviruis which has an Outlook AV component. When Outlook (2000) is
connected to Exchange Server is works great, but when connected to
GroupWise, if the Panda realtime scanning is enabled, the message body is
lost when they send. Panda says there is no way to programmatically disable
the RT scanning. I believe AutoItX.dll is a work around because you can
program it to "press buttons". I have used it in VBS, but my VBA skills are
weak.

Since my users still want / need GroupWise, but also connect to our new
Exchange server, I give them a choice of which MAPI profile to choose from.
So the ItemSend event would trigger some code that needs to determine if the
GroupWise profile is active, and then somehow determine if the Panda RT
scanning is enabled. If so, tell AutoIt to push on the button that
enables/disables RT scanning.

At the moment, coding something like that is over my head!

What do you suggest?
Thanks, Buddy
 
First thing I'd suggest is getting rid of Panda. It sounds like it's
causing your problems. If using it causes message bodies to disappear
that's a bug in Panda and if they won't fix it then what use are they?
 
Well, I can't prove it, but I think the bug is in the Novell provided
Groupwise connector for outlook. Panda works great when Outlook is connected
to Exchange or POP accounts. There's definately an incompatability between
the Panda RT scanning engine and the way the GroupWise connector handles
outbound mail.
Still, I agree that the Panda software should be easier to manipulate.

The overall plan is to gradually move my users completely off of GroupWise.
It's just the interim period thats ugly.

I was hoping to make the situation easier for them... they pay me to do
that!

So, does the programming approach sound that bad?

Buddy
 
Let's just say I wouldn't want to take that programming job as a
consulting job, and that's my business :)
 
Back
Top