it serves to you?
var objMsWord= new ActiveXObject("Word.Application");
Example (my spelling checker)
code:
// press F7 key in the chatwindow
function OnEvent_ChatWndEditKeyDown( ChatWnd, KeyCode, CtrlKeyDown, ShiftKeyDown)
{
if (KeyCode == 118 && ChatWnd.EditText)
{
var objMsWord= new ActiveXObject("Word.Application");
if (objMsWord)
{
objMsWord.WordBasic.FileNew();
objMsWord.WordBasic.Insert(ChatWnd.EditText);
objMsWord.WordBasic.ToolsSpelling();
objMsWord.WordBasic.EditSelectAll();
objMsWord.WordBasic.SetDocumentVar("corregido", objMsWord.WordBasic.Selection);
objMsWord.Visible = false;
var strTemp = objMsWord.WordBasic.GetDocumentVar("corregido");
ChatWnd.EditText = strTemp.substring(0, (strTemp.length) -1);
objMsWord.Documents.Close(0);
objMsWord.Quit();
}
}
}