简体   繁体   English

如何使用Ruby设置屏幕分辨率?

[英]How do I set the screen resolution with Ruby?

I work in one office whereby the machine is used by me 3 days per week. 我在一个办公室工作,我的机器每周工作3天。 The other 2 someone else uses it. 另外2个人使用它。

By default all of the screen resolutions are set to be the (non-optimum, and very annoying) size of 1024x768. 默认情况下,所有屏幕分辨率都设置为(非最佳且非常烦人)1024x768的大小。

When I come in Mon, Wed and Fri I immediately change the resolution to 1280x1024 (the max it can support, so I can see more than one window on the screen). 当我进入周一,周三和周五时,我立即将分辨率更改为1280x1024(它可以支持的最大值,因此我可以在屏幕上看到多个窗口)。

Is there a way of automating this so that on Monday it sets it to 1280x1024, Tuesday it reverts to 1024x768 and so on? 有没有一种方法可以自动执行此操作,以便在周一将其设置为1280x1024,周二它将恢复为1024x768,依此类推?

(Windows XP Pro) (Windows XP专业版)

您可以使用这样的程序http://www.dougknox.com/xp/utils/xp_userdisplay.htm来更改每个用户的分辨率,或者您可以使用这样的程序http://www.12noon.com/displaychanger。 htm并通过Ruby执行它。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM