ClipRead -======- A CLI program to display the text in any clipboard unit. Usage: ClipRead [U=UNIT ] [LF=LFATEND] - UNIT - Where is the clipboard unit (0-255) to read. Defaults to PRIMARY_CLIP (currently 0). - LFATEND - Supply a linefeed ($0A) if the string doesn't end with one. By default, the string is printed exactly as it exists in the clipboard (i.e. it may or may not end with a linefeed). ClipWrite -=======- A CLI program to write text to any clipboard unit. Usage: ClipWrite [U=UNIT ] [NP=NOPARSE] [TEXT] - UNIT - Where is the clipboard unit (0-255) to write to. Defaults to PRIMARY_CLIP (currently 0). - NOPARSE - Ignore any format commands (see below) in the text. - - The text to store in the clipboard. The text may contain special format commands, which begin with a backslash ("\"), listed below. - Text format commands: \t A tab (ASCII 9). \n A linefeed (LF) (ASCII 10). \r A carriage return (CR) (ACSII 13). \e An ESC (ASCII 27). \q A quote mark: " (ASCII 34). \\ A backslash: \ (ASCII 92). \# Where is the number (0-255) of an ASCII character to insert. Examples: \#169 The copyright character: ©. \#$A9 Still the copyright character, only this time we specified it using a hex number. \#%10101001 Yep, copyright again in binary. Requirements: -===========- Workbench 2.04 or higher. Distribution: -===========- ClipRead and ClipWrite are Freeware, copyright © 1996 Jody Tierney. They may be freely distributed so long as no profit is made from them. Warranty and/or Disclaimer: -=========================- NO WARRANTY. USE AT YOUR OWN RISK. I TAKE NO RESPONSIBILITY FOR THESE PROGRAMS (unless you think they're kinda cool :-) ), OR FOR ANY DAMAGES, PROBLEMS, GLITCHES, CRASHES, NUMBNESS, HEADACHES, ODDITIES, ETC. RESULTING FROM THEIR USE/MISUSE. Thanks To: -========- - God - For life, the universe, & everything. - Wouter van Oortmerssen - For Amiga E, the best language I've ever used. - My cat - Okay, I'll admit it, he's the real brains of the operation here. - Ramones - For some really great music to program by. To Do: -====- - Find any bugs and replace them with newer, more interesting bugs. - Maybe more format commands for ClipWrite, if the need arises. Bugs: -===- - I didn't notice any, but it's possible. Lemme know. - According to the AutoDocs, there were a few bugs in the iffparse.library, prior to v39, with the OpenClipboard() function. History: -======- ClipRead: - 1.0 - 2/9/96 - Initial release (limited). - 1.1 - 2/12/96 - Now quietly fails on systems running less than WB 2.04. - Rewrote using an exception handler and added error messages. - Stupid mistake: I forgot to FreeArgs(). - 1.2 - 2/15/96 - Major bug/stupid mistake: never advanced to the next collection chunk, so FTXTs with multiple CHRSs would only have the first chunk repeatedly scanned until out of memory/system crash. Why do I have trouble remembering to set to ?! :-) - Another boner: string buffer was 1 byte too short, so strings weren't null-terminated. ClipWrite: - 1.0 - 2/9/96 - 1.0a - 2/10/96 - Added the NOPARSE option. - Initial release (limited). - 1.1 - 2/12/96 - Now quietly fails on systems running less than WB 2.04. - Rewrote using an exception handler and added error messages. - Stupid mistake: I forgot to FreeArgs(). The Author: -=========- Jody Tierney Grey Wanderer on: 29118 Lark Street - Pro~Net BBS - (219) 825-9164 Elkhart, IN 46514-9579 - Panoptic Network - (219) 674-5292 USA 674-9250 E-mail: 102673.1743@compuserve.com (Greg Donner will relay any messages to me)