home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 294.lha / ss.doc < prev    next >
Text File  |  1989-10-08  |  3KB  |  90 lines

  1.                            SS   By: Khalid Aldoseri
  2.                            ==   ===================
  3.  
  4.  
  5. This program will execute another program based on whether or not a specific
  6. key was pressed.  It is intended for use in the startup-sequence in order to
  7. allow you whether or not to load a specific program by just holding down a
  8. a key when SS runs, or by pressing and releasing the key _before_ the
  9. startup-sequence gets to SS.
  10.  
  11. Example:
  12.  
  13. In your startup-sequence you would have a line with the following:
  14.  
  15.     ss runback c:DSD
  16.  
  17. Now, if you hold down and release the left Alt key before the startup sequence
  18. gets to that line, the 'runback c:DSD' command will be executed.  If the left
  19. Alt key was not pressed, nothing will happen and 'ss' will just abort.
  20.  
  21. Note: SS only checks the last key pressed, so if you press a key, then change
  22. your mind, just hit any other key before SS is executed.
  23.  
  24. SS defaults to the Left Alt key, however you can use other keys by specifying
  25. a key name as follows:
  26.  
  27. ss [option] programname arg1 arg2 .. argn
  28.  
  29. where [option] is one of the following:
  30.  
  31.     :la     Left Alt  (this is the default key)
  32.     :ra     Right Alt
  33.     :ls     Left Shift
  34.     :rs     Right Shift
  35.     :lm     Left Amiga
  36.     :rm     Right Amiga
  37.     :ctrl   Control
  38.     :help   Help
  39.     :f1     FKey 1
  40.     :f2     Fkey 2
  41.       .
  42.       .
  43.     :f9     FKey 9
  44.     :f0     FKey 10
  45.    
  46. The arguments provided after the program name are passed on to the program
  47. that will be run.
  48.  
  49. So, to tell 'ss' to load c:DSD if the left shift key is pressed, you would
  50. use the following command:
  51.  
  52.     ss :ls runback c:DSD
  53.  
  54. You can use 'ss' for anything.  For example:
  55.  
  56.     ss :help info
  57.  
  58. will run the 'info' program and display its results on the startup CLI if the
  59. help key was pressed.
  60.  
  61.  
  62. You can also tell SS to run a program if the specified key is NOT pressed.
  63. This is done by replacing the ':' with a '~'.
  64.  
  65.     ss ~ls runback c:DSD
  66.  
  67. This will always run c:DSD _unless_ you hold press the left shift key before
  68. the startup-sequence gets to the above line.
  69.  
  70. Note:  I expect SS to have problems with the TimeSaver.  This is due to both
  71. the way SS reads the keyboard, and the way the TimeSaver buffers the keyboard.
  72. Use the function keys or the right shift key when using the TimeSaver.
  73.  
  74. This program is freely distributable as long as you distribute the doc file
  75. with it and do not modify either the program or this doc file.
  76.  
  77.  
  78. All comments, suggestions, bug reports, etc. should be sent to:
  79.  
  80.  
  81.                       /-------------------\
  82.                       | Khalid Aldoseri   |
  83.                       | P.O. Box 3300     |
  84.                       | Manama, Bahrain.  |
  85.                       | Tel: (973) 690066 |
  86.                       | Fax: (973) 694777 |
  87.                       \-------------------/
  88.  
  89.                       Compuserve 75166,2531
  90.