home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
CLIPIT10.ZIP
/
CLIPIT.DOC
next >
Wrap
Text File
|
1990-11-06
|
7KB
|
192 lines
CLIPIT: An OS/2 Text Mode Clipboard Utility.
===========================================
1. Legalese
--------
This program is Copyright (c) 1990, Chris Laforet and Chris Laforet
Software. The program is released by its copyright owner into the
public domain for distribution as long as the distribution is free of
charge (apart from minor charges to cover the cost of a diskette or
normal online service charges for some BBSes) and as long as it
accompanied by this document.
Use of this software for any purpose whatsoever constitutes your
unqualified acceptance of the following statements:
The copyright holder makes no warranty or representation that this
software will be error free. The copyright holder hereby disclaims any
and all warranties, either expressed or implied, including but not
limited to any implied warranties of merchantability or fitness for
any particular purpose. The user agrees to take full responsibility
for the selection of and any use whatsoever made of this software.
IN NO EVENT WILL THE COPYRIGHT HOLDER OR ANY AGENT THEREOF BE LIABLE FOR
ANY DAMAGES WHATSOEVER (INCLUDING WITHOUT LIMITATION DAMAGES FOR LOSS OF
BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION OR
THE LIKE) ARISING OUT OF THE USE OF, INTERRUPTION IN THE USE OF, OR
INABILITY TO USE THIS SOFTWARE, EVEN IF THE COPYRIGHT HOLDER HAS BEEN
ADVISED OF ANY POSSIBILITY OR LIKELIHOOD OF SUCH DAMAGES.
2. Description
-----------
Clip It! is a small little project started by me about 6 months ago
which was to become an OS/2 replacement for that neat little DOS
utility published by PC Magazine called "Snipper". It was meant to be
a learning exercise in the use of shared-memory segments and with
monitors.
Clip It! will run in any full-screen session and pop-up at the press of
Ctrl-F8. The user is presented with the choice of marking an area of
the text screen and saving the information to a file or to a clipboard
buffer, or to play-back the contents of the clipboard buffer as
keystrokes in the current session.
3. Usage Notes
-----------
To start Clip It!, simply enter the name CLIPIT on the OS/2 command
line and hit enter to execute it. Alternatively you can have it
automatically invoked everytime you start an OS/2 session by having the
following after the invocation for CMD.EXE in the protshell line in
your CONFIG.SYS:
/k c:\os2init.cmd
as in:
protshell=pmshell.exe os2.ini os2sys.ini cmd.exe /k c:\os2init.cmd
^^^^^^^^^^^^^^^^^
OS2INIT.CMD can have the following statements:
@echo off
iffull
if errorlevel 1 goto end
clipit
:end
IFFULL is a PD program floating around which returns an errorlevel if
the shell is running in anything other than a full-screen text session.
If you are interested in IFFULL, you can get it from the BBS listed
below.
Once Clip It! has been installed, you can pop it up by pressing
Ctrl-F8. Once popped-up, you can select if you wish to cut a segment
of the screen to the clipboard or to file. If you choose either of
these, you will be presented with a large flashing cursor. Move this
using the following keys to your desired start position, and then press
Enter. You can then move to the other end of the rectangular inverse-video
area to cut. Once this has been done, you may press Enter again to cut it
to the clipboard or to file.
If you are planning on cutting it to file, you will then be asked to
provide a pathname for the destination file. The cut section is
APPENDED to the file if it already exists.
If you choose to paste the text from the clipboard, then you will be
returned to your application and then the clipboard contents will be
sent in as keystrokes.
You may also choose to uninstall the program, which means that Clip It!
will be removed from monitoring the current full-screen group. Other
invocations of Clip It! in other sessions and the clipboard will be
left intact (as long as this is not the only invocation of Clip It!).
You may abort most of these operations by using the Esc key.
4. Keystrokes
----------
In the menu, you may use the up and down arrows to move the light-bar
to the selection of your choice. You may also press the option's letter
as a shortcut method. Pressing Enter selects the choice. Pressing Esc
exits the menu back to your application.
While marking text, the following keys are active:
Up Arrow/Down Arrow -- Move up and down by one line.
Rt Arrow/Left Arrow -- Move right and left by one column.
Home/End -- Move to beginning and end of the line.
PgUp/PgDn -- Move to the top and bottom of the screen.
Esc -- Abort operation.
Enter -- Select position as being valid.
While entering a filename, the following keys are active:
Rt Arrow/Left Arrow -- Move to next or previous character.
Ctrl-Rt Arrow -- Move to end of filename.
Ctrl-Left Arrow -- Move to beginning of filename.
Alt-C -- Clear the field completely.
Ins -- Toggle insert mode on and off.
Del -- Delete character under the cursor.
Backspace -- Delete character left of the cursor.
Esc/Alt-Q -- Abort the operation.
Enter/Alt-X -- Accept the filename and save screen segment.
5. Caveats!
-------
Do not clip stuff into the clipboard in another session while you are
pasting the current clipboard in another one. I need to lock this
possibility out using a semaphore, but am too busy to do it right now.
6. The Future
----------
Who knows what the future holds? Some of the things I would like to do
with Clip It! are the following:
+ Lock the clipboard with a semaphore while pasting.
+ Give statistics or a view of what is in the clipboard.
+ Allow configurable hotkey and colors.
If I hear from enough of you, I might just do these things.
7. Contacting me
-------------
I am a self-employed programming consultant. If your company needs
some contract programming in C or C++ in DOS or OS/2, please feel free
to contact me for more information. If you have comments about this
program feel free to drop me a line via any of the following means:
* US Mail: Chris Laforet Software
511-D Poplar St
Graham, NC 27253
* Ma Bell: 1-919/226-6957
* Compuserve: ID: 76120,110 (Chris Laforet)
* BIX: Laforet
* Genie: XTX74591
* Fidonet: 1:151/401 and 1:151/402
If you have any flames about this program, please address them to NUL.
Finally, you can call my Fidonet BBSes, one of which I am currently
developing under OS/2. I have numerous OS/2-related file areas and
also tie in to the international OS/2 echo conference. Be forewarned
that I do not give first-time callers immediate access to my systems.
I must upgrade you first. Anyway, here are the particulars:
* The Programmer's Oasis BBS - 919/226-6984 - HST/2400/1200/300,N,8,1
* The Programmer's Oasis 2 BBS - 919/226-7136 - HST/2400/1200/300,N,8,1