发信人: vicky (萧遥), 信区: ansi
标 题: Cterm Advanced Application
发信站: 日月光华站 (Thu Oct 14 21:53:41 1999) , 站内信件
高级应用
--------------------------------------------------------------------------------
脚本文件
执行脚本的功能放在自动留言的高级下面.当此功能有效的时候,就代替自动留言。
具体做法是做一个脚本文件,格式如下:(*.txt)以Cterm开头一行.
';':注释
每一个过滤器写成一行:格式为
(??)标志字符串|对应的执行动作或字符串
(??)中有两个字母,头一个字母取M(m)或N(n)分别表示标志字符串出现的场合是在别人发的消息中还是所有场合.后面一个字母取值仍然是M,N,M表示如果出现标志字符串则弹出窗口显示对应的字符串,N表示执行动作
执行动作的格式同批处理格式.'|'为分割.比如我要忽略所有的上站信息,可以写:
(MN)上站罗|\n
我要对所有人的信息回答"我不在",但是对abc回答"你好!",写成:
(MN)abc|r你好!\n
(MN)R 回讯息|r我不在\n
再比如,我要在任何发现有"Cterm"字样的时候弹出窗口提示,可以写成:
(NM)Cterm|找到了"Cterm"!
(这个可以用来寻找文章.)
注意:
1,一共最多有50个过滤器,因为太多会影响速度.
2,前面的过滤器优先级高.
3,'\w'失效
4,当文件格式错误时,过滤器自动失效
最后提醒小心使用,bug一般是过滤器由于设计不当造成.
example.txt是一个示例.
Cterm
;This is a example
;功能:屏蔽abcd的消息
;(M?)仅对Message信息有效(N?)对所有信息有效
;标志字符串"abcd "
;执行:"r不要打扰我\n"
;总的解释:当abcd发消息来的时候回答:不要打扰我
;(?N)回答方式:发到站点;(?M)弹出窗口提示
;';'为注释,文件必须用"Cterm"开头
(MN)abcd |r不要打扰我\n
文本到二进制相互转化
该功能类似于UUencode和UUdecode,但是针对BBS特点,结合Cterm的自动拷贝文章功能进行了改动,加入了行号。而且编码效率高于UUencode。
使用时需要用一个文本文件做中介。BIN->TXT时先将二进制文件转化成一个文本文件,然后将文本文件粘贴到BBS上,注意Cterm粘贴一次最好不要超过300行。从BBS上下载的时候只需要将文章用自动拷贝拷下来,然后解码就可以了。
--
__________ ________
______ _____ ____/_____ _____ __/
___ //_/__ __/ _★ | / /__ /
♂--__--,<---_--/___---__---|/-/-_--/----♀
_ /| | /_____/ _ /| / /_/
/_/ |_|● /_/ |_/ mailto:wdkun@fudan.edu
※ 来源:·日月光华站 bbs.fudan.edu.cn·[FROM: 10.29.11.11]
Sender: vicky Xiao Yao, message area: ansi
Title: Cterm Advanced Application
Sending station: Sun and Moon Guanghua Station Thu Oct 14 21:53:41 1999, station mail
Advanced applications
script file
The function of executing the script is placed under the advanced level of automatic message. When this function is effective, it replaces the automatic message.
The specific method is to make a script file with the following format: *.txt with a line starting with Cterm.
';': comment
Each filter is written on one line: the format is
?? Flag string corresponding execution action or string
There are two letters in ??, the first letter is M m or N n respectively indicating whether the sign string appears in messages sent by others or all occasions. The value of the following letter is still M, N, M means if If a flag string appears, a pop-up window will display the corresponding string, and N represents the execution action.
The format of executing actions is the same as the batch processing format. ' ' means segmentation. For example, if I want to ignore all website information, I can write:
MN on station Luo n
I want to answer "I'm not here" to everyone's messages, but answer "Hello!" to abc, written as:
MN abc rHello! n
MN R reply message rI'm not here n
For another example, if I want to pop up a window prompt whenever the word "Cterm" is found, I can write:
NM Cterm Found "Cterm"!
This can be used to find articles.
Notice:
1. There are a maximum of 50 filters in total, because too many will affect the speed.
2. The previous filter has high priority.
3,'w' is invalid
4. When the file format is incorrect, the filter automatically fails.
Finally, I would like to remind you to use it with caution. Bugs are usually caused by improper filter design.
example.txt is an example.
Cterm
;This is an example
;Function: Shield abcd messages
; M? Valid only for Message messages N? Valid for all messages
;Flag string "abcd"
;Execution: "rDon't disturb me n"
; General explanation: When abcd sends a message, reply: Don’t disturb me
; ?N Answer method: send to the site; ?M Pop-up window prompt
;';' is a comment, the file must start with "Cterm"
MN abcd rdon’t disturb me n
Text to binary conversion
This function is similar to UUencode and UUdecode, but it is modified based on the characteristics of BBS and combined with Cterm's automatic article copy function. Line numbers are added and the encoding efficiency is higher than UUencode.
When using it, you need to use a text file as an intermediary. When using BIN > TXT, first convert the binary file into a text file and then paste the text file on the BBS. Note that Cterm paste should not exceed 300 lines at a time. When downloading from the BBS, you only need to paste the article. Just copy it with automatic copy and then decode it.
,<
mailto:wdkun@fudan.edu
Source: Sun and Moon Guanghua Station bbs.fudan.edu.cn [FROM: 10.29.11.11]