I've uploaded codeform again. There are no changes to the actual program, but I added a subdirectory called exts/ which contains 50KB (>25 files) of extensions to codeform. (The .ZIP is now 227208 bytes, 222KB.)
I'll copy exts/README.txt here:
Code:
This directory, exts/, contains several extensions to codeform. Perl is
required to run many of them. You can get Perl for Windows at:
http://activestate.com/
codeform.pl is used to host codeform online at
http://dwks.theprogrammingsite.com/myprogs/down/codeform_online/cfonline.htm
The rest of the files are related to clipboard extensions. You can run them by
executing the batch files or directly from the command line, with your own
options.
Here are the files in exts/ and a brief description:
asyncdown.c C source code for asyncdown
asyncdown.exe Returns true if a given key is held down
clip_inout_any.bat Codeforms the data from and to the clipboard
clip_inout_vbb.bat The same, but rules\cpp_1_vbb is added to the args
clip_shift.bat* Codeforms the clipboard when CTRL-SHIFT-C is pressed
clip_start.bat* Codeforms the clipboard when it starts with "[cf]"
clip_start_any.bat* The same, but when it starts with the first argument
clipclr.c C source code for clipclr
clipclr.exe Clears the clipboard
clipget.c C source code for clipget
clipget.exe Prints the contents of the clipboard (like pclipget.pl)
clipset.c C source code for clipset
clipset.exe Stores its input into the clipboard (like pclipset.pl)
cliptee.c C source code for cliptee
cliptee.exe Stores input into the clipboard, but also prints the data
codeform.pl* Perl script for codeform online
pclipcf.pl* Codeforms the clipboard for multiple conditions
pclipcf4.pl* (old) Codeforms the clipboard when it starts with a string
pclipclr.pl* Clears the clipboard
pclipget.pl* Prints the contents of the clipboard to the screen
pclipset.pl* Sets the clipboard to the data it is passed (from stdin)
pcliptee.pl* Stores input into the clipboard, but also prints the data
presdir.exe CDs somewhere, executes a command, then CDs back
presdir.c C source code for presdir
README.txt This readme file
shiftdown.c C source code for shiftdown
shiftdown.exe Returns true if either shift key is currently held down
Programs marked with an asterisk (*) require Perl to run.
Usually, unless you want something unusual, you execute one of the batch files.
clip_inout_any.bat: This uses the clipboard for input and output to codeform, but you need to pass it some arguments because it doesn't add any. Execute this from the command line only.
clip_inout_vbb.bat: The same, but rules\cpp_1_vbb is added to the arguments. You can run this from Windows. I have a shortcut to it.
clip_shift.bat: [perl] *NEW* When you press CTRL-SHIFT-C, the clipboard is codeformed; CTRL-C, it isn't. See below.
clip_start.bat: Codeforms the clipboard when it starts with "[cf]". Identical to pclipcf4.pl (which is still included if you want to use it). Run this from Windows.
clip_start_any.bat: The same, but you specify what to use instead of "[cf]" for the first argument. Run this from a command line.
What's really neat is clip_shift.bat. When it is running, if you press CTRL-SHIFT-C instead of CTRL-C, the clipboard is codeformed. No more typing an extra four characters for "[cf]"! We're lazier than that! Just press shift! Unfortunately it doesn't work on Windows 98, though it does work on Windows XP. I can't imagine why; here's its code:
Code:
#include <windows.h>
int main(void) {
return GetAsyncKeyState(VK_SHIFT) & 0x8000 ? 1 : 0;
}
Also, some programs trap CTRL-SHIFT-C. If that is the case, you could modify that code, or use asyncshift to trap both shifts, or use notepad.
I also fixed a bug in the C clipboard programs. They now work just as well as the Perl ones.
I also added cliptee, which is like clipset but it also prints the clipboard contents to the screen.
[edit] I posted that exactly on the hour! That doesn't happen too often . . . 1/60 of the time in fact. [/edit]
[edit=2] Vote for code colouring! http://cboard.cprogramming.com/showthread.php?p=633909 [/edit]