使用命令反应器
 - (vl-load-com)
- (or *commandReactor*
- (setq *commandReactor*
- (VLR-Command-Reactor
- nil
- '
- (
- (:vlr-commandWillStart . test:command-will-start)
- )
- ) ;_ end of vlr-command-reactor
- )
- )
- (defun test:command-will-start (reactor command-list / objlist)
- (princ (strcat "\n您执行了 " (car command-list) "命令!"))
- )
|