Deluxe Clipboard (draft)

waisttherapeuticSoftware and s/w Development

Nov 4, 2013 (4 years and 1 month ago)

367 views

Deluxe Clipboard

(draft)


Version 1.
3
: 0
5
/
0
1/2005

by Laszlo Hars

www.hars.us


Function


Deluxe Clipboard is a

tool to help
, among many other uses,

rearranging brainstorming texts into
structured documents. Named clipboar
ds
are

of a great help, with instructive names like
Introduction, Actions, Function, References, etc.
The Clipboard.ahk
file contains the Deluxe
Clipboard
AutoHotKey script
. I
ts compiled version
is
Cliboard.exe
. They

p
rovide

unlimited
number of private, na
med clipboards to






Copy:


Ctrl
-
Alt
-
C



Cut:


Ctrl
-
Alt
-
X



Paste:


Ctrl
-
Alt
-
V



Append:

Ctrl
-
Alt
-
A



Cut
-
Append:

Ctrl
-
Alt
-
Y



any selection in
MS Windows
applications
, which

us
e

Ctrl
-
C for copy,
Ctrl
-
X for cut
and
Ctrl
-
V for paste to/from the Windows clipboard.


AutoHotKey


AHK, the shorthand for AutoHotKey, is a scripting language interfacing MS Windows internal
functions and implementing new ones. It is



Free & open source (
GNU General Public License
).



A keyboard, joystick, and mouse
remapper
.



A
word recogniti
on engine

that expands abbreviations as typed (auto
-
replace).



A simple yet powerful hotkey (shortcut key) scripting language, supporting both mouse
and keyboard macros.



A regular scripting language.



Includes a
script compiler

that converts a script to an

EXE.



Includes AutoScriptWriter, a macro recorder.

AHK version 1.0.30 was used to develop the script, and the supplied compiler created the
Clipboard.exe stand alone program
. They remain resident in memory and

provide the private
clipboard functions
,
activ
ated by

HotKeys
. If the un
-
compiled script is to be used, AHK has to be
installed in the target computer.


Private Clipboards


Private clipboard
names

consist of numerals, English
letters,
"
#
"
,

"
_
"
,
"
@
"
,
"
?
"
,
"
[
"
, and
"
]
"




Well formed names
: 01, Greetings
[2], gut_und_schlecht, #5, finished?, @home



Invalid names
: 1.1, You&Me,
Mon Amis
, $1000, <1>, a
-
z, 100%


In response to a HotKey, t
he already used names are shown in a sorted drop down list
in a GUI,
with incremental search (beginning of a name and Up or D
own arrow)
.


The last
-
used name is pre
-
selected


Enter accepts

the selected clipboard name

and performs the

default

action


Repeated H
ot
K
eys provide their original functions (auto exit)


Another HotKey pressed when the GUI is active changes the function to

the last HotKey


Esc, Click on Cancel or on
the w
indow close button
[x]: e
xits without performing any clipboard
function


Typing
Alt
-
U
nderlined
Letter
,
or mouse
Click

on the corresponding button
: performs
the
appropriate
action with
the
typed
-
in or
selecte
d
keyboard
name
.






Limitations


Using the AHK built in variable
C
lipBoardAll
, to access the content of the clipboard

interferes
with MS Word (adds bookmarks
, pastes graphic, which cannot be seen, etc.).


Append


The content of instances of the Wind
ows clipboard cannot be simply concatenated. They contain
function references, data, markers, etc. To get around this problem, the script uses an array for
each clipboard name. If an append
-

or cut
-
append
-

operation is requested, a new entry is created
in

the array
corresponding to the private clipboard name
and the content of the current

clipboard
moved there. At
the
Deluxe Clipboard
paste

request

each array entry is individually pasted to the
application

in a loop
.