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
S.ALT255
132 discussion posts
I want to make a 'boss key' for work.

If I hit CTRL-XXX-YYY? and hit said keycombo, a particular piece of software comes to the foreground and is shaped in a particular size and layout.

I imagine this should be fairly possible to be honest, it might just be a mix of 2 different functions already built in?

Any ideas if I can do this?
Feb 12, 2019  • #1
User Image
S.ALT255
132 discussion posts
Ok the Window Position Profiles is VERY CLOSE - I just need it to specifically bring a particular application to the FOREGROUND, if not 2 or 3 applications. It's otherwise brilliant - as usual. You guys are astounding.
Feb 12, 2019 (modified Feb 12, 2019)  • #2
Alan Wade's profile on WallpaperFusion.com
If you dont mind editing the registry the usual warning applies - BACK IT UP FIRST!
Then you could give this a go.
HKEY_CURRENT_USER\Control Panel\Desktop
in the righthand pane look for ForgroundLockTimeout, click on it and change the value to 0
Reboot or logoff then back on again to see the effect.

This will give newly opened windows the focus, hopefully it does what you want it to do.
If you are not comfortable editing the registry let me know and I will post a script for you to copy that will change the key automatically.
Feb 12, 2019  • #3
User Image
S.ALT255
132 discussion posts
thing is these aren't newly opened windows, they're already open, just in either different locations, or minimised.

i just want to bring all my work to the front basically
Feb 12, 2019  • #4
Alan Wade's profile on WallpaperFusion.com
Okey sorry I misunderstood. Maybe one of the devs can help you out then.
Feb 12, 2019  • #5
Keith Lammers (BFS)'s profile on WallpaperFusion.com
You could do this with a Scripted Function, something like this would load the Window Position Profile, then focus the windows that you specify in the "windowNames" variable on line 8. You'll need to set the profile name on line 9 as well.

Code

using System;
using System.Drawing;

public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        string[] windowNames = { "*Notepad*", "*Calculator*", "*Google Chrome*" };
        string windowPositionProfile = "Profile Name";
    
        BFS.DisplayFusion.RunFunctionAndWait("Load Window Position Profiles: " + windowPositionProfile);
        
        foreach (string name in windowNames)
        {
            BFS.Window.Focus(BFS.Window.GetWindowByText(name));
        }
    }
}


Hope that helps!
Feb 12, 2019  • #6
User Image
S.ALT255
132 discussion posts
I'm just messing with it now Keith, thanks.

Is there any way to make the Window Position Profiles execute faster? It seems quite slow in how it processes even just 4 Windows. (note, the apps are already open)
Feb 12, 2019  • #7
Keith Lammers (BFS)'s profile on WallpaperFusion.com
How long does it take for your profile to load?
Feb 13, 2019  • #8
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)