private static void OnAddWordSystemHotkeyPressed(object sender, EventArgs e) { var appExePath = NativeWin32.GetFocusesApp(); var appExeName = System.IO.Path.GetFileNameWithoutExtension(appExePath); Context.AddActiveApplicationHandyman(appExeName, appExePath); }