What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Missing Something Small...Help Please?

Missing Something Small...Help Please?
Author: Message:
Black_Ice
Junior Member
**


Posts: 26
33 / Male / –
Joined: Jun 2006
O.P. Missing Something Small...Help Please?
Hey Guys,
Just wondering if any of you could help me with this. I know what I'm trying to do is very simple! But for some reason it just won't work?

I want to use the MsgPlus.MessengerIsLocked property to run some code determined on whether or not MP!L is locked or not.

code:
function OnEvent_MyStatusChange(){
   
    if (MsgPlus.MessengerIsLocked = 0) {
        //If Messenger isn't locked execute code
        }
}

I have tried everything:

code:
(MsgPlus.MessengerIsLocked = 0)
(MsgPlus.MessengerIsLocked == 0)
(MsgPlus.MessengerIsLocked === '0')
(MsgPlus.MessengerIsLocked === "False")
(MsgPlus.MessengerIsLocked === 'False')

And numerous others that follow similar syntax.

The code that executes works and I know this because I put it outside the
code:
if (MsgPlus.MessengerIsLocked = 0) {

Cycle and it worked fine. Sorry for the newb question but I really can't figure it out!

Thanks for any help,

Black Ice

This post was edited on 12-22-2006 at 12:47 AM by Black_Ice.
12-22-2006 12:46 AM
Profile E-Mail PM Find Quote Report
Weyzza
Veteran Member
*****

Avatar
SoCal sunset > *

Posts: 1170
Reputation: 29
– / Male / –
Joined: May 2003
RE: Missing Something Small...Help Please?
try: MsgPlus.MessengerIsLocked == false, since it returns a boolean.
Registered 7645 days, 14 hours, 40 minutes, 28 seconds ago.
Happy Birthday, WDZ

12-22-2006 01:03 AM
Profile PM Find Quote Report
Black_Ice
Junior Member
**


Posts: 26
33 / Male / –
Joined: Jun 2006
O.P. RE: Missing Something Small...Help Please?
Thanks very much!
Ah now I remember using that once before in a previous script. It worked though, thanks Weyzza!
12-22-2006 01:06 AM
Profile E-Mail PM Find Quote Report
Silentdragon
Full Member
***

Avatar
if(life==null && wrists) EmoAlert();

Posts: 148
Reputation: 2
34 / Male / –
Joined: Jun 2006
RE: Missing Something Small...Help Please?
Better yet, just do
code:
if(!MsgPlus.MessengerIsLocked) {
}

(! means false if you didn't know)
12-22-2006 02:00 AM
Profile E-Mail PM Web Find Quote Report
Black_Ice
Junior Member
**


Posts: 26
33 / Male / –
Joined: Jun 2006
O.P. RE: Missing Something Small...Help Please?
Ah that's just like php's syntax. Thanks Silentdragon, very neat :wink:
12-22-2006 02:16 AM
Profile E-Mail PM Find Quote Report
« 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