简体   繁体   English

我可以强制监视器使用批处理/ C ++切换输入

[英]Can I force a monitor to switch input using batch/c++

I have 2 graphics cards (an integrated Intel card, and an NVIDIA card), and both of them are connected to a single monitor (VGA / HDMI). 我有2个图形卡(集成的Intel卡和NVIDIA卡),并且它们都连接到单个监视器(VGA / HDMI)。

say somehow both of them have different outputs (I have a windows 7 and a VM, each of which is using one card). 说说他们两个都有不同的输出(我有一个Windows 7和一个VM,每个都使用一张卡)。

Is there any command/API that I can send to the monitor so it can automatically switch its input from VGA to HDMI or the other way around? 是否可以将任何命令/ API发送到显示器,以便它可以自动将其输入从VGA切换到HDMI或以其他方式切换?

No — there is no publicly documented, standard way of doing this. 否-没有公开记录的标准方法。

(It's possible that some rare monitors may provide a way of doing this. I've never seen or heard of one, though, and it'd be proprietary to that monitor.) (有可能某些罕见的监视器可能提供了一种方法。但是我从未见过或听说过,这是该监视器的专有技术。)

There are several tools that support this via DDC commands. 有几种工具可以通过DDC命令来支持此功能。

One example is https://clickmonitorddc.bplaced.net/ 一个示例是https://clickmonitorddc.bplaced.net/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C ++,监视键盘输入 - C++, monitor for keyboard input C ++:如何在文件的输入和输出之间切换? - C++: How can I switch between input and output from file? 使用C ++监视注册表 - Monitor registry using C++ C++:在开关中我需要按两次才能获得单个输入 - C++: In the switch I need to press twice to get a single input 如何在C ++中使用if语句终止向量输入 - How can I Terminate Vector Input Using if statement in C++ 如何在C / C ++中强制删除锁定的文件? - How can I force the deletion of locked files in C/C++? 到目前为止,我可以在Visual Studio 2015中使用C ++模块做什么? (使用实验性开关) - What can I do with C++ modules in Visual Studio 2015 so far? (using the experimental switch) 如何使用C ++模板创建任意数量的case的switch语句生成器? - How can I create a switch statement generator with an arbitrary number of cases using C++ templates? C++ -- 如何使用 switch 语句和 constexprs 获得可用的货币转换器? - C++ -- How can I get a working currency converter using switch-statements and constexprs? c++。 我试图通过在开关内使用数组来获取用户输入,但是当我运行代码时它显示分段错误? - c++ . I'm trying to get user input by using array inside switch but when i run the code it's showing segmentation fault?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM