Kylescousin
69 discussion posts
Hi,
I downloaded this custom script that prompts you to select an audio device.
When clicking the 'run script' in the edit dialog, it shows a select box with the audio devices. But when I press the key combo outside displayfusion settings, it just prompts "Please select an audio device", but without a select box.
This is the script:
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run()
{
// Specify your exact audio device names here (as seen in the tray > Audio Devices menu)
string[] audioDevices = {
"Logitech G930 Gaming Headset",
"Realtek High Definition Audio"
};
// Prompt to select an audio device
string selectedAudioDevice = BFS.Dialog.GetUserInputList("Please select an audio device to switch to.", audioDevices);
// Set the selected device as the default playback device
BFS.Audio.SetDefaultPlaybackSounds(selectedAudioDevice);
}
}
Passionate about technology, programming, Laravel, Linux, Reddit, running, cycling, swimming. I run a social platform called
Grepless.com
Kylescousin
69 discussion posts
Works in the beta from august 4!
Thanks
Passionate about technology, programming, Laravel, Linux, Reddit, running, cycling, swimming. I run a social platform called
Grepless.com
Kylescousin
69 discussion posts
I was too quick to celebrate, the script shows the audio devices, but it doesn't change when you select a different one. Jon Tackabury's script does work.
Passionate about technology, programming, Laravel, Linux, Reddit, running, cycling, swimming. I run a social platform called
Grepless.com
Aug 5, 2016 (modified Aug 5, 2016)
•
#6
Your original script works for me here. Are the device names in your script exactly the same as what shows up in the list when you use Jon's script? On mine, I have to use these in your script, just using the name in the brackets doesn't work:
Speakers / Headphones (Realtek High Definition Audio Device)
Speakers (Plantronics .Audio 995 DSP)
Last month, we released DisplayFusion 8.0, and this issue should be all fixed up. If you still have any trouble with 8.0, please let us know!
Thanks!