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?

User Image
Special
120 discussion posts
Could anyone help me out and make a Hotkey to do this?

Windows 10, when you click the sound icon it brings up that useless sound volume slider, I'd much rather have quick access to the Volume Mixer, and this be done with DisplayFusion?

Like Ctrl+Alt+M opens the Volume Mixer panel?
Feb 22, 2018  • #1
PabloMartinez's profile on WallpaperFusion.com
You can certainly make a script, something like that.

Code

using System;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        var sndVolID = BFS.Application.Start(@"C:\Windows\SysWOW64\SndVol.exe", "");
        
        // The following code is required only to move the window.
        // You can delete it if not required.
        var wHnd = BFS.Application.GetMainWindowByAppID(sndVolID);
        var windRect = BFS.Window.GetClientRect(wHnd);
        var workArea = BFS.Monitor.GetMonitorWorkAreaByWindow(wHnd);
        // Move the window to the upper right corner
        BFS.Window.SetLocation(wHnd, workArea.Right - windRect.Width, workArea.Top);
    }
}


But the easier it seems to me to make a shortcut app and hang the hotkey on it.
Feb 23, 2018  • #2
User Image
Special
120 discussion posts
Awesome dude, that totally works!

Is there a way to have it open bottom right, instead of top, with maybe a 1 pixel spacing around the edges?

I tried changing the "Top" part you had to "Bottom" but it opens off-screen, only the titlebar is shown and it's 99% hidden by my taskbar.

Also about shortcuts, I don't like them, I try to keep things clean, and with this hotkey, it works great for fullscreen games where I can't use my mouse exactly well.
Feb 23, 2018  • #3
User Image
Special
120 discussion posts
So I kinda just played around with it and got it opening where I want it with this.

Code

using System;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        var sndVolID = BFS.Application.Start(@"C:\Windows\System32\SndVol.exe", "");
        
        // The following code is required only to move the window.
        // You can delete it if not required.
        var wHnd = BFS.Application.GetMainWindowByAppID(sndVolID);
        // Move the window to the upper right corner
        BFS.Window.SetLocation(wHnd, 1370, 700);
    }
}


So unless you see anything wrong with that, I'd consider this case closed and I'm very happy.
Feb 23, 2018  • #4
PabloMartinez's profile on WallpaperFusion.com
You can try so

Code

BFS.Window.SetLocation(wHnd, workArea.Width - (windRect.Width + 5), workArea.Height - (windRect.Height + 35));
or leave your option.
Feb 23, 2018  • #5
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(1)  Login to Vote(-)