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

Scripting Error
Author: Message:
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
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Scripting Error - by c_clarky_89 on 04-11-2009 at 06:07 PM
RE: Scripting Error - by Spunky on 04-11-2009 at 07:24 PM
RE: Scripting Error - by c_clarky_89 on 04-11-2009 at 08:32 PM
RE: Scripting Error - by matty on 04-12-2009 at 01:15 AM
RE: Scripting Error - by c_clarky_89 on 04-12-2009 at 01:37 AM
RE: Scripting Error - by warmth on 11-22-2009 at 11:39 PM
RE: Scripting Error - by c_clarky_89 on 11-24-2009 at 10:19 PM
RE: Scripting Error - by matty on 11-25-2009 at 03:19 PM
RE: Scripting Error - by matty on 11-25-2009 at 03:22 PM
RE: Scripting Error - by c_clarky_89 on 12-08-2009 at 01:04 PM
RE: Scripting Error - by matty on 12-08-2009 at 03:23 PM
RE: Scripting Error - by c_clarky_89 on 12-09-2009 at 04:33 PM
RE: Scripting Error - by matty on 12-09-2009 at 06:13 PM
RE: Scripting Error - by c_clarky_89 on 12-11-2009 at 02:31 AM
RE: Scripting Error - by matty on 12-11-2009 at 05:12 AM
RE: Scripting Error - by c_clarky_89 on 12-12-2009 at 10:23 PM
RE: Scripting Error - by matty on 12-13-2009 at 02:09 AM
RE: Scripting Error - by c_clarky_89 on 12-13-2009 at 02:32 AM
RE: Scripting Error - by matty on 12-13-2009 at 02:54 AM
RE: Scripting Error - by c_clarky_89 on 12-13-2009 at 02:51 PM
RE: Scripting Error - by matty on 12-14-2009 at 12:29 PM
RE: Scripting Error - by c_clarky_89 on 12-14-2009 at 12:31 PM
RE: Scripting Error - by matty on 12-14-2009 at 01:52 PM
RE: Scripting Error - by c_clarky_89 on 12-14-2009 at 02:23 PM
RE: Scripting Error - by c_clarky_89 on 12-17-2009 at 10:02 PM
RE: Scripting Error - by matty on 12-18-2009 at 02:08 AM
RE: Scripting Error - by c_clarky_89 on 12-18-2009 at 02:10 AM
RE: Scripting Error - by matty on 12-18-2009 at 02:14 AM
RE: Scripting Error - by c_clarky_89 on 12-18-2009 at 02:16 AM
RE: Scripting Error - by SourSpud on 12-18-2009 at 11:50 AM
RE: Scripting Error - by matty on 12-18-2009 at 12:53 PM
RE: Scripting Error - by warmth on 12-18-2009 at 04:28 PM
RE: Scripting Error - by matty on 01-13-2010 at 02:03 PM
RE: Scripting Error - by warmth on 01-13-2010 at 02:34 PM
RE: Scripting Error - by c_clarky_89 on 01-13-2010 at 03:37 PM
RE: Scripting Error - by c_clarky_89 on 01-16-2010 at 01:13 AM
RE: Scripting Error - by matty on 01-16-2010 at 04:32 PM
RE: Scripting Error - by warmth on 01-16-2010 at 06:34 PM
RE: Scripting Error - by c_clarky_89 on 01-17-2010 at 01:15 AM
RE: Scripting Error - by c_clarky_89 on 03-22-2010 at 12:07 AM
RE: Scripting Error - by matty on 03-22-2010 at 01:01 PM


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