Shoutbox

[?] Microsoft Applications - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] Microsoft Applications (/showthread.php?tid=68738)

[?] Microsoft Applications by Spunky on 11-21-2006 at 11:58 PM

I know with Visual Basic I could interact with "MS Office" by creating an object and then sending different messages etc. I was just wondering if this is possible using the scripting engine?


RE: [?] Microsoft Applications by markee on 11-22-2006 at 03:22 AM

This is very possible using ActiveXObject.  I'm not entirely sure with how to do this myself but you could use the likes of iTunes+ as an example with how it interacts with iTunes and I'm quite sure there are some others out there too.


RE: [?] Microsoft Applications by Spunky on 11-22-2006 at 05:39 PM

Ok Thanks. I managed to make some ActiveXObjects and load Word and Excel etc. I've managed to make a script that reads information froma spreadsheet :D

It's similar to how vb does it, but there are enough changes to annoy me ¬_¬


RE: [?] Microsoft Applications by felipEx on 11-24-2006 at 08:04 PM

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


RE: [?] Microsoft Applications by Voldemort on 11-24-2006 at 08:20 PM

ooo
oftopic:
an /word /excel would be neat :P