What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Messenger.MyName in WLM 2011

Pages: (2): « First [ 1 ] 2 » Last »
Messenger.MyName in WLM 2011
Author: Message:
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. Messenger.MyName in WLM 2011
Obviously, we can no longer change our display names in WLM 2011. So I'm wondering how this property is/will be implemented in Plus! 5... Will it be a read-only property? If so, in all versions of WLM, or only for versions >= 2011?
01-07-2011 03:07 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Messenger.MyName in WLM 2011
I'd imagine they'd want to preserve backwards compatibility (assuming the scripting engine is the same). The script would need to check for WLM version first, hopefully something MP5 can take care of its self.

Setting Messenger.MyName should trigger a silent error in the debug something like E_NOTSUPPORTED and then do nothing.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-07-2011 03:51 PM
Profile PM Find Quote Report
SmokingCookie
Senior Member
****

Avatar

Posts: 815
Reputation: 15
30 / Male / Flag
Joined: Jul 2007
O.P. RE: Messenger.MyName in WLM 2011
An error in the debugging window will cause problems to scripts, for example:

JScript code:
function DoSomething(sNewName) {
    [...]
    Messenger.MyName = sNewName;
    [...]
}

The third line of "code" within the function body will trigger an error, so the rest of the function won't be executed.

Of course, correct me of I'm wrong :P
01-07-2011 04:17 PM
Profile PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Messenger.MyName in WLM 2011
quote:
Originally posted by Spunky
assuming the scripting engine is the same
It is entirely, for now.
quote:
Originally posted by SmokingCookie
so the rest of the function won't be executed
You can always decide to catch exceptions, like this:
jscript code:
function DoSomething(sNewName) {
    [...]
>>>    try {<<<
        Messenger.MyName = sNewName;
    }
>>>    catch(e) {<<<
        Debug.Trace("Setting MyName is not supported.");
    }
    [...]
}
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
01-07-2011 04:23 PM
Profile E-Mail PM Web Find Quote Report
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Messenger.MyName in WLM 2011
quote:
Originally posted by SmokingCookie
An error in the debugging window will cause problems to scripts,
Hence why Spunky suggested a silent error I Think.
Silent errors do not halt further execution.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-07-2011 04:26 PM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
36 / Male / Flag
Joined: Aug 2006
RE: Messenger.MyName in WLM 2011
quote:
Originally posted by CookieRevised
quote:
Originally posted by SmokingCookie
An error in the debugging window will cause problems to scripts,
Hence why Spunky suggested a silent error I Think.
Silent errors do not halt further execution.

Yeah, to clarify, that's what I meant. I think we need more feedback in the debug window than just the "fatal" errors that halt the script.

@mynetx: Setting exceptions like that would work, but not for the scripts already released (in the database, on the forums or something someone has made for personal use)

An error message in the debug window would let the developer know straight away that they won't be able to set anything by using the property.

quote:
Originally posted by SmokingCookie
So I'm wondering how this property is/will be implemented in Plus! 5

I think it will just need some internal tweaking (or possibly already has... any beta testers want to shed some light?). Anything that requires us to go back and re-write code is going to break a lot of scripts on the database that are no longer being maintained.
<Eljay> "Problems encountered: shit blew up" :zippy:
01-07-2011 05:35 PM
Profile PM Find Quote Report
mynetx
Skinning Contest Winner
*****

Avatar
Microsoft insider

Posts: 1175
Reputation: 33
37 / Male / Flag
Joined: Jul 2007
RE: Messenger.MyName in WLM 2011
quote:
Originally posted by Spunky
any beta testers want to shed some light?
Setting Messenger.MyName is currently possible. Also, using /name <stuff> is possible too. This is because internally the nickname still exists - Messenger 2011 just doesn't display it anymore. If you are talking with a contact who is using Messenger 2009, they will see when you change your name. Expect this Plus! behavior to be subject to change as the current beta is not a Release Candidate yet.
mynetx - Microsoft, enhanced.

You have a problem or issue with Windows, Internet
Explorer or Office?
Send a tweet!
01-07-2011 06:02 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Messenger.MyName in WLM 2011
I would anticipate you would receive an error saying that the object doesn't support this operation which would halt execution. Maybe they can add a catch internally into the script engine that says 'Woah we can't do that but let's not stop your script'...
01-07-2011 06:04 PM
Profile E-Mail PM Find Quote Report
foaly
Senior Member
****

Avatar

Posts: 718
Reputation: 20
38 / Male / Flag
Joined: Jul 2006
RE: Messenger.MyName in WLM 2011
We'll have to just wait and see...
Guess the block functions have similar problems...
[signature.jpg]
01-07-2011 09:43 PM
Profile E-Mail PM Find Quote Report
Apatik
Full Member
***

Avatar
\o/

Posts: 431
Reputation: 12
– / Male / Flag
Joined: Nov 2003
Status: Away
RE: Messenger.MyName in WLM 2011
Actually the block functions are still working the same way they used to, except they trigger "appear offline to"  in WLM2011 instead of a proper "2009" block.
[Image: rdmazu.php]
01-07-2011 09:52 PM
Profile PM Find Quote Report
Pages: (2): « First [ 1 ] 2 » 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