Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

COM Interface

rconn

Administrator
May
13,074
195
Staff member
COM Interface

TCC has the plugin command, allowing you to write your own internal variables, variable functions, and internal commands.

If TCC had a COM interface, this would allow the use of commands and functions from other COM Servers.

Example COM Servers are Microsoft Excel, OpenOffice Calc, Internet Explorer, MS Outlook, etc.

I can presently access COM Servers via .VBS files, interfacing to TCC with the SCRIPT command.

Maybe, for example;

set thevalue = COM(Object, "Function", param1, param2, ...)

In one of the COM Servers I created, it would be used as;

set thevalue = COM(JLCUtils.cMath, "PricePerPound", 4.39)

This would set thevalue equal to 1.9931

At present, I use this .VBS file to do this;

set jlc = WScript.CreateObject("JLCUtils.cmath")
if wscript.arguments.count > 0 then
wscript.echo jlc.PricePerPound(wscript.arguments(0))
else
wscript.echo "Usage: ppp.vbs 4.39"
end if
WScript.DisconnectObject jlc
set jlc=Nothing

4175ea4f2bce2e59ee557f11dcaca8ad
Joe Caverly on February 12, 2012 19:44
 
Back
Top