设置多台显示器的物理布置 [英] Set physical arrangement of multiple monitors

查看:112
本文介绍了设置多台显示器的物理布置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:设置可执行以下操作的可执行文件
1.确认显示器设置正确
2.启动几个应用程序,以在正确的屏幕上启动它们.

到目前为止,我知道该怎么做
1.验证并设置屏幕分辨率
2.在适当的屏幕上启动应用程序

我仍然需要:
1.验证并设置显示器的物理布置.

没有人知道如何使用.net框架设置物理布置(可以在显示属性"->设置"中手动完成)吗?


让我澄清一下. PC有5个监视器.用户不断进入显示属性->设置和更改物理布局设置.那将是顶部的部分,每个监视器的图片标记为1,2,3,4,5等...,您可以在其中拖动它们以匹配物理布局.实际的物理设置不会更改,但用户会继续在设置中进行更改.我正在寻找一种在启动应用程序之前确保这些设置正确的方法.
[/Edit]

Problem: Setting up a executable that will do the following
1. Verify monitor setup is correct
2. Launch several apps starting them on the correct screen.

What I know how to do so far
1. Verify and set screen resolution
2. Launch applications on the appropriate screen

What I still need:
1. Verify and set monitor physical arrangement.

Does anyone know how to set the physical arrangement (what can be done manually at Display Properties -> Settings) using the .net framework?


Let me clarify. The PC has 5 monitors. Users keep going into Display Properties -> Settings and changing the physical layout setup. That would be the part at the top with a picture of each monitor labeled 1,2,3,4,5 etc... where you can drag them around to match physical layout. The actual physical setup does not change but users keep changing it in the settings. I am looking for a way to make sure those settings are correct before launching the applications.
[/Edit]

推荐答案

基于您更新的问题的第二个答案.

您似乎想做的是检查/设置已知显示器的屏幕分辨率.同样,这是不可能的.现在深吸一口气,再看一次这个问题.

问题的根源是用户更改了显示属性.有可能控制环境吗?可以通过明确说明操作要求是什么,也可以从中取消特权.

对我来说,这就像一组预期需求"期一样简单.我不知道您的应用程序以及它的设置方式,但是我确信它已经做出了许多假设才能正常运行.如果用户删除了一个二进制文件,或者您有自动启动的服务而用户禁用了该文件,或者...您知道我的想法,该怎么办? (我希望)

可能您需要做的只是将您设置的需求记录为
1.该应用程序需要5个监视器
2.不得更改显示器的物理分辨率和屏幕分辨率.
等....


另一种方法是,如果所有监视器都可以具有完全相同的分辨率,例如1280x780,则在应用程序启动期间,将屏幕分辨率设置为所有监视器,如果您未能设置任何监视器,则退出.
Second Answer based on your updated questions.

It appears what you trying to do is check/set screen resolution for a known monitor. Again that is not possible. Now take a deep breath and look at the issue one more time.

You source of problem is users changing the display properties. Is it possible to control the environment? This can be done by either clearly stating to the what the operating requirements are or taking away the privilege from them.

To me it is as simple as ''Set of expected requirement'' period. I don''t know your application and how it is setup, but I am sure it has puts many assumptions in order to run properly. What if the user deletes one of your binary files, or you have a service that starts up automatically and the user disables it, or ... you got my idea. ( I hope)

May all you need to do is document you set of requirement as
1. The application requires 5 monitors
2. The physical and screen resolution of the monitors shall not be altered.
etc....


Another approach is, if all the monitors can have exactly the same resolution, for example 1280x780, then during your application startup set the screen resolution to all of the monitors, if you fail to set any one then your quit.


我很可能是错的,但我认为这是不可能的.

Windows(或其他操作系统)究竟如何才能知道"屏幕的实际位置?
I could well be wrong on this but I don''t think that it is possible.

How on earth can Windows (or any OS, for that matter) ''know'' where the screens are physically located?


您的问题在某种程度上具有误导性.您说过,您知道如何设置屏幕分辨率以及要了解的物理布置.什么是身体安排?然后,通过询问您是否要以编程方式控制显示"->设置"中手动完成的操作,来阐明您的问题.屏幕分辨率和颜色不是吗?它与身体安排有什么关系?

正如亨利所说,您不可能获得物理"安排.时期.如果您有多台监视器,则可以使用一个第一,第二..."显示屏进行检查.我不确定如何获取该信息,但是图形适配器可能会显示该信息.

如果您只是尝试设置分辨率和颜色,则表示您知道它,但是如果需要更多信息,请参见

动态屏幕分辨率 [以编程方式更改屏幕方向 [
Your question is somewhat misleading. You stated you know how to set screen resolution and what to know physical arrangement. What is physical arrangement any ways? Then you proceeded to clarify your question by asking you want control programmatically what is done manually at Display->Settings. Isn''t that the screen resolution and color? what does it have to do with physical arrangements?

As Henry stated, there is no way you can get the "physical" arrangement. period. If you have multi monitor you can check with one First, Second ... display. I am not sure how to get that info, but may graphics adapters display that.

If you simply are trying to set the resolution and color, you stated you know it, but if you need more information look at

Dynamic Screen Resolution[^]

Changing Screen Orientation Programmatically[^]


这篇关于设置多台显示器的物理布置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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