home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
294.lha
/
ss.doc
< prev
next >
Wrap
Text File
|
1989-10-08
|
3KB
|
90 lines
SS By: Khalid Aldoseri
== ===================
This program will execute another program based on whether or not a specific
key was pressed. It is intended for use in the startup-sequence in order to
allow you whether or not to load a specific program by just holding down a
a key when SS runs, or by pressing and releasing the key _before_ the
startup-sequence gets to SS.
Example:
In your startup-sequence you would have a line with the following:
ss runback c:DSD
Now, if you hold down and release the left Alt key before the startup sequence
gets to that line, the 'runback c:DSD' command will be executed. If the left
Alt key was not pressed, nothing will happen and 'ss' will just abort.
Note: SS only checks the last key pressed, so if you press a key, then change
your mind, just hit any other key before SS is executed.
SS defaults to the Left Alt key, however you can use other keys by specifying
a key name as follows:
ss [option] programname arg1 arg2 .. argn
where [option] is one of the following:
:la Left Alt (this is the default key)
:ra Right Alt
:ls Left Shift
:rs Right Shift
:lm Left Amiga
:rm Right Amiga
:ctrl Control
:help Help
:f1 FKey 1
:f2 Fkey 2
.
.
:f9 FKey 9
:f0 FKey 10
The arguments provided after the program name are passed on to the program
that will be run.
So, to tell 'ss' to load c:DSD if the left shift key is pressed, you would
use the following command:
ss :ls runback c:DSD
You can use 'ss' for anything. For example:
ss :help info
will run the 'info' program and display its results on the startup CLI if the
help key was pressed.
You can also tell SS to run a program if the specified key is NOT pressed.
This is done by replacing the ':' with a '~'.
ss ~ls runback c:DSD
This will always run c:DSD _unless_ you hold press the left shift key before
the startup-sequence gets to the above line.
Note: I expect SS to have problems with the TimeSaver. This is due to both
the way SS reads the keyboard, and the way the TimeSaver buffers the keyboard.
Use the function keys or the right shift key when using the TimeSaver.
This program is freely distributable as long as you distribute the doc file
with it and do not modify either the program or this doc file.
All comments, suggestions, bug reports, etc. should be sent to:
/-------------------\
| Khalid Aldoseri |
| P.O. Box 3300 |
| Manama, Bahrain. |
| Tel: (973) 690066 |
| Fax: (973) 694777 |
\-------------------/
Compuserve 75166,2531