Тема: Как сохранить progress bar?
> alex
Может тебе подойдет вариант без экспрессов?
Работает всегда...
(defun _progress-init (i1 /) (setq _prog-init (/ i1 100.) progress-safe 0.) (setvar "MODEMACRO" (strcat " 0 % " "...................................................................................................."))) (defun _progress (/ i) (setq progress-safe (1+ progress-safe)) (setvar "MODEMACRO" (strcat " " (itoa (setq i (fix (/ progress-safe _prog-init)))) " % " (substr "##################################################" 1 (/ i 2)) (substr "...................................................................................................." 1 (- 100 i)))) (if (= i 100) (progn (setq _prog-init nil progress-safe nil) (setvar "MODEMACRO" "")))) ;;; Проверка (_progress-init 1000) (repeat 1000 (command "delay" 50) (_progress) )