TextSweep

Check-in [91c323d64c]
Login

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

Overview
Comment:Final tweaks for Windows
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:91c323d64c0662a2ad3db4c18e681194da4197df
User & Date: kevin 2017-12-29 03:42:35
Context
2017-12-29
13:15
Final release for macOS 4.0 check-in: 5fa494e0a1 user: kevin tags: trunk
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
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to scriptlibs/machelp/help.txt.

77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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.







|
|
|
|
|







77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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 execute --server TclEval --topic TextSweep --command "set_search_folder C:/Users/kevin/Desktop/CGWEB\ copy"
   call DDECmd execute --server TclEval --topic TextSweep --command "set_search_pattern *.html"
   call DDECmd execute --server TclEval --topic TextSweep --command "set_search_term WordTech"
   call DDECmd execute --server TclEval --topic TextSweep --command "set_replace_term AWP"
   call DDECmd 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.

Changes to scriptlibs/textsweep/textsweep-main.tcl.

100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#"about application" command
proc tkAboutDialog {} {
    aboutWindow
}

proc aboutWindow {} {

   tk_messageBox -parent . -icon info -title "About TextSweep" -message "TextSweep: Search and Replace Tool" -detail "Version 4.0\n(c)2018 WordTech Communications LLC"


}

#check file list to ensure existence
proc checkfilelist {} {








|







100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#"about application" command
proc tkAboutDialog {} {
    aboutWindow
}

proc aboutWindow {} {

   tk_messageBox -parent . -icon info -title "About TextSweep" -message "TextSweep: Search and Replace Tool" -detail "Version 4.0\n(c) 2018 WordTech Communications LLC"


}

#check file list to ensure existence
proc checkfilelist {} {