quote:
Originally posted by Choli
quote:
Originally posted by warmth
how about the Interface tester and scripting help for this new release??? (probably the same as 4.21 but... how about changing the name if is like that ???)
it's the same, nothing has changed related to scripts
small (but important) correction: nothing has been _added_ related to scripts.
Because there was a bug fixed in the scripting engine. This bug was something every scripting developper should have taken into account. As such, it is best to still work around it (or at least know about it and take it in account), since not all people are already using the latest Plus! version...
quote:
Scripts: fixed Contact objects not accessible in contact events (such as ContactStatusChange) between OnEvent_Signin and OnEvent_SigninReady.
See
bug report
This means in all previous Plus! versions you always need to check if the Contact objects (like Messenger.MyContacts) actually exists. A very common thing which is done in a lot of scripts is something like:
code:
function OnEvent_ContactSignin(sEmail) {
var oContact = Messenger.MyContacts.GetContact(sEmail);
Debug.Trace('status: ' + oContact.Status);
}
However, that will result in an error if a contact signs in (or changes status, etc, depending on the event you use) after you've signed in, but before Plus!'s delay has ended and thus before the call to OnEvent_SignReady is made.