Page 3 of 3

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 28 Sep 2017, 01:59
by jNizM
Glad it works for you. Report any bugs or requests you got.

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 30 Sep 2017, 13:38
by AladinZ
Hello. I have recently acquired an HDMI to VGA adapter, and found that it breaks DDC/CI. I have been experimenting with Class monitor, and it does the job for me. However, I would really like to be able to Incrementally change brightness with only two keyboard shortcuts, where each shortcut iteration adds or subtracts predefined values from the RGB channels, i.e., CTRL + Up and CTRL + down. Could you please provide a substitute to the script below that does that ?

Code: Select all

down::Monitor.SetBrightness(128, 128, 128)    ; Red - Green - Blue
up::Monitor.SetBrightness(10,  10,  10)    ; Red - Green - Blue
Thank you for the Incredible script.

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 04 Oct 2017, 02:33
by jNizM
@AladinZ

An example:

Code: Select all

; GLOBAL SETTINGS ===============================================================================================================

#NoEnv
#SingleInstance Force
#Persistent

SetBatchLines -1

; SCRIPT ========================================================================================================================

; Win + Numpad Add (+)    ->  Set Brightness incremental by 1
#NumpadAdd::
    CLR := Monitor.GetBrightness()
    Monitor.SetBrightness(CLR.Red + 1, CLR.Green + 1, CLR.Blue + 1)
return


; Win + Numpad Sub (-)    ->  Set Brightness decremental by 1
#NumpadSub::
    CLR := Monitor.GetBrightness()
    Monitor.SetBrightness(CLR.Red - 1, CLR.Green - 1, CLR.Blue - 1)
return


; Win + Numpad Mult (*)   ->  Set Brightness to default (128)
#NumpadMult::
    Monitor.SetBrightness(128, 128, 128)
return


; Win + Numpad Div (/)    -> Get Brightness
#NumpadDiv::
    GetBrightness := Monitor.GetBrightness()
    MsgBox % "Red:`t" GetBrightness.Red "`nGreen:`t" GetBrightness.Green "`nBlue:`t" GetBrightness.Blue
return


; INCLUDES ======================================================================================================================

#Include Class_Monitor.ahk

; ===============================================================================================================================
To set own Hotkeys see here -> docs/Hotkeys.htm

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 14 Dec 2017, 12:11
by AISblu
jNizM

Thank you sooo much !!! I've been using transparent window to dimm screen for years.)
Are'nt you interested in monitor brightness auto ajustment according to current day light at local town (date, latitude, longitude, sunrise & sundown time) ?
I've been trying to port this funcs from .js and .cpp but no success.
Here is sample: http://suncalc.net/

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 24 Dec 2018, 04:23
by ivill
Hi, Since the latest Windows 10 preview build 18305.rs_prerelease.181213-2133 installed, the script no longer works, anyone else who have the same issue?

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 16 Dec 2019, 15:08
by hasantr
jNizM wrote:
04 Oct 2017, 02:33
Hi this class is great. But it doesn't turn off as much light as I'd like . Minimum brightness is not enough. Do you have a suggestion?
I thank you.

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 16 Dec 2019, 15:16
by gregster
hasantr wrote:
16 Dec 2019, 15:08
Hi this class is great. But it doesn't turn off as much light as I'd like . Minimum brightness is not enough. Do you have a suggestion?
A black full-screen window perhaps ?

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 16 Dec 2019, 17:22
by hasantr
gregster wrote:
16 Dec 2019, 15:16
hasantr wrote:
16 Dec 2019, 15:08
Hi this class is great. But it doesn't turn off as much light as I'd like . Minimum brightness is not enough. Do you have a suggestion?
A black full-screen window perhaps ?
Thanks. I blacked out the monitor settings.

Re: Class Monitor (Brightness, ColorTemperature)

Posted: 19 Jan 2020, 08:48
by hasantr
jNizM wrote:
26 May 2015, 06:02
Class Monitor
Set monitors brightness and color temperature


Source
Class_Monitor.ahk (GitHub)


Example
Image


References
* GetDeviceGammaRamp
* SetDeviceGammaRamp
* How to Convert Temperature (K) to RGB


Contributing
- thanks to AutoHotkey Community


Questions / Bugs / Issues
Please report any bugs or issues here. Same for any questions.


Copyright and License
The Unlicense
This class is great. I thank you. There is only one problem. When the low brightness is adjusted, the effect of the temperature decreases.
How can the temperature effect be maintained despite this low brightness.