Building off of the screencast video here, and a recent discussion on using scripts to transform text here, i thought maybe it would make sense to have a thread where people might share their Clipboard Help+Spell scripts and executables for transforming text.
NOTE: You currently need to download the ALPHA RELEASE of CHS 2.09.01 to use these tools.
I'm going to start with this sample perl script that does nothing but reverse the order of characters on each line of text. This is not useful in and of itself, but it does serve as a skeleton for those who might want to write perl scripts for Clipboard Help+Spell. This sample script file is included with the new version of CHS (v2.09.01) in the tools folder. Note that you need to have perl installed and configured on your pc to use perl .pl scripts directly from Clipboard Help+Spell:
Next up is a link where you can download the C++ source code for a C++ tool that does a similar thing -- takes input and output file paths on commandline and performs a text transformation:
http://www.donationcoder.com/Software/Mouser/clipboardhelpandspell/downloads/chs_sampletool.zip
This was built using visual studio 2010, but it's plain ordinary c++ that can be compiled with any c++ compiler.
So, anyone got any to share?
NOTE: You currently need to download the ALPHA RELEASE of CHS 2.09.01 to use these tools.
I'm going to start with this sample perl script that does nothing but reverse the order of characters on each line of text. This is not useful in and of itself, but it does serve as a skeleton for those who might want to write perl scripts for Clipboard Help+Spell. This sample script file is included with the new version of CHS (v2.09.01) in the tools folder. Note that you need to have perl installed and configured on your pc to use perl .pl scripts directly from Clipboard Help+Spell:
Code: (perl)
# check and get commandline args
($#ARGV >=1) || die "ERROR: first two arguments should be input path and output path (place each one in double quotes)\n";
$infilepath=$ARGV[0];
$outfilepath=$ARGV[1];
# open files
open(IN,$infilepath) || die "cannot open input file";
open(OUT,">".$outfilepath) || die "cannot open output file";
# write out modified text
while(<IN>)
{
# reverse the line
$outline = reverse($_);
# now write it out
print OUT $outline;
}
# close files
close(IN);
close(OUT);Next up is a link where you can download the C++ source code for a C++ tool that does a similar thing -- takes input and output file paths on commandline and performs a text transformation:
http://www.donationcoder.com/Software/Mouser/clipboardhelpandspell/downloads/chs_sampletool.zip
This was built using visual studio 2010, but it's plain ordinary c++ that can be compiled with any c++ compiler.
So, anyone got any to share?













)