Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Detect Windows 10 Night Light
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Detect Windows 10 Night Light
Is it possible to detect when Windows 10 NIght Light mode is enabled/disabled?
The only thing that shows in the log is 'Task.Activated.ApplicationFrameHost'
Thanks.
The only thing that shows in the log is 'Task.Activated.ApplicationFrameHost'
Thanks.
Re: Detect Windows 10 Night Light
Winapi has something or querying the registry might be a gross hack to get it done. See here: https://stackoverflow.com/questions/433 ... windows-10
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
Thanks, I'll look into it.jachin99 wrote: Mon Sep 03, 2018 10:04 pm Winapi has something or querying the registry might be a gross hack to get it done.
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
I'm stumped now as to how to watch for specific reg key changes in EG as an Event. I've searched for a related plugin, but cannot find.
Re: Detect Windows 10 Night Light
I attached a screenshot for you. Now I think if I were you my first attempt at this would be to check the value of that registry key during the day, and then at night and record the differences somewhere so that you have them for later. The first method that comes to my mind is to use the reg query function to somehow return the value of that key. Based on the given day or night value of that reg key, you could create an else/if statement in EG where if the day or night time value is true, then EG would jump to your desired macro. I tried this out but I can't seem to get an exact value from that registry key so that might take some time to figure out. What exactly are you trying to accomplish?
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
I did play with that a bit, but I need an Event. I want to auto adjust my LIFX office light based on day/night. I can already turn it on/off, but I have no context to change it based on day/night.jachin99 wrote: Tue Sep 04, 2018 4:43 pm The first method that comes to my mind is to use the reg query function to somehow return the value of that key.
Edit: Thinking about this more...maybe I could create a macro that runs the reg query every 15 mins and records something. The next question is as you mentioned...what to record. The reg key data doesn't really present much. I'll play around with manually turning Night Light on/off to see what changes. I still don't know how one would indicate a change.
Last edited by cableghost on Tue Sep 04, 2018 5:31 pm, edited 1 time in total.
Re: Detect Windows 10 Night Light
This might be closer to what you are looking for: viewtopic.php?f=9&t=982&hilit=suntracker
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
Ah, that looks promising...thanks.jachin99 wrote: Tue Sep 04, 2018 5:26 pm This might be closer to what you are looking for: viewtopic.php?f=9&t=982&hilit=suntracker
Re: Detect Windows 10 Night Light
viewtopic.php?f=2&t=8165 This looks like it might control your lights but I don't have any to test. If you have never added a plugin to EG what you need to do for this particular plugin is first download it. Then create a new folder under EG's directory located at C:\Program Files (x86)\EventGhost\plugins named something like LIFX for example. Take the files you downloaded, place them in the folder then Restart EG, and add the plugin via the little blue puzzle piece at the top. There is likely some further setup required for EG to find your lights but I'll help you out the best I can. Once suntracker is setup, and LIFX is setup, click the Gear icon to create a new macro, and select the action you want your macro to perform. Once you see the macro & action in eventghost, drag the sunrise text from your log on the right side of the EG window into said macro, and it should perform that action when the sunset or sunrise event hits your log.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Detect Windows 10 Night Light
ok so here you are.
add a python script action to your Autostart group. in the action put the code below.
You can run it manually the first time. after that it will run automatically each and every time EventGhost runs.
I need to get the specific gamma settings for bright and dim from your monitor. so this script is going to print out what those settings are the first time it runs. it will be right after the event that is generated. paste that information into a forum post for me and tell me if the Night Light was active or not. This way I can get the thing synchronized properly as far as the On and Off events go.
the line I am going to need is going to look like this
add a python script action to your Autostart group. in the action put the code below.
You can run it manually the first time. after that it will run automatically each and every time EventGhost runs.
I need to get the specific gamma settings for bright and dim from your monitor. so this script is going to print out what those settings are the first time it runs. it will be right after the event that is generated. paste that information into a forum post for me and tell me if the Night Light was active or not. This way I can get the thing synchronized properly as far as the On and Off events go.
Code: Select all
import threading
try:
event.set()
t.join(1.0)
except NameError:
event = threading.Event()
def stop_thread(_):
event.set()
eg.Unbind('Main.OnClose', stop_thread)
return False
eg.Bind('Main.OnClose', stop_thread)
def run():
import ctypes
from ctypes.wintypes import WORD, HDC, BOOL, LPVOID
user32 = ctypes.windll.User32
gdi32 = ctypes.windll.Gdi32
GetDC = user32.GetDC
GetDC.restype = HDC
GetDeviceGammaRamp = gdi32.GetDeviceGammaRamp
GetDeviceGammaRamp.restype = BOOL
hdc = GetDC(eg.messageReceiver.hwnd)
old_settings = []
state = True
while not event.isSet():
lpRamp = ((WORD * 256) * 3)()
res = GetDeviceGammaRamp(hdc, lpRamp)
if not res:
raise ctypes.WinError()
new_settings = []
for i in range(3):
color = lpRamp[i]
color_values = []
for j in range(256):
color_values += [int(color[j])]
new_settings += [color_values]
if new_settings != old_settings:
state = not state
eg.TriggerEvent(prefix='NIghtLight', suffix='On' if state else 'Off')
print new_settings
old_settings = new_settings[:]
event.wait(0.250)
event.clear()
t = threading.Thread(target=run)
t.daemon = True
t.start()
Code: Select all
[[0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280], [0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280], [0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280]]
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
Thanks. I already have this plugin working, but my goal is to change the brightness of my LIFX office light as it relates to day/night.jachin99 wrote: Wed Sep 05, 2018 1:02 am viewtopic.php?f=2&t=8165 This looks like it might control your lights but I don't have any to test.
- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Detect Windows 10 Night Light
no worries m8.
But there is the answer to the question you asked. So if anyone else is looking for this information they will be able to locate it as well.
I may modify it a bit so the user can make the necessary adjustments to it easily in order for it to synchronize properly.
as far as the Lifx stuff goes. it has been a really long time since i even messed around with it. I do not personally own one of the devices so I am not able to easily test. If you can locate a python 2 library already made up porting it to work with EG is not all that hard to do.
But there is the answer to the question you asked. So if anyone else is looking for this information they will be able to locate it as well.
I may modify it a bit so the user can make the necessary adjustments to it easily in order for it to synchronize properly.
as far as the Lifx stuff goes. it has been a really long time since i even messed around with it. I do not personally own one of the devices so I am not able to easily test. If you can locate a python 2 library already made up porting it to work with EG is not all that hard to do.
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
Thank you. I'll report back on this.kgschlosser wrote: Wed Sep 05, 2018 3:04 am ok so here you are.
add a python script action to your Autostart group. in the action put the code below.
You can run it manually the first time. after that it will run automatically each and every time EventGhost runs.
-
cableghost
- Posts: 37
- Joined: Thu Oct 10, 2013 9:43 pm
Re: Detect Windows 10 Night Light
I ran the script and below is what I received. This seems like a lot of data, though I have 6 displays connected. Note that the script ends with 'Off' even when excuted with Night Light function on.kgschlosser wrote: Wed Sep 05, 2018 3:04 am add a python script action to your Autostart group. in the action put the code below.
Code: Select all
09:09:44 Python Script
09:09:44 [[0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280], [0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280], [0, 256, 512, 768, 1024, 1280, 1536, 1792, 2048, 2304, 2560, 2816, 3072, 3328, 3584, 3840, 4096, 4352, 4608, 4864, 5120, 5376, 5632, 5888, 6144, 6400, 6656, 6912, 7168, 7424, 7680, 7936, 8192, 8448, 8704, 8960, 9216, 9472, 9728, 9984, 10240, 10496, 10752, 11008, 11264, 11520, 11776, 12032, 12288, 12544, 12800, 13056, 13312, 13568, 13824, 14080, 14336, 14592, 14848, 15104, 15360, 15616, 15872, 16128, 16384, 16640, 16896, 17152, 17408, 17664, 17920, 18176, 18432, 18688, 18944, 19200, 19456, 19712, 19968, 20224, 20480, 20736, 20992, 21248, 21504, 21760, 22016, 22272, 22528, 22784, 23040, 23296, 23552, 23808, 24064, 24320, 24576, 24832, 25088, 25344, 25600, 25856, 26112, 26368, 26624, 26880, 27136, 27392, 27648, 27904, 28160, 28416, 28672, 28928, 29184, 29440, 29696, 29952, 30208, 30464, 30720, 30976, 31232, 31488, 31744, 32000, 32256, 32512, 32768, 33024, 33280, 33536, 33792, 34048, 34304, 34560, 34816, 35072, 35328, 35584, 35840, 36096, 36352, 36608, 36864, 37120, 37376, 37632, 37888, 38144, 38400, 38656, 38912, 39168, 39424, 39680, 39936, 40192, 40448, 40704, 40960, 41216, 41472, 41728, 41984, 42240, 42496, 42752, 43008, 43264, 43520, 43776, 44032, 44288, 44544, 44800, 45056, 45312, 45568, 45824, 46080, 46336, 46592, 46848, 47104, 47360, 47616, 47872, 48128, 48384, 48640, 48896, 49152, 49408, 49664, 49920, 50176, 50432, 50688, 50944, 51200, 51456, 51712, 51968, 52224, 52480, 52736, 52992, 53248, 53504, 53760, 54016, 54272, 54528, 54784, 55040, 55296, 55552, 55808, 56064, 56320, 56576, 56832, 57088, 57344, 57600, 57856, 58112, 58368, 58624, 58880, 59136, 59392, 59648, 59904, 60160, 60416, 60672, 60928, 61184, 61440, 61696, 61952, 62208, 62464, 62720, 62976, 63232, 63488, 63744, 64000, 64256, 64512, 64768, 65024, 65280]]
09:09:44 NIghtLight.Off- kgschlosser
- Site Admin
- Posts: 5190
- Joined: Fri Jun 05, 2015 5:43 am
- Location: Rocky Mountains, Colorado USA
Re: Detect Windows 10 Night Light
the fact that you have 6 screens should not make a diference unless you change the orientation of the screens. I do not now what screen the Hidden EG message notification window is created on. but it should always be created on whichever screen is primary. if this is something that you change i will need a printout of those numbers for each of the screens that you set to primary. in order to do this you would have to close EG. set the primary monitor, run EG copt the data that is printed. close EG set the primary to the next monitor.. and so on and so forth.
The gamma settings are a 2 dimensional array. you have 3*256 numbers that represent the gamma correction on a display, so it is going to be a lot of data. so if you have 6 screens that you use as primary then you will have 6*3*256 for the total data amount.
The script is not complete as of yet. that is the reason why you are always getting the "Off" event. I needed the data to be able to sync it up properly. So I need to know the data as well as if the screen is dim or bright at the time you get the data. all of the screens the data needs to be obtained while the screens are all dimmed or all bright. basically you need to get the data for all screens while all the screens are dim. or all the screens are bright.
Again there will only be multiple data sets if you change which screen is the primary one. if you do not and the same screen is always the primary then one data set is all that is needed.
The gamma settings are a 2 dimensional array. you have 3*256 numbers that represent the gamma correction on a display, so it is going to be a lot of data. so if you have 6 screens that you use as primary then you will have 6*3*256 for the total data amount.
The script is not complete as of yet. that is the reason why you are always getting the "Off" event. I needed the data to be able to sync it up properly. So I need to know the data as well as if the screen is dim or bright at the time you get the data. all of the screens the data needs to be obtained while the screens are all dimmed or all bright. basically you need to get the data for all screens while all the screens are dim. or all the screens are bright.
Again there will only be multiple data sets if you change which screen is the primary one. if you do not and the same screen is always the primary then one data set is all that is needed.
