Logitech G110 Keyboard help 3 replies

Please wait...

Weezer24

Clapton is God

50 XP

24th August 2006

0 Uploads

466 Posts

0 Threads

#1 8 years ago

I just got the Logitech G110 Keyboard and was wondering if I can set the G keys to set a default audio device. For example have one G key set the speakers to be the default audio device and another G key to make it so the headset plugged into the keyboard is the default device.




*Daedalus

A Phoenix from the ashes

50 XP

18th April 2006

0 Uploads

3,091 Posts

0 Threads

#2 8 years ago

If you can get it to work through macros, possibly. Doesn't seem very likely though.




D3matt

I take what n0e says way too seriously

27,515 XP

20th November 2007

0 Uploads

2,554 Posts

1 Threads

#3 8 years ago

I doubt it. One of the things about windows that disappoints me most is the lack of built-in features to manage audio devices better.




Showd0wN

Skeptic Extraordinaire.

50 XP

7th February 2009

0 Uploads

1,253 Posts

0 Threads

#4 8 years ago

I don't think I've seen it done; but you could try something with AutoHotKey, as you can write custom macros for any of your keys.

Something like this should get you started. If you're already familiar with AutoHotKey scripts, something like the following should work.

; ------------------------------------------------------------- ; Current Default Playback Device Switcher ; ------------------------------------------------------------- *#8:: IfWinExist Sound { WinKill Sound } Run rundll32.exe shell32.dll`,Control_RunDLL mmsys.cpl`,`,0

WinWait,Sound IfWinNotActive,Sound WinActivate,Sound WinWaitActive,Sound ControlSend,SysListView321,{Home} x := 1 devNum := 0 isSecondLoop := false isEnabled := false ; ControlGet, isEnabled, Enabled,,&Set Default ControlGet, devNum, List, Count, SysListView321 ; isEnabled AND StringCaseSense Off loop { ControlGet, Current, List, Selected, SysListView321 if(InStr(Current, "default device") OR x > devNum) { break } x := x + 1 ControlSend,SysListView321,{Down} }

if (x >= devNum) { ControlSend,SysListView321,{Home} x := 1 }

loop { ControlGet, Current, List, Selected, SysListView321 ControlGet, isEnabled, Enabled,,&Set Default ;msgbox %isEnabled% %Current%

; exclude S/PDIF cards if(InStr(Current, "PDIF")) { isEnabled := false }

if (x > devNum AND not isEnabled) { ControlSend,SysListView321,{Home} x := 1 isSecondLoop := true } if (x > devNum OR isEnabled) { ;msgbox breaking now %x% %devNum% %isEnabled% %isSecondLoop% break } if (x > devNum AND isSecondLoop) { ; infinite loop breaker if no devices avaliable ;msgbox breaking sec %x% %devNum% %isEnabled% %isSecondLoop% }

ControlSend,SysListView321,{Down} x := x + 1 }

;ControlGet, Current, List, Selected, SysListView321 ;msgbox %Current% Sleep 100 ControlClick,&Set Default ControlClick,OK SoundPlay *48 WinKill Sound

return