Screen Resolution Changer
I was asked to create a postinstall task for such an instance.
Here is the readme file.
Description:
This script is meant to allow the user to configure the resolution of a computer screen after deployment of an operating system.
Requirements:
This script should be run after the video driver is installed, as that process often changes the resolution.
Procedure:
There are 2 ways this script can be run.
1. Double click the application and choose a predefined x and y coordinate from the drop down menu, then click on "Set Resolution"
(If using as a postinstallation task on the K2000, just enter "rez_change.exe". The postinstalltion task will stop until this data is inputed).
2. Via commandline options where you will not be prompted for the resolution, unless you want to be.
From the commandline (or on the k2000 enter these commands in the commandline field):
/x: Use this switch to set the horizontal dimension of the screen
/y: Use this switch to set the vertical dimension of the screen
/manual:Use this switch to manually enter the dimensions of the screen in a dailog box
Examples:
a. rez_change.exe /x:1024 /y:768
(Sets resolution to 1024x768).
b. rez_change.exe /manual
user will be prompted to enter the dimentions of the x and y coordinates, then click on "Set Resolution"
The postinstalltion task will stop until this data is inputed.
Rez_Change Download
v.1 8/19/2011
-initial release with commandline options and dialog box.
**Known Issues**
None
Answers (3)
When I run this on an XP box it doesn't work correctly.
When I run a simple .bat script with this one line:
rez_change.exe /x:800 /y:600
I get the following error:
HRC Error
Unable to change screen resolution
Error function call:
ChangeDisplaySettingsEx 1
Error code:
-2(DISP_CHANGE_BADMODE)
Requested settings:
Width: 800
Height: 600
BitsPP: 32
Refresh Rate: 60
Comments:
-
This is odd... it works on my test XP machine when I run:
rez_change.exe /x:1024 /y:768
I get the same error (the one I specified above) when I try either of these:
rez_change.exe /x:800 /y:600
rez_change.exe /x:1280 /y:1024
I can set both 800x600 and 1280x1024 manually without any problem. - awingren 12 years ago
This isn't working for me, even on my desktop. Windows 7 x86. Regardless how I run it (from desktop or scripted install) I get a pop-up for a moment, talking about control-alt-shift-R (too fast to read completely). Either with or without command line parameters.
Any idea who the author is or how to contact them?
so that the conversation will remain readable.