在 Windows 8 中执行自动更改连接的显示器 [英] Execute automatic change connected displays in Windows 8

查看:32
本文介绍了在 Windows 8 中执行自动更改连接的显示器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

短版

如何自动更改多个显示设置?NVIDIA,3 个显示器(2 个 DVI 和 1 个 HDMI),GPU 仅支持 2 个有源显示器.

How do I automate changing multiple display settings? NVIDIA, 3x monitors (2x DVI and 1x HDMI), GPU only supports 2 active monitors.

加长版

所以我有一个 NVIDIA GeForce GTX 560 Ti 可以同时运行两个显示器.它有两个 DVI 连接和一个 HDMI.我经常更换使用我的两台台式机显示器,而只使用 HDMI 连接一台台式机显示器和我的电视.

So I have a NVIDIA GeForce GTX 560 Ti which can run two displays simultaneously. It has two DVI connections and one HDMI. I often swap from using my two desktop monitors and connect only one of the desktop monitors plus my TV using HDMI.

我想使用批处理脚本或其他程序而不是使用 Windows 控制面板(控制面板所有控制面板项显示屏幕分辨率)或 NVIDIA 控制面板来自动执行前后更改.

I would like to automate the change back and forward using a batch script or other program instead of using the windows control panel (Control PanelAll Control Panel ItemsDisplayScreen Resolution) or the NVIDIA Control Panel.

我找到了一些关于使用rundll32.exeNvCpl.dlldtcfg ...."等的文档.这没有工作.我在 NVIDIA PDF 文档中使用的任何参数都没有任何反应.有没有人有一个有效的例子?我也在 Windows 7 上尝试过.

I found some documentation on using "rundll32.exe, NvCpl.dll, dtcfg ...." etc. This did not work at all. Nothing happens for any parameters I use from the NVIDIA PDF documentation. Does anyone have an example that works? I have tried this on Windows 7 as well.

我尝试使用 WMI 来查看监视器是否存在,但它只显示两个活动监视器.它不显示第三个非活动监视器.

I have tried to use WMI to see if the monitor is there, but it only shows the two active monitors. It does not show the third inactive monitor.

我尝试了 User32.dll 中的 EnumDisplayDevices,但这只会返回两个活动监视器.

I have tried EnumDisplayDevices from User32.dll, but this only returns the two active monitors.

我怎样才能让它工作?

我想让它在 C# 中工作,所以我也可以在更改音频设备时使用它:)

I would like to get this working in C#, so I can use it with changing audio device as well :)

推荐答案

虽然这可能不符合您的要求,但我在使用笔记本电脑为多台显示器供电时确实遇到了这个问题,最终我使用了 Display ProfilesUltraMon 中的功能.我从来没有编写脚本或使用过他们的 SDK,但我知道他们确实支持自动化和 SDK 访问.

Although this is may not meet your requirements, I did run in to this problem when using my laptop to power several monitors, and I ended up using the Display Profiles feature in UltraMon. I never scripted it or used their SDK, but I do know that they do support automation and SDK access.

注意:我与 UltraMon 没有任何关系,我只是使用他们的产品并发现它可以满足我的需求.

Note: I am in no way affiliated with UltraMon, I just used their product and found it to meet my needs.

这篇关于在 Windows 8 中执行自动更改连接的显示器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆