Beruflich Dokumente
Kultur Dokumente
9c 2/24/92 ****
Think about it. How many times do you use your computer to do the same
task over and over again? Maybe it's logging on to a bulletin board,
backing up your hard disk, uploading files to the home office, printing a
letter, etc.. Wouldn't it be nice if you could just turn on a recorder,
record the complete task and then play it back with one keystroke
whenever you needed to do that task again? Enter Playback.
You can also use the included Menu program to playback your keystrokes
using a point and select menu. The menu program also lets you view the
contents of your keyfiles, delete them, change their playback speed, add
explanatory notes to them, rename them, and launch them at some later
time.
OK, that last paragraph gave you a brief overview of what Playback does,
but how would you use it? I hesitate here because I'm sure I've just
scratched the surface on ways it can be used, and I don't want to
discourage you from finding your own applications.
Batch files: I use Playback to record "batch" files. Why? I just start
recording the keystrokes using Playback and then save them to file. Next
time I run the Menu program all the keystrokes sequences I saved are
turned into keyfiles, and I just use the Menu program to rename them to
whatever I want. No editing, nothing. Just record and save. And I can
do so much more than normal batch files.
Desktop publishing: I not only use the Menu program to launch my desktop
publisher, but if I'm working on a large project I know I'll be doing for
a while, I create a keyfile that loads the file I want and then goes to
the page I want. In addition, when it comes time to print, I'm given a
whole slew of options that I must select every time I print a page.
Since my responses are always the same I just record the keystrokes and
then play them back using the Playback "hot key".
Fun: Try creating a keyfile of yourself writing a letter and then launch
it at some later time when you're not there but someone else may be
watching. It's eerie seeing a computer going about the business of
writing and editing a letter with no one at the keyboard.
Monitoring: Since you can start recordings from a batch file, without
user initiation, you can use Playback to monitor how people are using
your computer. If you can duplicate the initial conditions, you can
watch as what they did is played backed exactly as it happened.
* Go to the subdirectory where the Playback files are located and enter
"init" at the DOS prompt. Among other things, the "init" program
modifies your "AUTOEXEC.BAT" file in your root directory to include this
subdirectory (where the Playback files are) in the "path" statement.
Your original "AUTOEXEC.BAT" file will be saved as "AUTOEXEC.OLD". Init
also tells Playback where your Keyfiles should be saved and the Menu
program where to look for Keyfiles.
* After running Init, reboot your computer so the changes in your
AUTOEXEC.BAT file take affect.
You must run the INIT program or Playback won't work correctly. It
should only be run once. DON'T run it every time you use Playback.
PB.COM only takes up about 3K of memory, plus whatever you allocate for
the keystroke buffer (more on that later).
To load Playback into memory enter "pb" at the DOS prompt. If you'd like
Playback automatically loaded whenever you turn on your computer then put
the phrase "PB" in your "AUTOEXEC.BAT" file on a separate line AFTER the
"PATH ..." statement.
When you load Playback into memory a few words appear telling you the
"hot keys" that Playback uses. (All the rest of the info encourages you
to register. When you do, this info will no longer appear.) Playback
has 3 hot keys: one to start and stop recording keystrokes, one to
playback the keystrokes, and one to save the keystrokes into a file.
Although the default values are Ctrl-R (press the Ctrl and R keys at the
same time) to record, Ctrl-P to Playback, and Ctrl-S to save, you can
change these using the Menu program.
== Recording ==
When you press the Record "hot key" (Ctrl-R by default) you will hear an
ascending series of beeps. This signals that Playback is now recording
your keystrokes. When you've finished recording you press the Record
"hot key" again. This time you'll hear a descending series of beeps
letting you know that the recording is complete.
If you try to record more keystrokes than the keystroke buffer can hold,
Playback will automatically terminate the recording when the buffer gets
full. You can increase the size of the keystroke buffer by using the
Menu program.
== Saving ==
If you want to turn the recorded keystrokes into a keyfile then you
press the Save "hot key" (Ctrl-S by default). When you press the Save
"hot key" the recording will be stopped (if you haven't stopped it
already) and the keystrokes will be saved in a file. The next time the
Menu program is run it will turn the keystrokes in this file into
keyfile.
== Playback ==
When you press the Playback "hot key" (Ctrl-P by default) the keystrokes
in the keystroke buffer will be replayed just as you entered them, with
the same delay between keystrokes.
By the way, you can cancel the playback of keystrokes by pressing the
Escape key. This holds true no matter how the playback is initiated.
You can also pause during a playback by pressing the space bar.
When you want the playback to resume you just press any key.
== On/Off ==
There may be times when Playback's hot keys are the same ones you need to
use within an application. You can turn Playback Off or On by pressing
the Off/On hot key which is Ctrl-O by default. It is a toggle: press it
once and Playback becomes inactive, press it again and Playback becomes
active again.
== Un-installing Playback ==
If you'd like to remove Playback from memory then enter "pb/u" at the DOS
prompt. However, remember that you must un-install TSR's in the reverse
order from which they were loaded. If you don't it's possible your
computer will "lock up" and require a re-boot.
=== The Menu Program ===
Note: If you have another program that uses "menu" to activate then you
can rename MENU.COM to PBMENU.COM to eliminate the conflict. You'd then
enter "pbmenu" at the DOS prompt to activate the menu program. DO NOT
RENAME MENU.COM TO ANYTHING ELSE BUT PBMENU.COM.
To run the Menu program enter "menu" at the DOS prompt. The first thing
the Menu program does is look to see if you have saved any keystroke
sequences since the last time the program was used. If you have, then
they will be converted into Keyfiles. These Keyfiles will be given a
name. The first will be "-B", the second "-C", and so on.
* Run the Menu program at this time by entering "menu" at the DOS prompt.
You can enter "menu" at any DOS prompt, at any time, and the Menu program
will appear. You don't have to be in the Playback subdirectory to run
the Menu program.
The list to the left of the screen is a list of all the Keyfiles you've
created. Select the one you want by using the up, down, home, end, PgUp
or PgDn cursor keys.
To the right of the screen are three areas. The top area displays the
keystroke sequence of the hi-lited Keyfile. Normal ASCII characters are
hi-lited. Shift states (the state of the Insert, Scroll Lock, and Caps
Lock keys) are enclosed within [ ] and are displayed only when they
change. All others keystrokes are displayed within < >. For example,
<enter> means the enter key has been pressed, <bs> means the backspace
key, <Ins> means the Insert key, etc..
The middle area on the right contains two values: the Playback speed and
the Launch Time.
Which speed should you use? Well try "Turbo" first. If that doesn't
work then "Boost" probably will. If "Boost" doesn't work then select
"Normal". To change a Keyfile's Playback speed: hi-lite the desired
Keyfile and press the left or right cursor keys until the desired speed
is hi-lited.
Launch (not lunch) time: This is the time you want the program to be
launched at. We'll talk about this later when we discuss launches.
The bottom of the right side of the screen is the "Note" area. You can
leave notes of up to 160 characters on the contents and purpose of each
of your Keyfiles. Those using "PC-Directory" or "FileNotes" will
recognize these notes as being the same as the filenotes you're used
to.
=== Menu Options ===
The top line of the screen displays a menu of your options. You just
press the hi-lited key to exercise that particular function.
* Store: Pressing S for "Store" exits the Menu program and puts the
hi-lited Keyfile into Playback's keystroke buffer. To playback the
keystrokes just press the Playback "hot key" (Ctrl-P by default).
To use the editor, highlight the desired file and then press E for
edit. The file will be listed on the screen. Characters that you
can edit will appear as they are, those you can't edit will appear as
small dots. You can use the cursor keys and the Tab, Home and End
keys to position the cursor at the value you want to change. Press
the desired key. The value will change from the old to the new and
the cursor will move to the next value. You may edit as many
characters as you wish.
Editing keystroke delays is much the same. The delay that will
occur between the previous keystroke and the keystroke the cursor is
at each is displayed in the lower right corner of the screen. Press
F10 to increase the delay or F9 to decrease it. (Although not
displayed on the Edit screen, F7 and F8 also let you change the delay
but in 1 second steps rather than in steps of 1/18th of a second.)
At any time during the edit process you can press the Esc key to
return to the Menu program without saving any changes you may have
made. If you want to incorporate the changes into the keyfile then
press F1. If you want to create a new keyfile with another name then
press F2.
* Configure: Pressing C for Configure brings up another screen of
information. All of the items you can change will be listed to the
left of the screen along with their current values. To change a
particular item:
- Use the up and down arrow keys to select the item you want to
change.
- Press the left or right arrow keys to change the value of the
selected item.
To change a "hot key" you need to select the shift state (Ctrl, Alt, or
Ctrl and Alt) and then select a key. For example to change the Playback
"hot key" to Ctrl-D you would first select "Playback Shift State", press
the right arrow key until "Ctrl" appeared, then press the down arrow to
select "Playback Key", press the right arrow (to indicate you want to
change it) and then press the desired key: D. Clear as mud? Try it and
it'll all make sense.
Color Monitor? If you have a color monitor then select "Yes". This just
affects whether the Menu program displays in color.
Buffer Size: Change this value to change how many keystrokes the
keystroke buffer holds. Remember that each keystroke adds 5 bytes to the
amount of memory that Playback uses. For example, if you select 200
keystrokes, then Playback will take up about 4K of memory, 3K for the
program and 1K (200*5) for the keystroke buffer.
Boost Threshold: Remember how Boost works? Any delays above a certain
threshold are acted on, any below the threshold are ignored. This value
sets that threshold. I've found that a threshold of 1.5 seconds works
well. You may want to lower or raise it depending on how fast you type
and the type of applications Playback is activating. Experiment.
Press Escape when you've made all your changes. The Menu program will
re-appear.
If Playback is in memory (and it should be when you use the Menu program)
then you'll have to reboot the computer and reload Playback to notice
changes made to the Hot Keys, Buffer Size, and Boost Threshold.
If you press N to "Launch <N>ow" the Menu program ends and the hi-
lited Keyfile runs immediately.
You can only select one file for Later Launch. The file selected for
a later launch is marked with a "*" to the left of its name. If you
want to un-select a file that you've already selected for a Later
Launch simply select it again and the mark will disappear.
When you exit the Menu program, an alarm is set so that at the launch
time the keystrokes in the keyfile selected for later launch (the one
with the "*") get loaded into Playback and get played back just as if
you'd pressed the Playback hot key. For example, if you leave your
computer on at night you could have Playback launch a Keyfile to
retrieve your E-Mail right before you get to work in the morning, so
it's waiting for you when you arrive.
* Insert_Note: Pressing the Insert key lets you leave a 160 character
note on the contents or purpose of the hi-lited Keyfile. Type in
your note and press Enter.
Pressing Escape lets you escape without changing the note. Entering
a note only one character in length deletes the note.
As we've discussed several times, you can have your keyfiles playback
just by entering their name at the DOS prompt. However, there are a
couple of other options you can also execute from the DOS prompt by
adding command line options to the keyfiles name.
Storing a keyfile: If you just want to load the keyfile into Playback
so you can activate it later using the Playback hot key, then use the
command line option "/s" where "s" stands for store. As an example
entering "test /s" at the DOS prompt would load the "test" keyfile into
Playback, but not replay it until you press the Playback hot key.
Delayed Launches: You can have a specific keyfile launched at some later
time by using the command line option "/hhmm" where "hhmm" is a 4 digit
number with the first two digits specifying the hour (in 24 hour military
time) and the last two digits representing the minutes. The 4 digit
number MUST be exactly four digits long or things will get messed up.
DON'T seperate the hours and minutes by a colon, or anything else. As
an example entering "test /0330" would load the keyfile "test" into
Playback and replay it at 3:30am. Likewise "test /1750" would playback
the "test" keyfile at 5:50pm.
Normally, you can only run a keyfile from a batch file if it is the last
item in the batch file. Why? Because all a keyfile does is load its
keystrokes into Playback and initiate a replay. The keyfile program then
quits and Playback goes about its business of stuffing in keystrokes
totally in the background. So what happens if you run a keyfile from a
batch file anywhere but as the last item? The keyfile will load its
keystokes into Playback, initiate the Playback, and then end. The rest
of the batch file will continue to execute even tho the playback of the
keystrokes has just started.
However, due to popular demand, I've created a batch file command line
option that lets you use keyfiles anywhere in a batch file. You can
even put several of them in a batch file if you want, or call one keyfile
from inside another. To do this just append the keyfile name with the
"/B" command line option when you specify it in the batch file. For
example, the "test" keyfile would become "test /b". There is a
limitation though: The keyfile must exit at the DOS prompt. In other
words, whatever task you have the keyfile performing, it must return to
the DOS prompt when it's finished. In addition, you don't need to use
the "/B" option if you're using the store or delayed launch command line
options because the Playback of keystrokes in this case isn't immediate.
Instead of using the hot keys to start and stop a recording, you can do
it from within a batch file by using "pb /r" to start the recording and
"pb /s" to stop the recording. Playback disables its hot keys when a
recording is initiated this way so you must use "pb /r" to stop the
recording. In addition, since you don't know how many keystrokes the
user may enter, you'll probably want to use the "Configure" portion of
the Menu program to greatly increase the keyboard buffer size.
This feature can be a real boon for those of you looking to see how users
react to a new piece of software. You can create a batch file to start
the program that uses "pb /r" to initiate a recording, then loads the
software, and finishes with "pb /s". You'll then have a keyfile of
everthing the user did as he/she tried the software.
=== Problems? ===
The second reason is that you didn't install Playback correctly. More
than likely you didn't run the initialization program. Delete all the
Playback files, return your autoexec.bat file to the way it was and
reinstall again according to the instructions given earlier. If Playback
is not installed correctly, things won't work right.
"When I try to run MENU the program locks up or starts generating 'divide
overflow' error messages." Chances are you've got a .COM file in the
Playback subdirectory that isn't one of the Playback files or a Keyfile.
Remember, there shouldn't be any .COM files in the Playback subdirectory
(other than the keyfiles) except AL.COM, PB.COM and MENU.COM. Don't
rename any of these files.
You can freely distribute the keyfiles you create using Playback to
others. Of course they won't run unless the end user also has Playback.
Take care.