Neo's Script to Programmatically Toggle the Outlook SysTray Icon

  • Thread starter Ganchrow Harris Peck
  • Start date
G

Ganchrow Harris Peck

Neo's mail icon removal script of course works liek a charm. The only
problem, which I've seen brought up at least once in this group, is
that a "real" mail, followed by a "fake" mail will erroneously get rid
of the notification icon. Has anyone come up with a workaround for
this?

The easy answer which immediately comes to mind for those who typically
keep no unread mail in their "real" mail folders (in other words, those
folders for which new mail SHOULD generate the icon) would be just to
get the unread mail count for all pertinant folders -- if any of them
are non-zero, don't remove the icon.

Any thoughts on how this (or something better) might be accomplished?
 
G

Ganchrow Harris Peck

Another thought would be to reverse Neo's script so that it generates
rather than deletes an icon. The script could then be called (with the
Outlook "Show an envelope icon in the notification area" option turned
off) whenever a "real" mail message arrived. In this manner "fake"
messages would not erroneously hide the notification icon if it
preexisted.

Any thoughts on how to accomplish this?
 
G

Ganchrow Harris Peck

Well, in the context of Neo's mail icon removal script, a piece of
"real" mail would be one to which I would want to be alerted via the
systray envelope icon. Conversely, a piece of "fake" mail would be one
to which I would not care to be alerted via the envelope icon (a
superset of plain old spam).
 
K

Ken Slovak - [MVP - Outlook]

I'd probably handle ItemAdd in the Inbox but the real problem is the new
mail icon and how and when it's displayed. It's not necessarily displayed
for each and every mail item that arrives, it's more or less like the
NewMail event which fires at intervals. Using ItemAdd you could put up your
own sys tray icon using whatever graphic you wanted. There are a number of
samples in the VB section at www.mvps.org that show how to do that, one by
Randy Birch works well. I'm not sure you could do that using VBA however, it
probably would require using VB since you have to handle Windows messages
callbacks.
 
G

Guest

THE PROBLEM IS THE SOFTWARE CONTACT THE VENDOR.

THE TRUE/FALSE FLAGS ARE BACKWARDS.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top