Page 1 of 1

Resolution auto-changer [Current version 1.0.1.0]

Posted: Sun Mar 18, 2012 7:29 pm
by Aury
Current version: 1.0.1.0

http://dl.dropbox.com/u/3061400/ChangeRes1010.zip

Description:
nominally speaking, this is a command line utility; basically what it does is it takes a number of arguments specifying a display mode, and then runs some specified program, and resets the display mode once the program has finished executing.
This program is meant for people with large displays, where the UI of transcendence is uncomfortably displaced from the game window, though it will work with any program.

How to use:
Step 1: create a shortcut to this program
Step 2: edit the "target" to look something like this:
""...path/ChangeRes.exe" -h=900 -w=1600 -f=60 -g=0 -b=32 "-p=...path/transcendence.exe" "-a=/windowed /debug""

-h controls height
-w controls width
-f controls frequency
-g controls flags (basically interlaced or not interlaced)
-b controls color depth

Its not necessary to include them all, as you can normally just specify height and width, and the rest of the values will be copied over from the current display mode, but this may not work if you have an interlaced display mode by default (in which case you need to put -g=0)
Step 3: save the link, and then run the program from there. It will do the rest. (note, if nothing seems to happen, its because you had invalid args. Try copying the line of text you have in the target, going into command prompt, right-clicking, select "paste" and then run that, and see what errors come up. Adjust it as necessary. Don't worry about experimenting, as it will reject any non-valid parameters. Do note that windows doesn't like some very low-res display modes & may experience glitches)

Changelog:

1.0.1.0
- added the ability to pass arguments to the target executable

1.0.0.2
- minor cleanup, no functionality changes.

1.0.0.1
- updated with readme, licensce, and license in assembly info

1.0.0.0
- initial release

License & Disclaimer:

Copyright (c) 2012, Alexander Huitric
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Re: Resolution auto-changer [Current version 1.0.1.0]

Posted: Mon Mar 26, 2012 8:51 am
by Star Weaver
Nifty! Do you happen to be using an API fo this that allows you to set and restore the gamma, too?

Re: Resolution auto-changer [Current version 1.0.1.0]

Posted: Sun Apr 01, 2012 3:29 pm
by Ttech
How come I never saw this before? And I thought it was an april fools joke?

Re: Resolution auto-changer [Current version 1.0.1.0]

Posted: Sun Apr 01, 2012 4:06 pm
by Amariithynar
It works just fine for me! :D

Re: Resolution auto-changer [Current version 1.0.1.0]

Posted: Mon Apr 02, 2012 12:10 am
by Star Weaver
Heh, I downloaded it but it's backlogged behind a tonne of portable software downloads which got delayed by me getting pissed off at how all unarchivers worked and writing a python script which got delayed by me getting pissed of at bash and beating my rc file into a bloody mess.... :D