Skip to content

Conversation

@Damocles-fr
Copy link

@Damocles-fr Damocles-fr commented May 25, 2025

  • Fixed : minimize-to-tray behavior: the app now correctly responds to hotkeys even when minimized on Windows 11 24H2

It need to be tested for previous Windows versions

Replaces the previous RegisterHotKey mechanism with a low-level global keyboard hook using the native SetWindowsHookEx API. This ensures hotkeys work even when the application is minimized to the system tray and prevents the keys from affecting the Windows system volume.

Technical Details

Introduced a new GlobalKeyboardHook class using WH_KEYBOARD_LL hook type.

Hooked VolumeUp, VolumeDown, and VolumeMute keys.

Suppressed key propagation to prevent Windows from adjusting its own volume.

Ensured hook is disposed on FormClosed.

@Damocles-fr
Copy link
Author

Damocles-fr commented May 25, 2025

Oh I forgot that I have change the icon, I made an ugly one because I didn't like it in black, maybe yours is better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant