Short: Snap and paste anywhere using the mouse. PowerSnap 2.1b Nov 22, 1992 1. Introduction --------------- Snap, snap, snap, snap, eggs and snap :-) Ahem... (If you don't get this don't let it bother you if you think I've gone completely bananas :-) PowerSnap is a utility that allows you to use the mouse to mark characters anywhere on the screen and paste them somewhere else, like in the CLI or in a string gadget. PowerSnap will check what font is used in the window you snap from and will look for the position of the characters automatically. It recognizes all non proportional fonts of up to 24 pixels wide and of any height so this should cover most fonts used. Snapping and pasting text is done using the mouse, making PowerSnap fast and easy to use. 2. Features ----------- o Fully supports the clipboard.device. You can use snapped text in all other programs that supports the clipboard.device. o Snaps all printable characters, from ' ' (32) to 'ÿ' (255). o Supports all keymaps. o Uses a relatively small handler that is about 11K long. PowerSnap uses about 20K of memory once it is installed (excluding memory used by the clipboard.device and commodities.library). o Recognizes all non-proportional fonts to up to 24 pixels wide and of any height. Also recognizes scaled fonts (bitmap and IntelliFonts). o Recognizes plain, underlined, bold, inverse, bold underlined, inverse underlined, inverse bold and inverse bold underlined characters :-) o Works with fonts with kerning data (like the courier.font supplied with Workbench 2.0). o Will remember character positions in up to 8 windows. Once you have snapped in a window the initial character position will be found immediately and you may also start snapping on spaces. o Joins long lines. o Pre-/appends strings to pasted text. o Has a single-line mode to paste all snapped text onto a single line. Whitespace and newlines will be changed to spaces. o Supports a middle mouse button if one exists. Using the middle button as qualifier gives the possibility to snap/paste without touching the keyboard! o Inputhandler is written in assembly for lowest possible overhead. New features for PowerSnap 2.0 & 2.1: ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ o Has a full intuition/gadtools interface to allow you to change all settings using the mouse. The window code is loaded from disk when needed for minimum memory usage. o PowerSnap is a standard commodity. Use the standard Commodities Exchange program to enable/disable it, kill it or to show/hide the settings window. o Multisnap feature. Allows you to snap something and add it to what you snapped before. This append-snapping is very useful to pick up several words that you might want to join into one long snap. The snapped items are put in the clipboard, each on its own line (with a linefeed between them). You can use the single-line paste to paste them all onto one line. o Recognizes text in all colors. Text in any color on a background of any color will be recognized. o SMARTSPACE feature to make PowerSnap consider unknown stuff as a space. This way you can do _much_ better word snapping in non-shell windows. o Can be told to try and recognize text in all open fonts in memory. PowerSnap will then recognize _all_ non-proportional fonts (up to 24 pixels wide) also if the font is not set in the window's rastport. o Keeps an optional history of snapped text. PowerSnap can remember up to 99 strings you snap. Pressing the history key will cause a history window to pop up and will allow you to select a string to be re-pasted. PROGRAM HISTORY ********************************************************************** VERSION 2.1b o Bug fix: inputevents are now properly cleared before filling them in and sending them to the input.device. This should fix problems with corrupted pastes a small percentage of users was encountering. o History window made keyboard controllable. Use the up/down arrow keys to select an entry. Press Return or Enter to accept, Esc to cancel. Will look best on Kickstart 3.0 because the listview gadget uses a highlight box to show which item is selected, on 2.0 a text gadget is used. o Word snapping improved. You may now start word snapping on a space. The space will be included in the snap. Request from Roger Nordin (or 'a major problem' as he calls it). I hope this makes Roger happy :^) o Fixed the annoying 'DisplayBeep() not going away until I stop snapping' problem :-) Thanks to Roger Nordin for bugging me about this. This bug(?) has been in PowerSnap from the day it was released but I never bothered to fix it. o Changed some code to use Kickstart 3.0 bitmap/rastport functions if possible. This should improve future compatibility. ********************************************************************** PowerSnap 2.1b by Nico François (Yes, Nico is my first name :-) thanks to Jorrit Tyberghein, Ives Aerts, Philip Marivoet, Kenny Grant and Herman Stevens for beta testing. Copyright (c) 1991/1992 Nico François // Thanks to \X/ Amiga for being the best computer ever!