简体   繁体   中英

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. The other 2 someone else uses it.

By default all of the screen resolutions are set to be the (non-optimum, and very annoying) size of 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).

Is there a way of automating this so that on Monday it sets it to 1280x1024, Tuesday it reverts to 1024x768 and so on?

(Windows XP Pro)

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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