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?
Save up to 50% on our desktop apps during our big Year End Sale!Save up to 50% on our desktop apps during our big Year End Sale, including DisplayFusion, ClipboardFusion, FileSeek, LogFusion, TrayStatus, and VoiceBot!Save up to 50% on our desktop apps during our big Year End Sale!

User Image
Pierre Henri Parneix
7 discussion posts
Hello from France, I need a macro :
Focus the windows called : Komplete Kontrol
and put this window (Komplete Kontrol) in the center of the screen.

Thank you for your help. ;)
Nov 17, 2025  • #1
Jon Tackabury (BFS)'s profile on WallpaperFusion.com
I believe you emailed in as well and I've assigned that ticket over to one of our developers. We're a bit tied up right now but we'll follow-up through email. :)
Nov 18, 2025  • #2
User Image
JLJTGR
135 discussion posts
Your exact requirements don't work very well. With only a window title, the script must scan the window titles of all processes which can take 2-3 minutes because of protected processes or processes without windows probably causing issues. So I won't give you that script.

If you can supply this script the EXE name instead of the window title, that works near instantly.

Code

using System;
using System.Drawing;
public static class DisplayFusionFunction
{
    public static void Run(IntPtr windowHandle)
    {
        IntPtr window = BFS.Application.GetMainWindowByFile(@"*\ApplicationFilename.exe");
        if (window != null)
        {
            Rectangle monitorRect = BFS.Monitor.GetMonitorBoundsByWindow(window);
            Rectangle windowRect = BFS.Window.GetBounds(window);
            Point newLocation = new Point(monitorRect.X + (monitorRect.Width / 2) - (windowRect.Width / 2),
                                        monitorRect.Y + (monitorRect.Height / 2) - (windowRect.Height / 2));
            BFS.Window.SetLocation(window, newLocation.X, newLocation.Y);
            BFS.Window.Focus(window);
        }
    }
}
Nov 19, 2025  • #3
User Image
Pierre Henri Parneix
7 discussion posts
this is the "Komplete Kontrol" software from Native Instruments
Nov 19, 2025  • #4
User Image
Pierre Henri Parneix
7 discussion posts
this is "Komplete Kontrol" software from Native Instruments
Nov 19, 2025  • #5
User Image
Pierre Henri Parneix
7 discussion posts
Quote:
I believe you emailed in as well and I've assigned that ticket over to one of our developers. We're a bit tied up right now but we'll follow-up through email. :)


thank you, waiting for the news ! ;)
Nov 21, 2025  • #6
User Image
NetMage
299 discussion posts
Quote:
Your exact requirements don't work very well. With only a window title, the script must scan the window titles of all processes which can take 2-3 minutes because of protected processes or processes without windows probably causing issues. So I won't give you that script.


Is there some reason you can't use `BFS.Window.GetWindowByText("*Komplete Kontrol*")` which seems to work very quickly for me?
Nov 26, 2025  • #7
User Image
JLJTGR
135 discussion posts
Must have missed it when I was browsing. I'm guessing you can use it on line 7 of my attempt and it should work?
Nov 29, 2025  • #8
User Image
Pierre Henri Parneix
7 discussion posts
Thank you all, but I found a solution with Powermate....
Nov 29, 2025  • #9
Subscribe to this discussion topic using RSS
Was this helpful?  Login to Vote(-)  Login to Vote(-)