Belphemur / SoundSwitch

C# application to switch default playing device. Download: https://soundswitch.aaflalo.me/
https://soundswitch.aaflalo.me/
GNU General Public License v2.0
2.46k stars 176 forks source link

Command line #61

Closed LeBaux closed 8 years ago

LeBaux commented 8 years ago

Hi, it would be awesome it I could do the switch with command line, probably one argument would be enough.

C:\Program Files\Soundswitch\soundswitch.exe -switchnow

...or something like that. It would help me a lot, I can imagine that there are more people using keyboard launchers like me. Thanks for reply!

Belphemur commented 8 years ago

Hello Pierre,

I have difficulty to understand the use case here. Why launching the app with a command argument when you can simply use the HotKeys you set in the Settings ? Usually SoundSwitch will run at windows start (when asked in the configuration).

On 05/01/2016 18:06, Pierre LeBaux wrote:

Hi, it would be awesome it I could do the switch with command line, probably one argument would be enough

C:\Program Files\Soundswitch\soundswitchexe -switchnow or something like that It would help me a lot, I can imagine that there are more people using keyboard launchers like me Thanks for reply!

— Reply to this email directly or view it on GitHub https://github.com/Belphemur/SoundSwitch/issues/61.

LeBaux commented 8 years ago

Hi, thanks for such a fast response. Let me clarify. I use slickrun to launch everything in my computer, and with command line arguments, I do not need to click on anything (most people probably know executor, or launchy, they do the same thing). Sure you have a hotkey, but I am not really using hotkeys at all. Even when it comes to screenshots, most people use hotkeys, but with ShareX command line I can do 10 different types of capture with commands. Another example, when I want to connect to my FTP, via filezilla command line, I use this command and I am immediately connected to desired ftp account. All these actions are mostly about eliminating clicking around in GUI. There a is fairly big group of people like me, who use "command launchers", this would be a nice addition. However I am not sure how hard it is to implement.

Belphemur commented 8 years ago

The issue is the way SoundSwitch works. It's meant to be kept in the background, monitoring audio device changes/status and hotkeys press.

If you want I could instead provide you a little program that at every launch will switch the audio device to the next available. No configuration, just launch, and it'll switch. (I'm using something similar to test the underlying library I created for SoundSwitch).

LeBaux commented 8 years ago

No need to, I don't want to bother you. I found a way around this - I use a script to simulate a hotkey combo. I would like to thank you for continuous support and development of this little nifty tool. It removes that small frustration of crawling under the table to connect/disconnect the headphones after every game of Counter Strike. You should probably have some donate button, I am not really on rich side, but I always try to at least buy a beer for developers like you. Or if you find yourself in Prague, I can buy you one in person. Cheers!

Belphemur commented 8 years ago

Great that you find a way to bend it to your needs :)

I'll think about a donation button, for now I prefer to avoid, I won't feel "obliged" to work on this or that because somebody "donated" for it :)

CGollhardt commented 5 years ago

@Belphemur My usecase would be a Microsoft Keyboard Favorite Key. I can only lunch a programm in Microsoft Mouse and Keyboard Center. I can not set the favorite key in Sound Switch.

Microsoft Keyboard

teeedubb commented 5 years ago

The issue is the way SoundSwitch works. It's meant to be kept in the background, monitoring audio device changes/status and hotkeys press.

If you want I could instead provide you a little program that at every launch will switch the audio device to the next available. No configuration, just launch, and it'll switch. (I'm using something similar to test the underlying library I created for SoundSwitch).

Hi,

Any chance you could share this program? I would like to have a icon in my taskbar that switches audio outputs. I tried using AudioEndpointController but that doesnt configure the default microphone like SoundSwitch does.

Thanks

jennyd20 commented 4 years ago

I also just got a Microsoft Keyboard and I'm trying to customize the favorite keys (like @CGollhardt over a year ago). A script or a .exe argument would work beautifully (I'm not having any luck trying to hack the keyboard itself to trigger the hotkey combination, unfortunately).

CGollhardt commented 4 years ago

Would you accept a pull request?

EdSpurrier commented 2 years ago

Well what about as a hack it can listen to an apps (I think Title) and when that is in the foreground it will activate. So you could potentially make a batch file that opens and closes and has a window title that soundswitch is listening for? I to use Macro keys to switch between monitor setups, audio devices, hardware and software apps to manage multiple projects and developments