Last active
August 29, 2015 14:13
-
-
Save shkm/3d2ad21cbd94ec069d3b to your computer and use it in GitHub Desktop.
Quick and dirty AHK scripts to set monitor preferences and toggle Dolby audio (for virtual surround sound). Assumes multiple monitors, Display Color being pinned as the first item.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoordMode, Mouse, Relative | |
; CCC | |
Run C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static\CCC.exe | |
WinWaitActive AMD Catalyst Control Center | |
if ErrorLevel | |
{ | |
MsgBox WinWaitActive timed out. | |
return | |
} | |
else | |
{ | |
Click 95,146 ; Pinned | |
Sleep 300 | |
Click 61,192 ; Display Color (Digital Flat-Panel) | |
Click 234,192 ; Monitor selection | |
Sleep 300 | |
Click 592,326 ; Dell | |
; Clicks are because the sliders will always be +1 of desired. | |
MouseClickDrag, L, 420, 340, 382, 340 ; Saturation 0 | |
Click 520, 350 | |
MouseClickDrag, L, 395, 412, 384, 412 ; Brightness 0 | |
Click 520,430 | |
MouseClickDrag, L, 396, 457, 383, 457 ; Contrast 100 | |
Click 520,470 | |
; Apply | |
Click 750, 740 | |
Sleep 400 | |
; Close | |
Click 776,24 | |
} | |
Run C:\Program Files (x86)\Dolby Home Theater v4\pcee4e.exe | |
WinWaitActive Dolby Profile Editor | |
if ErrorLevel | |
{ | |
MsgBox WinWaitActive timed out. | |
return | |
} | |
else | |
{ | |
; Enable | |
Click 30,50 | |
Sleep 200 | |
; Close | |
Send !{F4} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CoordMode, Mouse, Relative | |
; CCC | |
Run C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static\CCC.exe | |
WinWaitActive AMD Catalyst Control Center | |
if ErrorLevel | |
{ | |
MsgBox WinWaitActive timed out. | |
return | |
} | |
else | |
{ | |
Click 95,146 ; Pinned | |
Sleep 300 | |
Click 61,192 ; Display Color (Digital Flat-Panel) | |
Click 234,192 ; Monitor selection | |
Sleep 300 | |
Click 592,326 ; Dell | |
MouseClickDrag, L, 380, 340, 450, 340 ; Saturation 100 | |
MouseClickDrag, L, 380, 412, 391, 412 ; Brightness 30 | |
MouseClickDrag, L, 380, 457, 393, 457 ; Contrast 135 | |
; Apply | |
Click 730, 740 | |
Sleep 400 | |
; Close | |
Click 776,24 | |
} | |
Run C:\Program Files (x86)\Dolby Home Theater v4\pcee4e.exe | |
WinWaitActive Dolby Profile Editor | |
if ErrorLevel | |
{ | |
MsgBox WinWaitActive timed out. | |
return | |
} | |
else | |
{ | |
; Enable | |
Click 30,50 | |
Sleep 200 | |
; Close | |
Send !{F4} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment