What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Help: How to write code that hides system tray icon

Help: How to write code that hides system tray icon
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: RE: Help: How to write code that hides system tray icon
quote:
Originally posted by Black_Ice
Well you added in ur script:

code:
My.Status = My.Status


This keeps changing my status to 'away' after I come out of lock. During lock I have it set to go to 'away' but when I unlock it sets me as away and counts down from 15seconds...asking me if i'd like to personalise my status. Anyway I deleted this line in your code and all works well.

Guess it's no longer my script at all, you did it all.

"My.Status = My.Status" will do nothing more then triggering messenger to update its icon again. It will actually not set a new status since the new status is the same as the old; it will just trigger the routine which messenger does when a status is changed (aka it sets a new icon in the tray). If you remove that line, the icon in the system tray will not be restored properly anymore.

A side effect can indeed be if you have the personalised status window set to popup when a status is set to "away", that it will popup too.

As the comment in the script suggested it is a simple 'trick'. The whole script is meant to show that hiding the tray icon (and tooltip) can be done extremely easy without the need of -dt-'s class. Hence why I also didn't added the events Matty showed. The script only has the bare essentials. The rest (like this trick) is simply added to have something more complete to test it with. It was never intended to be a total perfect script. For that, you need the icon handles from Messenger itself and restore the icon yourself with the API. The 'status=status' trick is just a shortcut.

This post was edited on 08-19-2006 at 09:33 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-19-2006 09:31 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help: How to write code that hides system tray icon - by Black_Ice on 06-29-2006 at 02:08 AM
RE: Help: How to write code that hides system tray icon - by rob_botch on 06-29-2006 at 09:33 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 06-29-2006 at 09:41 AM
RE: Help: How to write code that hides system tray icon - by rob_botch on 06-29-2006 at 09:43 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 06-29-2006 at 09:45 AM
RE: Help: How to write code that hides system tray icon - by rob_botch on 06-29-2006 at 09:46 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 06-29-2006 at 09:47 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-13-2006 at 04:21 AM
RE: Help: How to write code that hides system tray icon - by matty on 08-13-2006 at 04:45 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-13-2006 at 08:51 AM
RE: RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-13-2006 at 09:26 PM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-14-2006 at 01:18 PM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-14-2006 at 09:40 PM
RE: Help: How to write code that hides system tray icon - by hmaster on 08-14-2006 at 10:04 PM
RE: Help: How to write code that hides system tray icon - by ecion on 08-14-2006 at 10:39 PM
RE: Help: How to write code that hides system tray icon - by matty on 08-15-2006 at 01:18 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-15-2006 at 07:59 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-15-2006 at 11:12 AM
RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-15-2006 at 11:14 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-15-2006 at 11:42 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-15-2006 at 11:44 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-15-2006 at 11:45 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-15-2006 at 11:47 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-15-2006 at 11:48 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-15-2006 at 11:49 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-15-2006 at 12:00 PM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-15-2006 at 12:03 PM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-15-2006 at 12:04 PM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-15-2006 at 12:13 PM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-16-2006 at 08:12 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-17-2006 at 10:56 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-17-2006 at 11:06 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-17-2006 at 11:07 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-17-2006 at 11:10 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-17-2006 at 11:12 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-17-2006 at 11:19 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-17-2006 at 11:20 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-17-2006 at 11:23 AM
RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-19-2006 at 09:12 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-19-2006 at 09:17 AM
RE: RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-19-2006 at 09:31 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-19-2006 at 09:47 AM
RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-19-2006 at 10:35 AM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 08-19-2006 at 10:41 AM
RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-19-2006 at 11:52 AM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-19-2006 at 01:22 PM
RE: RE: Help: How to write code that hides system tray icon - by CookieRevised on 08-19-2006 at 01:47 PM
RE: Help: How to write code that hides system tray icon - by shrav/oo7` on 08-19-2006 at 01:53 PM
RE: Help: How to write code that hides system tray icon - by Black_Ice on 01-22-2007 at 01:00 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On