Activate Dolby Atmos for Headphones with AHK

Post your working scripts, libraries and tools for AHK v1.1 and older
edu-hilario
Posts: 8
Joined: 30 Jul 2021, 15:12
Contact:

Activate Dolby Atmos for Headphones with AHK

Post by edu-hilario » 30 Jul 2021, 15:21

I've been doing this one manually for a long time. Decided to create a hotkey to activate it (that's everytime the system boots).

Code: Select all

	
	;[Enter your hotkey here]::
		Run, control mmsys.cpl sounds
		WinWaitActive, Sound ;Or the corresponding on your language
		WinActivate, Sound ;Or the corresponding on your language
			Loop, ;[Insert here the number of the device, on the "Sound" list, you want to activate Dolby's]
			{
				Send {Down}
			}
		Send {Space}
		Send +^{Tab}
			Loop, 3 ;[If you have more filters increase this number]
			{
				Send {Down}
			}
		Send {Enter}
		WinClose, Sound ;Or the corresponding on your language
	Return

Return to “Scripts and Functions (v1)”