这是一个bug,使用如下方法可以避免: (defun c:test() (setvar "cmdecho" 0) (command "_.vbanew") (repeat 10 (ysx-use-api nil "Private Declare Function GetCurrentProcessId Lib \"kernel32\" () As Long" "GetCurrentProcessId" nil nil)) (ysx-use-api nil "Private Declare Function GetCurrentProcessId Lib \"kernel32\" () As Long" "GetCurrentProcessId" nil T)) (princ) ) |