-
Notifications
You must be signed in to change notification settings - Fork 0
/
Light.au3
46 lines (34 loc) · 2.03 KB
/
Light.au3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <.\HueFunctions.au3>
ChangeHueBulbTempBri(7,$CT4000K,200)
ChangeHueBulbTempBri(8,$CT4000K,200)
Global $G246HYL_BCRGB[] = [53, 50, 100, 93, 85]
Global $VG248_BCRGB[] = [35, 80, 96, 87, 64]
Global $Blank[] = [100, 100, 100, 100, 100]
Global $Screen1 = $VG248_BCRGB
Global $Screen2 = $G246HYL_BCRGB
Global $Screen3 = $Blank
$NumScreens = 2
$BrightnessTarget = $Screen1[0]
$ContrastTarget = $Screen1[1]
$RedGainTarget = $Screen1[2]
$GreenGainTarget = $Screen1[3]
$BlueGainTarget = $Screen1[4]
$BrightnessTarget2 = $Screen2[0]
$ContrastTarget2 = $Screen2[1]
$RedGainTarget2 = $Screen2[2]
$GreenGainTarget2 = $Screen2[3]
$BlueGainTarget2 = $Screen2[4]
$BrightnessTarget3 = $Screen3[0]
$ContrastTarget3 = $Screen3[1]
$RedGainTarget3 = $Screen3[2]
$GreenGainTarget3 = $Screen3[3]
$BlueGainTarget3 = $Screen3[4]
Switch $NumScreens
Case 1
ShellExecute("Screenbright.exe", "-set brightness " & $BrightnessTarget & " contrast " & $ContrastTarget & " red " & $RedGainTarget & " green " & $GreenGainTarget & " blue " & $BlueGainTarget, "C:\tools\screenbright\")
Case 2
ShellExecute("Screenbright.exe", "-set screen 1 brightness " & $BrightnessTarget & " contrast " & $ContrastTarget & " red " & $RedGainTarget & " green " & $GreenGainTarget & " blue " & $BlueGainTarget & " screen 2 brightness " & $BrightnessTarget2 & " contrast " & $ContrastTarget2 & " red " & $RedGainTarget2 & " green " & $GreenGainTarget2 & " blue " & $BlueGainTarget2, "C:\tools\screenbright\")
Case 3
ShellExecute("Screenbright.exe", "-set screen 1 brightness " & $BrightnessTarget & " contrast " & $ContrastTarget & " red " & $RedGainTarget & " green " & $GreenGainTarget & " blue " & $BlueGainTarget & " screen 2 brightness " & $BrightnessTarget2 & " contrast " & $ContrastTarget2 & " red " & $RedGainTarget2 & " green " & $GreenGainTarget2 & " blue " & $BlueGainTarget2 & " screen 3 brightness " & $BrightnessTarget3 & " contrast " & $ContrastTarget3 & " red " & $RedGainTarget3 & " green " & $GreenGainTarget3 & " blue " & $BlueGainTarget3, "C:\tools\screenbright\")
EndSwitch
Exit