What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Microsoft Applications

[?] Microsoft Applications
Author: Message:
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. [?] Microsoft Applications
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?
<Eljay> "Problems encountered: shit blew up" :zippy:
11-21-2006 11:58 PM
Profile PM Find Quote Report
markee
Veteran Member
*****

Avatar

Posts: 1621
Reputation: 50
35 / Male / Flag
Joined: Jan 2006
RE: [?] Microsoft Applications
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.
[Image: markee.png]
11-22-2006 03:22 AM
Profile PM Find Quote Report
Spunky
Former Super Mod
*****

Avatar

Posts: 3658
Reputation: 61
35 / Male / Flag
Joined: Aug 2006
O.P. RE: [?] Microsoft Applications
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 ¬_¬
<Eljay> "Problems encountered: shit blew up" :zippy:
11-22-2006 05:39 PM
Profile PM Find Quote Report
felipEx
Scripting Contest Winner
***


Posts: 378
Reputation: 24
35 / Male / Flag
Joined: Jun 2006
RE: [?] Microsoft Applications
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();
     }
  }
}

11-24-2006 08:04 PM
Profile E-Mail PM Find Quote Report
Voldemort
Veteran Member
*****

Avatar

Posts: 3504
Reputation: 49
– / – / Flag
Joined: Jul 2005
Status: Away
RE: [?] Microsoft Applications
ooo
oftopic:
an /word /excel would be neat :P
*All posts are a purely speculative hypothesis based on abstract reasoning.
Not my daughter, you bitch!
[Image: ico-mollytrix16.gif]
11-24-2006 08:20 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On