【问题标题】:Change displayconfiguration with autolisp script使用 autolisp 脚本更改显示配置
【发布时间】:2018-09-05 16:46:36
【问题描述】:

我正在尝试通过 autolisp 命令调用显示管理器配置选择,但它不起作用。

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

我的目标是,调用 DISPLAYCONFIGSETCURRENT 然后预设我的配置,所以它可以一键更改。

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

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

【问题讨论】:

    标签: autolisp


    【解决方案1】:

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

    这是我的代码:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-28
      • 1970-01-01
      • 2020-07-29
      • 2023-03-31
      • 1970-01-01
      相关资源
      最近更新 更多