home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / PCBOARD / CBOX27.ZIP / SYSCHAT.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1994-03-04  |  1KB  |  130 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     Integer  INTEGER001
  20.     Integer  INTEGER002
  21.     String   STRING001
  22.     String   STRING002
  23.  
  24. ;------------------------------------------------------------------------------
  25.  
  26.     GetToken STRING002
  27.     STRING002 = Upper(STRING002)
  28.     If (InStr(STRING002, "/SHIFT")) INTEGER002 = 2
  29.     If (InStr(STRING002, "/F10")) INTEGER002 = 3
  30.     If ((STRING002 == "") || (INTEGER002 == 0)) Then
  31.         PrintLn 
  32.         PrintLn "@X0C> The SYSCHAT.PPE is not installed correctly. It must be followed by:"
  33.         PrintLn 
  34.         PrintLn "@X0C> @X0F/F10    @X0Cif installed in PCBTEXT record #333"
  35.         PrintLn 
  36.         PrintLn "@X0C> @X0F/SHIFT  @X0Cif installed as a SHIFT-F# key in PCBSetup"
  37.         PrintLn 
  38.         Wait
  39.         KbdStuff Chr(13) + Chr(27)
  40.         End
  41.     Endif
  42.     If (U_Logons() < 1) Then
  43.         SaveScrn
  44.         Chat
  45.         RestScrn
  46.         End
  47.     Endif
  48.     STRING001 = PPEPath()
  49.     If (INTEGER002 == 2) SaveScrn
  50.     WrUSys
  51.     If (INTEGER002 == 2) Then
  52.         PrintLn 
  53.         DispText 175, 128
  54.         Print "@SYSTIME@"
  55.     Endif
  56.     Shell 0, INTEGER001, STRING001 + "CHATBOX.EXE", "CHATBOX.CNF " + STRING002
  57.     RdUSys
  58.     If (INTEGER002 == 2) Then
  59.         RestScrn
  60.         PageOff
  61.     Endif
  62.     While (Len(KInkey()) > 0) Do
  63.     EndWhile
  64.     If (INTEGER002 == 3) KbdStuff Chr(27)
  65.     End
  66.  
  67. ;------------------------------------------------------------------------------
  68. ;
  69. ; Usage report (before postprocessing)
  70. ;
  71. ; ■ Statements used :
  72. ;
  73. ;    3       End
  74. ;    1       Wait
  75. ;    6       Goto 
  76. ;    4       Let 
  77. ;    1       Print 
  78. ;    8       PrintLn 
  79. ;    9       If 
  80. ;    1       GetToken 
  81. ;    1       Shell 
  82. ;    1       DispText 
  83. ;    2       KbdStuff 
  84. ;    1       WrUSys
  85. ;    1       RdUSys
  86. ;    2       SaveScrn
  87. ;    2       RestScrn
  88. ;    1       Chat
  89. ;    1       PageOff
  90. ;
  91. ;
  92. ; ■ Functions used :
  93. ;
  94. ;    3       +
  95. ;    6       ==
  96. ;    1       <
  97. ;    1       >
  98. ;    5       !
  99. ;    1       ||
  100. ;    1       Len(
  101. ;    1       Upper()
  102. ;    3       Chr()
  103. ;    2       InStr()
  104. ;    1       U_Logons()
  105. ;    1       PPEPath()
  106. ;    1       KInkey()
  107. ;
  108. ;------------------------------------------------------------------------------
  109. ;
  110. ; Analysis flags : S
  111. ;
  112. ; S - Shell to DOS ■ 5
  113. ;     This may be normal if the PPE need to execute an external command,
  114. ;     but may be actually anything... nasty (formating HD, rebooting,...)
  115. ;     or usefull (sorting, maintenance,...). Check!
  116. ;     ■ Search for : SHELL
  117. ;
  118. ;------------------------------------------------------------------------------
  119. ;
  120. ; Postprocessing report
  121. ;
  122. ;    0       For/Next
  123. ;    1       While/EndWhile
  124. ;    4       If/Then or If/Then/Else
  125. ;    0       Select Case
  126. ;
  127. ;------------------------------------------------------------------------------
  128. ;                 AEGiS Corp - Break the routines, code against the machines!
  129. ;------------------------------------------------------------------------------
  130.