COMGO

Documents: Home Page / Programming / COMGO / Interfaces  
Introduction

COMGO is a ActiveX Control for scripts programmers to connect to remote server objects easily. It can be used in WScript programms, HTA programms and other applications that support COM.

Interfaces
Sample Codes

The sample codes bellow shows how to manipulate an remote MS Word Application.

var cr=new ActiveXObject("COMGO.RootObject");
var pb=cr.CreateProxyBlanket();
pb.Domain="192.168.1.103"; //can be computer name if local network
pb.User="smith";
pb.Password="letsgo";
var word=pb.CreateRemoteObject("Word.Application");
var wdocs=word.Documents;
pb.ApplyToObject(wdocs); //Apply proxy blanket to each new interface
wdocs.Add();
var wadoc=word.ActiveDocument;
pb.ApplyToObject(wadoc); //Apply proxy blanket to each new interface
wadoc.Content="Helo";
wadoc.SaveAs("my.doc");
word.Quit();