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;
}
}