Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Loudspeaker, Headset changer
#1
Hello,

Also I want to change my sound In-game from my Loudspeakers to my Headset and back via Hotkey.
I hope this is possible and someone can Help me to make this Macro. Smile
Windows 8.1 x64 | Quick Macros v2.4.x.x
#2
After searching the web I found a Tool to change my sound settings vie a desktop shourtcut but I would prefer a Hotkey over Quick Macros is there no way to make this possible? Cry
Windows 8.1 x64 | Quick Macros v2.4.x.x
#3
Quick Macros does not have a function for it.
#4
Are you sure there is no way while after digging a bit deeper in Google I found out any other Macro language can do something like that.
Here an Exemple from AutoHotkey: Link

My Sound Settings:
[Image: 1.%20Sound.png]
Windows 8.1 x64 | Quick Macros v2.4.x.x
#5
Function usePlaybackDevice
Code:
Copy      Help
/
function $deviceName

;Opens Control Panel "Sound" dialog and changes device to deviceName.

;deviceName - device name in the list in the "Sound" dialog. Can be with wildcard characters (*?).

;EXAMPLE
;int+ g_switchPlaybackDevice
;g_switchPlaybackDevice^1
;usePlaybackDevice iif(g_switchPlaybackDevice "Speakers" "*Digital*")


run "mmsys.cpl"
if(empty(deviceName)) ret
int w=wait(60 win("Sound" "#32770" "" 1))
Acc a.Find(w "LISTITEM" deviceName "class=SysListView32[]id=1000" 0x1005 5)
a.Select(3)
OnScreenDisplay a.Name
but 1002 w ;;Set default
but 1 w ;;OK

;err+ end _error
#6
Thanks for the replay and the help but with this function I can only display my actual speakers. But what I want is to change the speakers to my headphones and back per Hotkey and I am not so experienced with Quick Macros to do this.

Screenshot from what I mean:
[Image: 2.%20Sound.png]
Windows 8.1 x64 | Quick Macros v2.4.x.x
#7
Updated. The first version did not click the Set Default button.
#8
Don't work the function displays my actual speaker and removes my headphones now from the default communication port Sad.
Windows 8.1 x64 | Quick Macros v2.4.x.x
#9
It just selects the specified list item and clicks "Set Default" button. It works on my Windows 7 PC. If it does not work or is not what you need, you can record what you need to do.
#10
Got it. Thank you very much! Big Grin
Windows 8.1 x64 | Quick Macros v2.4.x.x


Forum Jump:


Users browsing this thread: 2 Guest(s)