TextSweep

Check-in [8feda2aa6d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Tweaks to Windows help:
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:8feda2aa6d47fc21d49d50873450fdda427a50b1
User & Date: kevin 2017-12-29 02:33:13
Context
2017-12-29
03:42
Final tweaks for Windows check-in: 91c323d64c user: kevin tags: trunk
02:33
Tweaks to Windows help: check-in: 8feda2aa6d user: kevin tags: trunk
02:28
More tweaks for Windows check-in: 89b6300c7e user: kevin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to scriptlibs/machelp/help.txt.

75
76
77
78
79
80
81
82
83

84
85
86
87
88
89
90
91
92
93
94
   end tell

Automating the application on Windows can be done using the Dynamic Data Exchange (DDE) protocol. The DDE protocol has several components, including a "Service," "Topic," and "Items." In TextSweep, the Service name is always TclEval (because that is the underlying name that the Tcl interpreter supports), the Topic name is TextSweep, and Items (data or return values) are not currently required. 

There are various programming languages on Windows in which one can write a DDE client to automate a DDE application, including Tcl, Python, VBA, C/C++, and others. An easy way to automate TextSweep from the command line is to install Chris Oldwood's free DDE Command tool from [http://www.chrisoldwood.com/win32.htm]. The tool can then be incorporated into a batch script such as the following: 

   @echo off
   start TextSweep.exe 
   call timeout 2 >null

   call DDECmd.exe execute --server TclEval --topic TextSweep --command "set_search_pattern(\"*.html\")"
   call DDECmd.exe execute --server TclEval --topic TextSweep --command "set_search_term WordTech"
   call DDECmd.exe execute --server TclEval --topic TextSweep --command "set_replace_term AWP"
   call DDECmd.exe execute --server TclEval --topic TextSweep --command "execute_replace"


-------------------
title: Help
alias: Help

TextSweep provides comprehensive user documentation from the "Help" menu, and also provides tooltips for the toolbar buttons. Additional user support is available via the "Contact Code by Kevin" item in the Help menu; and the website link in the help menu.







|
|
>
|
|
|
|







75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
   end tell

Automating the application on Windows can be done using the Dynamic Data Exchange (DDE) protocol. The DDE protocol has several components, including a "Service," "Topic," and "Items." In TextSweep, the Service name is always TclEval (because that is the underlying name that the Tcl interpreter supports), the Topic name is TextSweep, and Items (data or return values) are not currently required. 

There are various programming languages on Windows in which one can write a DDE client to automate a DDE application, including Tcl, Python, VBA, C/C++, and others. An easy way to automate TextSweep from the command line is to install Chris Oldwood's free DDE Command tool from [http://www.chrisoldwood.com/win32.htm]. The tool can then be incorporated into a batch script such as the following: 

   @echo off
   start textsweep/build/textsweep/TextSweep.exe
   call timeout 2 >null
   call DDECmd.lnk execute --server TclEval --topic TextSweep --command "set_search_folder C:/Users/kevin/Desktop/CGWEB\ copy"
   call DDECmd.lnk execute --server TclEval --topic TextSweep --command "set_search_pattern *.html"
   call DDECmd.lnk execute --server TclEval --topic TextSweep --command "set_search_term WordTech"
   call DDECmd.lnk execute --server TclEval --topic TextSweep --command "set_replace_term AWP"
   call DDECmd.lnk execute --server TclEval --topic TextSweep --command "execute_replace"


-------------------
title: Help
alias: Help

TextSweep provides comprehensive user documentation from the "Help" menu, and also provides tooltips for the toolbar buttons. Additional user support is available via the "Contact Code by Kevin" item in the Help menu; and the website link in the help menu.