Alright (Sorry for double post
), I am using this code:
code:
function OnEvent_Initialize(MessengerStart)
{
var Wnd = MsgPlus.CreateWnd("InterfaceTest.xml", "WndTest");
}
function OnEvent_Uninitialize(MessengerExit)
{
}
function OnWndTestEvent_CtrlClicked(Wnd, ControlId)
{
if(ControlId == "BtnClose")
Wnd.Close(1);
var contact = "Email@email.com"
Messenger.OpenChat(contact);
ChatWnd.SendMessage("Test");
}
But it's not sending a message...The gui pops up, I hit the button, it brings up a chat, but no message is sent.