flex-launcher
flex-launcher copied to clipboard
Feature request: Sound options
While this technically isn't an issue, I do believe it would really round out this app to have the option to add sounds for navigating, and launching apps.
This wouldn't be too difficult, but it would require an additional dependency, SDL_mixer. I'll consider it for a future release.
I have figured out a workaround utilizing autohotkey. I basically run nircmd, to then run ffplay (hidden). While this is not ideal, it works surprisingly well!
@bigwhitebuddha That is very clever. What are you using for the sound effects?
@complexlogic It is a collection of sound effects that I utilize for Playnite, and Launchbox. There are a good number of them on Launchbox's forums. I can also send over the script for how I utilized the sound effects.
NOTE: All links (Except Launchbox) are direct downloads. They are from their respective authors, so I am confident they aren't malicious at all, but just an FYI.
The following is an autohotkey script I utilize to Launch "Flex-Launcher" with sound for my inputs.
For this script, I utilize, nircmd (Which is able to run the sound files without any display at all), and ffplay (which plays the .wav files). Both resources are free, and you can place them inside of your Flex Launcher folder (EXAMPLE: C:\Flex Launcher\assets\dependencies). All of the text titled "C:\your_path_here" will need to be changed to the path for each exe file at the end of the example path.
There is a great repository of sound files located at Launchbox.com. You will have to create a (Free) account in order to download from there.
The functionality has been very good so far, however there is a caveat regarding this script:
- The script itself is interpreting keyboard presses. I have not scripted it for Xinput, so you will need to utilize a remapper to make this work with a controller.
Just copy the text below, and place them in a new script.
~up::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return
~down::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return
~left::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return
~right::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\navigation.wav" -nodisp -autoexit -loglevel quiet
return
~enter::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\enter.wav" -nodisp -autoexit -loglevel quiet
return
~BS::
run, "C:\your_path_here\nircmd.exe" exec hide "C:\your_path_here\ffplay.exe" "C:\your_path_here\back.wav" -nodisp -autoexit -loglevel quiet
return