Thats because i made it to be called. Maybe something like this?
code:
var WshShellObj = new ActiveXObject("WScript.Shell");
var fontToSet;
function OnEvent_ChatWndSendMessage(ChatWnd, Message)
{
fontToSet = 'Arial';
changeFont(ChatWnd);
}
function changeFont(ChatWnd)
{
MsgPlus.AddTimer('setFont', 500);
Interop.Call('user32', 'SendMessageW', ChatWnd.Handle , 0x0111, 40211, 0);
}
function OnEvent_Timer(TimerId)
{
WshShellObj.SendKeys(fontToSet + '{ENTER}');
}
I see your point with the SendKeys though (i think there's a WM_SETTEXT message that could be used, but I couldnt work it out), and if the font isn't installed.