home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 8 / CDASC08.ISO / VRAC / CBOX24.ZIP / SYSCHAT.PPE (.txt) < prev    next >
PCBoard Programming Language Executable  |  1993-08-20  |  1KB  |  125 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.     If (INTEGER002 == 2) Then
  58.         RestScrn
  59.         PageOff
  60.     Endif
  61.     RdUSys
  62.     If (INTEGER002 == 3) KbdStuff Chr(27)
  63.     End
  64.  
  65. ;------------------------------------------------------------------------------
  66. ;
  67. ; Usage report (before postprocessing)
  68. ;
  69. ; ■ Statements used :
  70. ;
  71. ;    3       End
  72. ;    1       Wait
  73. ;    4       Goto 
  74. ;    4       Let 
  75. ;    1       Print 
  76. ;    8       PrintLn 
  77. ;    8       If 
  78. ;    1       GetToken 
  79. ;    1       Shell 
  80. ;    1       DispText 
  81. ;    2       KbdStuff 
  82. ;    1       WrUSys
  83. ;    1       RdUSys
  84. ;    2       SaveScrn
  85. ;    2       RestScrn
  86. ;    1       Chat
  87. ;    1       PageOff
  88. ;
  89. ;
  90. ; ■ Functions used :
  91. ;
  92. ;    3       +
  93. ;    6       ==
  94. ;    1       <
  95. ;    4       !
  96. ;    1       ||
  97. ;    1       Upper()
  98. ;    3       Chr()
  99. ;    2       InStr()
  100. ;    1       U_Logons()
  101. ;    1       PPEPath()
  102. ;
  103. ;------------------------------------------------------------------------------
  104. ;
  105. ; Analysis flags : S
  106. ;
  107. ; S - Shell to DOS ■ 5
  108. ;     This may be normal if the PPE need to execute an external command,
  109. ;     but may be actually anything... nasty (formating HD, rebooting,...)
  110. ;     or usefull (sorting, maintenance,...). Check!
  111. ;     ■ Search for : SHELL
  112. ;
  113. ;------------------------------------------------------------------------------
  114. ;
  115. ; Postprocessing report
  116. ;
  117. ;    0       For/Next
  118. ;    0       While/EndWhile
  119. ;    4       If/Then or If/Then/Else
  120. ;    0       Select Case
  121. ;
  122. ;------------------------------------------------------------------------------
  123. ;                 AEGiS Corp - Break the routines, code against the machines!
  124. ;------------------------------------------------------------------------------
  125.