使用 autolisp 脚本更改显示配置

Change displayconfiguration with autolisp script

我试图通过 autolisp 命令调用 displaymanager 配置选择,但它不起作用。

当我直接从命令行调用命令 DISPLAYCONFIGSETCURRENT 时,它起作用了!但是在 autolisp 脚本中,它不起作用,我无法弄清楚..

我的目标是,调用 DISPLAYCONFIGSETCURRENT,然后预设我的配置,所以它可以通过单击或命令更改。

这是我的代码,在此先感谢您的帮助。

(defun c:changeConfig()
    (setq config "Standard")
    (command "DISPLAYCONFIGSETCURRENT" config)
(princ)
)

我自己找到了解决方案 :D

这是我的代码:

(defun c:changeConfig()
    (setq config "myDisplay")
    (command "-AecDisplayConfigSetCurrent" config)
(princ)
)