
BFS Deleted Customer Accounts
39 discussion posts
Hi,
I want an hotkey to get passed to other applications after or while reacting with a scripted function on it.
For example I define an hotkey like "ctrl+w". When pressing the hotkey a scripted function of DisplayFusion gets executed. After that or at the same time I want the hotkey to get passed to other applications. So for example a frontmost browser tab would be closed and the scripted function would be running in the background.
Is this possible? Or is there a workaround to achieve this?
Thank you very much and best regards
Rex
Dec 20, 2017 (modified Dec 21, 2017)
•
#1

BFS Deleted Customer Accounts
39 discussion posts
Thank you for your answer! Unfortunately this doesn't help because closing a browser window was just an example.
From programming in C and C++ I know you are able to filter system events like key presses and choose if you want other applications to get this event as well.
I my case I want to define a hotkey/shortcut for a specific application if it's frontmost only. If any other application is frontmost, DisplayFusion should do nothing. At the moment I have this:
using System;
using System.Drawing;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
uint appId = BFS.Application.GetAppIDByWindow(windowHandle);
string appPath = BFS.Application.GetMainFileByAppID(appId);
//BFS.Dialog.ShowMessageInfo(appPath);
if (appPath.EndsWith("\\notepad++.exe"))
{
// do my stuff
}
}
}
But this blocks the choosen hotkey for other applications. Do you also have a workaround for this?
Dec 21, 2017 (modified Dec 21, 2017)
•
#3
Global hotkeys can't do that, for that we would need to be using keyboard hooks. We may change to keyboard hooks at some point in the future, so if we do, we'll be sure to let you know.
Thanks!

BFS Deleted Customer Accounts
39 discussion posts
Ok, I see. Thanks anyway and please make a big announcement when introducing the feature some day ...