PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Neo's Script to Programmatically Toggle the Outlook SysTray Icon

Reply

Neo's Script to Programmatically Toggle the Outlook SysTray Icon

 
Thread Tools Rate Thread
Old 26-02-2005, 09:11 PM   #1
Ganchrow Harris Peck
Guest
 
Posts: n/a
Default Neo's Script to Programmatically Toggle the Outlook SysTray Icon


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?

  Reply With Quote
Old 27-02-2005, 12:15 PM   #2
Ganchrow Harris Peck
Guest
 
Posts: n/a
Default Re: Neo's Script to Programmatically Toggle the Outlook SysTray Icon

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?

  Reply With Quote
Old 28-02-2005, 03:02 PM   #3
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Neo's Script to Programmatically Toggle the Outlook SysTray Icon

What is a real mail as opposed to a fake mail?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ganchrow Harris Peck" <ganchrow@gmail.com> wrote in message
news:1109452283.606692.255710@f14g2000cwb.googlegroups.com...
> 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?
>


  Reply With Quote
Old 28-02-2005, 03:35 PM   #4
Ganchrow Harris Peck
Guest
 
Posts: n/a
Default Re: Neo's Script to Programmatically Toggle the Outlook SysTray Icon

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).

  Reply With Quote
Old 01-03-2005, 02:31 PM   #5
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: Neo's Script to Programmatically Toggle the Outlook SysTray Icon

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Ganchrow Harris Peck" <ganchrow@gmail.com> wrote in message
news:1109604954.596442.272000@g14g2000cwa.googlegroups.com...
> 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).
>


  Reply With Quote
Old 02-03-2005, 04:17 AM   #6
Guest
 
Posts: n/a
Default Neo's Script to Programmatically Toggle the Outlook SysTray Icon

THE PROBLEM IS THE SOFTWARE CONTACT THE VENDOR.

THE TRUE/FALSE FLAGS ARE BACKWARDS.

>-----Original Message-----
>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?
>
>.
>

  Reply With Quote
Old 04-03-2005, 06:05 PM   #7
Ganchrow Harris Peck
Guest
 
Posts: n/a
Default Re: Neo's Script to Programmatically Toggle the Outlook SysTray Icon

Not sure I follow ...

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off