Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,6 @@ jobs:
UPDATE_CHANNEL: ${{ env.UPDATE_CHANNEL }}
run: .\build\build-complete.ps1 -Configuration Debug -ExeOnly -UpdateChannel $env:UPDATE_CHANNEL

- name: Clean Debug output
run: |
$outDir = "Windows-Hinting\bin\Debug\net10.0-windows"
Remove-Item "$outDir\xunit.*" -Force -ErrorAction SilentlyContinue

- name: Upload Debug artifact
uses: actions/upload-artifact@v7
with:
Expand Down
238 changes: 0 additions & 238 deletions Windows-Hinting/Examples/HintOverlayClientExamples.cs

This file was deleted.

74 changes: 0 additions & 74 deletions Windows-Hinting/HintController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ internal sealed class HintController : IDisposable
private readonly HintInputHandler _inputHandler;
private readonly TrayIconManager _trayIcon;
private readonly ElementActivatorChain _activatorChain;
//private readonly NamedPipeService _namedPipeService;
private readonly WindowRuleRegistry _ruleRegistry;
private readonly MouseClickService _mouseClickService;
private readonly StartupService _startupService;
Expand Down Expand Up @@ -59,7 +58,6 @@ public HintController(
HintStateManager stateManager,
HintInputHandler inputHandler,
ElementActivatorChain activatorChain,
//NamedPipeService namedPipeService,
MouseClickService mouseClickService,
StartupService startupService,
UpdateService updateService)
Expand All @@ -82,7 +80,6 @@ public HintController(
_stateManager = stateManager ?? throw new ArgumentNullException(nameof(stateManager));
_inputHandler = inputHandler ?? throw new ArgumentNullException(nameof(inputHandler));
_activatorChain = activatorChain ?? throw new ArgumentNullException(nameof(activatorChain));
//_namedPipeService = namedPipeService ?? throw new ArgumentNullException(nameof(namedPipeService));
_mouseClickService = mouseClickService ?? throw new ArgumentNullException(nameof(mouseClickService));
_startupService = startupService ?? throw new ArgumentNullException(nameof(startupService));
_updateService = updateService ?? throw new ArgumentNullException(nameof(updateService));
Expand Down Expand Up @@ -130,12 +127,6 @@ public HintController(

_foregroundWindowHookService.ForegroundWindowChanged += OnForegroundWindowChanged;

//_namedPipeService.CommandReceived += OnNamedPipeCommandReceived;

// Start named pipe service
// _logger.Debug("Starting named pipe service");
//_namedPipeService.Start();

// Kick off the auto-update background loop (no-op if disabled in prefs).
_updateService.Initialize();

Expand Down Expand Up @@ -173,71 +164,6 @@ private void OnDisplaySettingsChanged(object? sender, EventArgs e)
_overlay.RebuildOverlays();
}

private void OnNamedPipeCommandReceived(object? sender, NamedPipeCommand command)
{
_logger.Debug($"Processing named pipe command: {command.CommandType}");

switch (command.CommandType)
{
case CommandType.Toggle:
Toggle();
break;

case CommandType.ToggleTaskbar:
ToggleTaskbar();
break;

case CommandType.Select:
if (!string.IsNullOrEmpty(command.HintLabel))
{
SelectHintByLabel(command.HintLabel, command.Action);
}
break;

case CommandType.Deactivate:
_stateManager.Deactivate();
break;
}
}

private void SelectHintByLabel(string label, ClickAction action = ClickAction.Default)
{
_logger.Info($"Attempting to select hint with label: {label}, action: {action}");

var hint = _stateManager.CurrentHints.FirstOrDefault(h =>
h.Label.Equals(label, StringComparison.OrdinalIgnoreCase));

if (hint == null)
{
_logger.Warning($"Hint with label '{label}' not found");
return;
}

_logger.Info($"Activating hint: {hint.Label}, action: {action}");

try
{
if (action == ClickAction.Default)
{
_activatorChain.TryActivate(hint.Element);
}
else
{
_mouseClickService.PerformClick(hint.Rect, action);
}
}
catch (Exception ex)
{
_logger.Error($"Error activating hint '{label}'", ex);
}
finally
{
// Hide hints after activation
_logger.Debug("Deactivating hints after direct selection");
_stateManager.Deactivate();
}
}

public void Toggle()
{
using (PerformanceMetrics.Start("Toggle", _logger, LogLevel.Debug))
Expand Down
Loading
Loading