本帖最后由 作者 于 2005-12-27 13:11:32 编辑
(defun c:gj (/ dcl_id pass ) (setq dcl_id(load_dialog "aa.DCL")) ;;; (if(< dcl_id 0) ;;; (exit) ;;; ) (if (not(new_dialog "aliu" dcl_1)) (exit) ) (SET_TILE "A1" "3600") (action_tile "accept" " (a_qt)(DONE_DIALOG)") (start_dialog)(unload_dialog dcl_1) (setq pass A_1) ;pass (COMMAND "shell" "shutdown -s -t (pass) ")
(princ) ) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (DEFUN a_qt() (SETQ A_1 (ABS (ATOF (GET_TILE "A1")))) )
我想实现弹出对话框,输入关机的时间,然后执行 "shutdown -s -t 1000",
请问错在哪
aliu:dialog{ label="自动关机程序";
:edit_box{ label="时间(秒)"; key="A1"; edit_width=6; value="3600"; } ok_only; }
|