Posts: 16
Threads: 5
Joined: Feb 2013
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.
Windows 8.1 x64 | Quick Macros v2.4.x.x
Posts: 16
Threads: 5
Joined: Feb 2013
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?
Windows 8.1 x64 | Quick Macros v2.4.x.x
Posts: 12,051
Threads: 140
Joined: Dec 2002
Quick Macros does not have a function for it.
Posts: 16
Threads: 5
Joined: Feb 2013
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:
Windows 8.1 x64 | Quick Macros v2.4.x.x
Posts: 12,051
Threads: 140
Joined: Dec 2002
Function
usePlaybackDevice
/
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
Posts: 16
Threads: 5
Joined: Feb 2013
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:
Windows 8.1 x64 | Quick Macros v2.4.x.x
Posts: 12,051
Threads: 140
Joined: Dec 2002
Updated. The first version did not click the Set Default button.
Posts: 16
Threads: 5
Joined: Feb 2013
Don't work the function displays my actual speaker and removes my headphones now from the default communication port
.
Windows 8.1 x64 | Quick Macros v2.4.x.x
Posts: 12,051
Threads: 140
Joined: Dec 2002
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.
Posts: 16
Threads: 5
Joined: Feb 2013
Got it. Thank you very much!
Windows 8.1 x64 | Quick Macros v2.4.x.x