home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carsten's PPE Collection
/
Carstens_PPE_Collection_2007.zip
/
S
/
SPLCHT10.ZIP
/
SPLTCHAT.PPE
(
.txt
)
< prev
Wrap
PCBoard Programming Language Executable
|
1993-10-26
|
3KB
|
224 lines
;------------------------------------------------------------------------------
; .ss.
; `²²'
; .,sS$Ss,,s$ .,sS$$$Ss. .,sS$Ss,,s$ .ss. .sSs.
; .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
; $$$' .$$$' $$$²Sçsµ²' .$$$' .$$$'.$$$' .$$$' `$$b.
; $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$' ;$$$
; `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
; .sS²°$$$²²°"' d²°'
; .$$² .$$'
; $$$.,d$$'
; `²S$$S²'
;------------------------------------------------------------------------------
; P.P.L.X. 2.OO (C)1996 - Lone Runner / AEGiS CoRP'96
;------------------------------------------------------------------------------
; PPE 1.OO (plain) - Analysis ON - Postprocessing ON
;------------------------------------------------------------------------------
Integer INTEGER001
Integer INTEGER002
Integer INTEGER003
Integer INTEGER004
Integer INTEGER005
Integer INTEGER006
String STRING001
String STRING002
String STRING003
String STRING004
String STRING005
String STRING006
String STRING007
;------------------------------------------------------------------------------
If (AnsiOn()) Goto LABEL001
Cls
STRING007 = Time()
PrintLn "@POFF@Hello, @FIRST@, this is the Sysop." + Chr(13)
While (STRING001 <> Chr(27)) Do
STRING001 = KInkey()
STRING004 = MInkey()
If (STRING004 == Chr(27)) Gosub LABEL004
If (STRING001 == Chr(27)) Then
Goto LABEL005
Endif
If (STRING001 <> "") Then
If (STRING001 == Chr(13)) PrintLn ""
If (STRING001 == Chr(8)) Then
Print STRING001 + " "
Endif
Print STRING001
INTEGER003 = INTEGER003 + 1
Endif
If (STRING004 <> "") Then
If (STRING004 == Chr(13)) PrintLn ""
If (STRING004 == Chr(8)) Then
Print STRING004 + " "
Endif
Print STRING004
INTEGER006 = INTEGER006 + 1
Endif
EndWhile
PrintLn "@PON@Chat ended at ", Time()
Goto LABEL005
:LABEL001
STRING002 = 1
STRING003 = 1
INTEGER002 = 1
INTEGER001 = 10
STRING005 = 1
STRING006 = 13
INTEGER005 = 13
INTEGER004 = 22
STRING007 = Time()
Cls
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn ""
PrintLn "@POFF@@X0F┌─@X0C^@X0E Sysop @X0C^@X0F────────────────────────────────────────────────────────────────────@X00"
PrintLn "@X0F└─@X0DPress ESC for your current CHAT-STATS @X0F── @X0BV@X0A @FIRST@@X0B V@X0F ──"
While (STRING001 <> Chr(27)) Do
STRING001 = KInkey()
STRING004 = MInkey()
If (STRING004 == Chr(27)) Gosub LABEL004
If (STRING001 == Chr(27)) Goto LABEL005
If (STRING001 <> "") Then
If (STRING001 == Chr(13)) Then
STRING003 = STRING003 + 1
STRING002 = 0
Endif
If (STRING001 == Chr(8)) Then
AnsiPos STRING002 - 1, STRING003
PrintLn " "
STRING002 = STRING002 - 1
STRING001 = ""
If (STRING002 < 1) STRING002 = 1
Endif
If (STRING002 > 79) STRING003 = STRING003 + 1
If (STRING003 > INTEGER001 - 1) Goto LABEL002
AnsiPos STRING002 - 1, STRING003 + 1
ClrEol
:LABEL002
If (STRING002 > 79) STRING002 = 1
If (STRING003 > INTEGER001) STRING003 = INTEGER002
If (STRING001 <> "") Then
AnsiPos STRING002, STRING003
Color 10
PrintLn STRING001
AnsiPos STRING002 + 1, STRING003
ClrEol
STRING002 = STRING002 + 1
INTEGER003 = INTEGER003 + 1
Endif
Endif
If (STRING004 <> "") Then
If (STRING004 == Chr(13)) Then
STRING006 = STRING006 + 1
STRING005 = 0
Endif
If (STRING004 == Chr(8)) Then
AnsiPos STRING005 - 1, STRING006
PrintLn " "
STRING005 = STRING005 - 1
STRING004 = ""
If (STRING005 < 1) STRING005 = 1
Endif
If (STRING005 > 79) STRING006 = STRING006 + 1
If (STRING006 > INTEGER004 - 1) Goto LABEL003
AnsiPos STRING005 - 1, STRING006 + 1
ClrEol
:LABEL003
If (STRING005 > 79) STRING005 = 1
If (STRING006 > INTEGER004) STRING006 = INTEGER005
If (STRING004 <> "") Then
AnsiPos STRING005, STRING006
Color 11
PrintLn STRING004
AnsiPos STRING005 + 1, STRING006
ClrEol
STRING005 = STRING005 + 1
INTEGER006 = INTEGER006 + 1
Endif
Endif
EndWhile
:LABEL004
STRING004 = " "
AnsiPos 1, 14
PrintLn "You entered chat at : " + STRING007
AnsiPos 1, 15
PrintLn "The current time is : ", Time()
AnsiPos 1, 16
PrintLn "Number of characters YOU typed : ", INTEGER006
AnsiPos 1, 17
PrintLn "Number of characters SYSOP typed: ", INTEGER003
AnsiPos 1, 19
STRING006 = 19
STRING005 = 1
Return
:LABEL005
Cls
KbdStuff Chr(27)
KbdStuff Chr(13)
End
;------------------------------------------------------------------------------
;
; Usage report (before postprocessing)
;
; ■ Statements used :
;
; 1 End
; 3 Cls
; 4 ClrEol
; 2 Color
; 23 Goto
; 39 Let
; 4 Print
; 24 PrintLn
; 31 If
; 2 Gosub
; 1 Return
; 2 KbdStuff
; 13 AnsiPos
;
;
; ■ Functions used :
;
; 18 +
; 8 -
; 12 ==
; 8 <>
; 2 <
; 8 >
; 15 !
; 17 Chr()
; 4 Time()
; 1 AnsiOn()
; 2 KInkey()
; 2 MInkey()
;
;------------------------------------------------------------------------------
;
; Analysis flags : No flag
;
;------------------------------------------------------------------------------
;
; Postprocessing report
;
; 0 For/Next
; 2 While/EndWhile
; 13 If/Then or If/Then/Else
; 0 Select Case
;
;------------------------------------------------------------------------------
; AEGiS Corp - Break the routines, code against the machines!
;------------------------------------------------------------------------------