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

Pages: (5): « First « 1 2 3 [ 4 ] 5 » Last »
Help: How to write code that hides system tray icon
Author: Message:
Black_Ice
Junior Member
**


Posts: 26
34 / Male / –
Joined: Jun 2006
O.P. RE: Help: How to write code that hides system tray icon
Ok my script WAS working...then I tried making an xml to go with it. I created a new .js file and then Plus! wouldn't let me run the script saying that it's either 'defective' or I have 'limited rights'. I'm sure there's something in my script that I've overlooked...:S Anyway I deleted the .js file and moved the xml file out of the directory I was using. So the script is back to how it was when it was working...only that it's not working!!

[Edit]
I made a new script just then and copied the code from the script that i've uploaded....it worked!?!? Yet still won't work in it's other form...
[/Edit]

Any help is much appreciated, I've attached what I have so far.


.zip File Attachment: Invisible Messenger.zip (2.32 KB)
This file has been downloaded 261 time(s).

This post was edited on 08-17-2006 at 11:17 AM by Black_Ice.
08-17-2006 10:56 AM
Profile E-Mail PM Find Quote Report
shrav/oo7`
Junior Member
**


Posts: 22
34 / Male / –
Joined: Aug 2006
RE: Help: How to write code that hides system tray icon
whoa, wats the problem the script works fine... just add mattys code to cookies code and it'll work fine.
08-17-2006 11:06 AM
Profile PM Find Quote Report
Black_Ice
Junior Member
**


Posts: 26
34 / Male / –
Joined: Jun 2006
O.P. RE: Help: How to write code that hides system tray icon
I've added other stuff to it
08-17-2006 11:07 AM
Profile E-Mail PM Find Quote Report
shrav/oo7`
Junior Member
**


Posts: 22
34 / Male / –
Joined: Aug 2006
RE: Help: How to write code that hides system tray icon
like wat?
08-17-2006 11:10 AM
Profile PM Find Quote Report
Black_Ice
Junior Member
**


Posts: 26
34 / Male / –
Joined: Jun 2006
O.P. RE: Help: How to write code that hides system tray icon
Like making it revert back to ur status to what it was before it went into lock. Cause when mines in lock it changes my status to 'away' so when I use matty's and cookie's script...when I unlock it says my status is 'away'
08-17-2006 11:12 AM
Profile E-Mail PM Find Quote Report
shrav/oo7`
Junior Member
**


Posts: 22
34 / Male / –
Joined: Aug 2006
RE: Help: How to write code that hides system tray icon
anything else?
08-17-2006 11:19 AM
Profile PM Find Quote Report
Black_Ice
Junior Member
**


Posts: 26
34 / Male / –
Joined: Jun 2006
O.P. RE: Help: How to write code that hides system tray icon
Not yet but will add in a later version:
-GUI window forcing those certain options to be enabled or disabled (for it to work)
-Remove messenger's process from task manager eg. msgmessenger.exe (or whateva it is)
08-17-2006 11:20 AM
Profile E-Mail PM Find Quote Report
shrav/oo7`
Junior Member
**


Posts: 22
34 / Male / –
Joined: Aug 2006
RE: Help: How to write code that hides system tray icon
k keep working on it but for now i think cookies and mattys script is enough for me. thanks for your effort Black_Ice, Matty and CookieRevised
08-17-2006 11:23 AM
Profile PM Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Help: How to write code that hides system tray icon
quote:
Originally posted by Black_Ice
Like making it revert back to ur status to what it was before it went into lock.
You shouldn't tamper with that as Plus! itself is responsible for setting and resetting your status when you lock/unlock messenger.

Also seeing your script, I really don't get why:
1) You use a timer to get the status 2 seconds after initialization and sign in. It makes no sense.
2) What you're trying todo with "var Status = DataBloc.ReadString(40);" DataBloc doesn't even exist in that function and it isn't declared anywhere
3) EDIT: "!===" isn't a valid comparisson operator.
4) EDIT: "False" isn't a valid boolean.

5) Don't change the comments I added. What you change it to is wrong:
quote:
your altered comments
// Just some helper function to get some icon
// Invisible window has a space in the system tray (like an invisible icon)
function GetMSNHiddenWindowIcon() {
The invisible window has not a space in the system tray:
1) the window will not add any space to the tray.
2) the window itself does have an icon. Which is exactly the whole point of that comment and that function.
So please leave the comments intact, or at least don't add wrong stuff:
quote:
original comments
// Just some helper function to get some icon
// (who knew that hidden window had an icon :) dodgy MS people adding an icon to an always invisible window :D)
function GetMSNHiddenWindowIcon() {



All you need is my code and implement it like Matty showed. Messenger Plus! itself will reset your status after an unlock anyways (if you have set it so to do this in the Plus! preferences).



------

To make a scriptpack there are some rules you need to apply to:
1) do not save your files in a subdirectory inside the zipfile (reason why your scriptpack doesn't work)
2) the scriptInfo.xml file must be in unicode (you did that) and need some basic xml headers (you didn't do that) <= this will not make your scriptpack not work, but it is not good practice what you did.

Read the information regarding scriptpacks in the Plus! Scripting Help file.

This post was edited on 08-19-2006 at 12:01 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
08-19-2006 09:12 AM
Profile PM Find Quote Report
Black_Ice
Junior Member
**


Posts: 26
34 / Male / –
Joined: Jun 2006
O.P. RE: Help: How to write code that hides system tray icon
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.
08-19-2006 09:17 AM
Profile E-Mail PM Find Quote Report
Pages: (5): « First « 1 2 3 [ 4 ] 5 » Last »
« Next Oldest Return to Top Next Newest »


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