Don't mean to spam the forums with these type threads, but I'm a newb who needs help
Say I have this:
function OnEvent_ChatWndSendMessage(pChatWnd, sMessage) {
if (sMessage.toLowerCase() == "/syshelp") {
MsgPlus.CreateWnd("SysHelp.xml", "SysHelp");
return "";
} else if (sMessage.toLowerCase() == "/wlmver") {
return (Messenger.Version.toFixed(1)+'.0'+Messenger.VersionBuild);
} else if (sMessage.toLowerCase() == "/sysinfo") {
var oSysHelpWnd = MsgPlus.CreateWnd("SysInfo.xml", "SysInfo");
oSysHelpWnd.SetControlText("WlmVer", Messenger.Version.toFixed(1)+'.0'+Messenger.VersionBuild);
return "";
}
}
and I want to add another SetControl, how would I achieve this? I've copy/pasted the same oSysHelpWnd.SetControlText line below it and modified it for my second control but it wont work...