Processing Ajax...

Title

Message

Confirm

Confirm

Confirm

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure you want to delete this item?

Confirm

Are you sure?
If you are experiencing any issues with your desktop wallpaper or taskbar buttons
please download and install the latest DisplayFusion beta version before contacting support.

User Image
Hypothermial
1 discussion post
Hello, first post and it's obviously a post asking for help. Sorry about that.

Fantastic software, by the way! I've owned a copy of DisplayFusion Pro via Steam for more than a year now, and I can't really work without it anymore.

My problem at the moment is with a custom script. I have a hotkey assigned to set the next playback device as default, and since Windows no longer plays a notification sound whenever the default device changes, I figured a custom script would do the trick. However, I've not really been able to get it to work properly, and I don't know why.

Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        bool ok = BFS.General.Sleep(500);BFS.Audio.PlayWAV("C:\\Windows\\Media\\Windows Notify System Generic.wav");
        }
}


This is the whole thing, with the comments edited out. Might be a bit messy, but it successfully verifies, and it runs properly when I test it out. Half a second pause then the notify sound plays.

However, when I assign the script the same hotkey as the aforementioned default playback device function, the sound doesn't play. Not from my speakers nor headphones.
7 days ago  • #1
Owen Muhlethaler (BFS)'s profile on WallpaperFusion.com
If you assign separate hotkeys to each function, do they work if you run each one?
6 days ago  • #2
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)