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

Pages: (5): « First « 1 [ 2 ] 3 4 5 » Last »
Scripting Error
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Scripting Error
What exactly is happening with the PSMs?
12-08-2009 03:23 PM
Profile E-Mail PM Find Quote Report
c_clarky_89
Junior Member
**


Posts: 55
35 / Male / Flag
Joined: Nov 2008
O.P. RE: Scripting Error
When you load the WLNameEditor and select Personal Message sometimes the pm wont show in the box on the WLNameEditor even though you have 1 :S

It does this on all the name editors not just mine :S

This post was edited on 12-09-2009 at 04:34 PM by c_clarky_89.
12-09-2009 04:33 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: Scripting Error
Ok sorry I have never used this before but when you select PSM from the drop down it should populate the edit box with your current PSM to edit it?

Try changing/updating the function to this:
js code:
function OnEvent_MenuClicked(MenuItemId, Location, OriginWnd)
{
    if(MenuItemId == "MnuStart")
    {
        Wnd = MsgPlus.CreateWnd("WLNameEditor.xml", "WndMain");
        Wnd.SetControlText("NameEdit", Messenger.MyName);
        Wnd.SetControlText("NameEditPreview", Messenger.MyName);
        Wnd.SendControlMessage('NameEdit', 0xC5, 129, 0);
        Wnd.Combo_AddItem("NamePm", "Name");
        Wnd.Combo_AddItem("NamePm", "Personal Message");
        Wnd.Combo_SetCurSel("NamePm", 0);
>>>        OnWndMainEvent_ComboSelChanged(Wnd, 'NamePm');<<<
        //Wnd.ImageElmt_SetImageFile("emoticon", "WLM_1");
        var len = Wnd.GetControlText("NameEdit").length;
        var EM_SETSEL = 0xB1;
        Interop.Call("user32","SetFocus", Wnd.GetControlHandle("NameEdit"));
        Interop.Call("user32","SendMessageW", Wnd.GetControlHandle("NameEdit"), EM_SETSEL, len, len);
    }
}

function OnWndMainEvent_ComboSelChanged(pPlusWnd, sControlId) 
{
    switch (pPlusWNd.Combo_GetCurSel(sControlId)) {
        case 0:
            pPlusWnd.SetControlText("NameEdit", Messenger.MyName);
            break;
        case 1:
            pPlusWnd.SetControlText("NameEdit", Messenger.MyPersonalMessage);
            break;
        default: // -1
            break;
    }
}

This post was edited on 12-09-2009 at 06:24 PM by matty.
12-09-2009 06:13 PM
Profile E-Mail PM Find Quote Report
c_clarky_89
Junior Member
**


Posts: 55
35 / Male / Flag
Joined: Nov 2008
O.P. RE: Scripting Error
that code doesnt work, when I select personal message from the drop down box nothing happens :(

This post was edited on 12-11-2009 at 02:33 AM by c_clarky_89.
12-11-2009 02:31 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Scripting Error
Try this out and see how it works. I updated a lot.

Also The build and build id have been changed if you want to put it in the database.

.plsc File Attachment: WLNameEditor.plsc (229.15 KB)
This file has been downloaded 160 time(s).

This post was edited on 12-11-2009 at 04:14 PM by matty.
12-11-2009 05:12 AM
Profile E-Mail PM Find Quote Report
c_clarky_89
Junior Member
**


Posts: 55
35 / Male / Flag
Joined: Nov 2008
O.P. RE: Scripting Error
theres a problem with that script name & personal message has doubled up in the frop down box :(
12-12-2009 10:23 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: Scripting Error
Oh I forgot. I hard coded them in the XML. Remove it from there or from the JS file and it will be ok.
12-13-2009 02:09 AM
Profile E-Mail PM Find Quote Report
c_clarky_89
Junior Member
**


Posts: 55
35 / Male / Flag
Joined: Nov 2008
O.P. RE: Scripting Error
sorted that but now theres another error when i click on the emoticon it comes up saying undefind :(
12-13-2009 02:32 AM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: Scripting Error
Change line 100 from this:
js code:
s = MapCodesToEmoticonNames[ControlId];

To this:
js code:
s = MapCodesToEmoticonNames(ControlId);
12-13-2009 02:54 AM
Profile E-Mail PM Find Quote Report
c_clarky_89
Junior Member
**


Posts: 55
35 / Male / Flag
Joined: Nov 2008
O.P. RE: Scripting Error
the personal message still dont show when seleted from the drop down box :( it works sometimes but then it jus happens again :(
12-13-2009 02:51 PM
Profile E-Mail PM Web 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