Messages - mmdoogie [ switch to compact view ]

Pages: prev1 [2] 3next
6
DC Member Programs and Projects / Re: Monitor Dimmer
« on: January 23, 2008, 07:11 PM »
Thanks for the API link Ehtyar.

When I started this, a friend suggested I look at the gamma settings of my graphics card.

However, I have my monitors color-managed, and the control panel disabled the gamma setting because of that,
so I have a suspicion that something like this would not work in my case.

Here is a much nicer version of the program.
It works with arbitrary monitor numbers, (instead of being hardcoded for my monitor sizes  8)),
and remembers dimming and show settings between launches.

7
DC Member Programs and Projects / Monitor Dimmer
« on: January 23, 2008, 01:43 AM »
I guess this program could be a little more flexible, and its not that amazing, but I wanted to share it as it fulfilled a need I had.
Also, I wanted to share the technique I used as it took me a while to get it to work the way I wanted.

Background:

I have two monitors.
Often, I'll watch a movie or play a game on the left one, while I will also be browsing web pages and chatting with people on the right one.
If the movie or game is dark, and I'm looking a mostly white webpage, there is too much light.

Solution:

This program creates a window.  A variable-alpha-transparency, black, always-on-top window, with no titlebar, etc.
It covers my entire right monitor.  BUT, by setting WS_EX_TRANSPARENT, its made transparent to events, and thus mouse clicks, keystrokes, etc. are passed on through to the windows below it.

Win Numpad+ darkens the screen, Win Numpad- lightens the screen, Win Numpad* toggles the overlay on/off.

Getting WS_EX_TRANSPARENT set in an AHK script is as simple as adding +E0x20 to the Gui creation command.

So, without further ado, I present -- MonitorDimmer.
In both AHK and EXE.

Enjoy!
--matt


8
Something I wrote for a very similar idea can be found here...
https://www.donationcoder.com/forum/index.php?topic=7449.0

What makes mine different is it only puts one icon into the tray -- click it and select a window to restore.

9
Post New Requests Here / Re: IDEA : hide window to system tray 1 icon
« on: February 24, 2007, 08:42 PM »
Ah, here we go... this version seems to work well, reshowing all of the windows upon close, and adding a menu option to show them all at any time.

10
Post New Requests Here / Re: IDEA : hide window to system tray 1 icon
« on: February 24, 2007, 05:38 AM »
Yes I found that afterwards, thanks.
However, I am still having problems getting it to work because I couldn't find a way to ask for all the menu items,
so I am having to store an additional copy of the data, and I still have a few bugs to work out...

--matthew

Pages: prev1 [2] 3next
Go to full version