| View previous topic :: View next topic |
| Author |
Message |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Mon Apr 09, 2007 12:09 pm Post subject: Is there way to adjust screen brightness or gamma for WinXP? |
|
|
Is there a way to adjust screen brightness or gamma for WinXP?
I have a couple cheap monitors that look good if I turn down the brightness manually everytine we turn them on, but this gets old, and every once in awhile you press the wrong button, like gauss(even more annoying - reset).
ATI has sliders for brightness, gamma, etc..
So I thought it would be nice to make a tiny utility to be able to ajust brightnes only on any computer(or even allmost all computers).
A DLL, API or registry would be nice.
But I googled for registry for an hour or 2 and didnt find any registry settings.
Windows XP home is what I need it most on.
Thanks for reading... |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Apr 12, 2007 2:49 pm Post subject: |
|
|
vtol,
You can change the GAMMA using the following API functions GetDeviceGammaRamp and SetDeviceGammaRamp. The only issue is creating the Array to hold the Ramp. The array is supposed to be an array of WORD values with room for 768 elements. I guess you could use the @fill() function to create memory for the elements but you will have a hard time reading all those elements since VDS has no simple way of creating and reading C Array's. These functions are found in the gdi32.dll
| Code: |
# One proposed solution to create an array with 768 WORD elements
%A = @fill(@Prod(2,@Prod(256,3)),,Z)
|
I found this information at the following locations.
The Code Project
and
Windows Color System
This would be best suited for a DLL and not for VDS scripting due to the task of creating and reading C array's. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Apr 12, 2007 6:44 pm Post subject: |
|
|
OK Thanks a lot for all that stuff.
I guess its a job for a DLL maker.
I found a good utility to do this + it saves icons position.
But the problem with it and ones like it, I have 5 computers in the house with system commander, so I would have to purchase 5 x 4 = 20 copies, which is over kill extreme for a poor white boy like me.
In other words, when I have to buy 4 copys for each computer because each computer contains 4 OS's.
Thats why another reason I think software should be sold as per-home, or single parts for corporate use.
Thanks again  |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Thu Apr 12, 2007 6:57 pm Post subject: |
|
|
vtol,
Well if you were using only Windows Vista then it would be a bit easier since Windows Vista has an API specifically for doing what you want. If I had to guess when using older OS'es the program would have to reconize your Video Card and Monitor to perform this task. I know for a fact that there is a difference in how NVidia and ATI performs these tasks. Not to mention that not all monitors support all these abilities. MSDN says you should check the Monitor's abilities first before trying to change these settings. That tells me that there is no clear cut standard for PNP Monitor configurations. This is really at the driver level and not at the user level and very dependent on hardware. I guess you could say it is like CD burnning where you would have to support multiple different hardware solutions. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Thu Apr 12, 2007 7:07 pm Post subject: |
|
|
yep
I've read a lot of stuff telling exactly all of what you have mentioned, and I kinda figured it would be that way when I couldnt find and reg tweak setting on the net.
So I might try another utility where the sellers serial will allow me to use it on all my computers at home, that is after I test them a bit.
Yes I realize its a risk, but isnt everything now days
This is a not so important project for me anyways, I may never finish it, hee hee.
Thanks for your intense help, I really appreciate it. |
|
| Back to top |
|
 |
|