Updated the documentation.
An example (from tkcon): from a concurrent tclsh:
% package require winsend | % package require winsend
- 0.3 | 0.3
+ 0.4 | 0.4
% winsend interps | % winsend interps
tkcon.tcl | tkcon.tcl TCLSH.EXE
| % winsend send tkcon.tcl set x 1
See
http://tclsoap.sourceforge.net/winsend.html
and
- http://tclsoap.sourceforge.net/winsend.zip
+ http://prdownloads.sourceforge.net/tclsoap/winsend-0.4.zip
for the docs (this document) and code respectively.
Pat Thoyts.
{
Tcl_Obj *script = Tcl_NewUnicodeObj(v.bstrVal,
SysStringLen(v.bstrVal));
- r = Tcl_EvalObjEx(obj->interp, script, TCL_EVAL_DIRECT);
+ r = Tcl_EvalObjEx(obj->interp, script, TCL_EVAL_DIRECT | TCL_EVAL_GLOBAL);
if (pvResult)
{
VariantInit(pvResult);
# End Group
# Begin Source File
+SOURCE=.\LICENSE
+# End Source File
+# Begin Source File
+
SOURCE=.\Readme
# End Source File
# Begin Source File
# End Source File
# Begin Source File
-SOURCE=.\winsend.html
+SOURCE=.\test2.vbs
+# End Source File
+# Begin Source File
+
+SOURCE=.\winsend.man
# End Source File
# End Target
# End Project
[example {
Set interp = GetObject("\\.\TclInterp\tkcon.tcl")
interp.Send "puts {Hello from VB Script}"
- WScript.Echo interp.Send("info tcl")
-}]
+ WScript.Echo interp.Send("info tcl")}]
+
Provided you have an instance of Tcl running registered with
[cmd {winsend appname tkcon.tcl}] you should see the message appear in
the Tcl window and the Tcl version should be printed to the cscript