home *** CD-ROM | disk | FTP | other *** search
/ Amiga Times / AmigaTimes.iso / programme / trionbbs110 / Trion / docs / Utils / Attention.doc < prev    next >
Encoding:
Text File  |  1998-10-06  |  2.8 KB  |  108 lines

  1.  
  2.  
  3.  
  4.    =====( Attention V1.10 )===========================================
  5.  
  6.  
  7.         Trion 'Attention' System.
  8.  
  9.         (c) Copyright Paul Spijkerman, '98-'98. All rights reserved.
  10.  
  11.         Written for use with the Trion BBS package.
  12.  
  13.  
  14.    ===================================================================
  15.  
  16.  
  17.     Some sysops really want to see what is going on in their
  18.     scripts. You can add "echo" lines to scripts so that you
  19.     can look at a shell window what is going on but that isn't
  20.     very convenient.
  21.     So I made a program which shows a list of lines (AttViewer)
  22.     that are send to the list by a shell program (Attention).
  23.  
  24.     The program can be used in two ways:
  25.  
  26.     You can start the Viewer manually by for instance clicking
  27.     on a button in MiscGui (see further in this doc).
  28.     You then call:
  29.     Attenttion "This is a test"
  30.     in scripts to make text appear in the list.
  31.     In this way you can see what is going on as long if you have
  32.     the Viewer program running.
  33.  
  34.  
  35.  
  36.  
  37.     The other way is to have Attention start and stop the Viewer in a
  38.     script. Attention has 3 options:
  39.         
  40.     Trion Attention V1.00 (c)1998 Paul Spijkerman.
  41.     Use : <-options> "Text"
  42.  
  43.     Options:
  44.       -O   = Open the Trion Attention Viewer.
  45.       -Q   = Quit the Trion Attention Viewer.
  46.       -C   = Clear the Trion Attention Viewer.
  47.  
  48.  
  49.     Note that the 'AttViewer' has a -L flag which 'locks' it so it can't
  50.     be quited by 'Attention -Q'.
  51.     This is usefull if you start AttViewer manual instead of
  52.     by script. With this flag the Attviewer won't disappear
  53.     when the script is ready. But you can still use the -Q
  54.     flag at the end of the script so the AttViewer will
  55.     pop up if the script was started and you didn't start
  56.     it manually.
  57.  
  58.  
  59.     So if you want the viewer to "pop up" during a mail script
  60.     for instance you would use something like this:
  61.  
  62.     (If you want to use it manually just remove the -o and -q flags)
  63.  
  64.  
  65.  
  66. ;;;  Script to proces mail and .TIC files.
  67.  
  68. ;quit
  69. wait 2
  70.  
  71. avail flush >nil:
  72.  
  73. Attention -o "Mail: script started"
  74. trion  -max  "Mail processor is started, system can be a little slower"
  75.  
  76. trion:utils/CheckInbound -q
  77.  
  78. if WARN
  79.    Attention  "Mail: processor in PACK mode"
  80.    trion:utils/tmp P -d
  81. else
  82.  
  83.    ;;;  process  .TIC files
  84.  
  85.    Attention  "Mail: Processing tick files"
  86.    trion:utils/TrionTick  -p -b   -d
  87.  
  88.    ;CD trion:inbound       ;;; to enable unpacking ARC and ARJ archives
  89.  
  90.    Attention  "Mail: processor in UNpack mode"
  91.    trion:utils/tmp  U -c -b -f   -d
  92.  
  93.    ;CD trion:              ;;; to enable unpacking ARC and ARJ archives
  94.  
  95.    Attention  "Mail: Areafix started"
  96.    trion:utils/areafix   F -d
  97.  
  98.    Attention  "Mail: processor in PACK mode"
  99.    trion:utils/tmp  P    -d
  100.  
  101. endif
  102.  
  103. Attention "Mail: script finished" -q
  104. trion  -m -a -x  "Mail processor is Finished !"
  105.  
  106.  
  107.  
  108.