Thanks PAT..
But is not realy what I'm looking for....
I need to cancel all command...or
unable all command..or
desactive all command...or
return NIL all command...or.....
the code you posted...run someting AFTER the command was ENDED or FAILED....
but I need to run somthing AFTER the command was DETECTED to cancel this current command.
so was thinking that (:vlr-commandWillStart.....) can be the job..
The..
(defun CancelCommand (Rea Cde)
(exit);(alert (strcat "Command Cancelled --> " (car Cde)))
)
(setq a (vlr-command-reactor nil (list (cons :vlr-commandWillStart (function CancelCommand)))))
not seem to work...it call the (exit) before starting the command.