PowerToys
PowerToys copied to clipboard
Quick Accent - exclude list - do not show in fullscreen games / add option to only show it when chosen apps are in foreground
Description of the new feature / enhancement
As title says, since Quick Accent doesn't detect if any text field is currently active and always displays the popup, it does so in games for example.
Add option to not show it in when full screen apps are active or option to show it only in certain apps (I would only use it in apps that map shortcuts to Alt + letter with an accent combinations either way).
Scenario when this would be used?
To avoid showing Quick Accent popup while in a game.
Supporting information
No response
Also please add an option to whitelist or blacklist a program that is not a game but uses similar shortcuts.
Commenting to agree. If Mouse Utilities has a button to be automatically turned off while in game mode, the same can and should be done for quick accent. It is nice that it is now possible to exclude apps, but for keyboard controlled games which can frequently expect you to press wasd and space at the same time, it causes quick accent to act up very frequently.
Agree. Quick Accent functionality is very useful to me, but at the same time I am also a gamer and it is pretty much impossible to game with it enabled. Excluding it in selected apps is a good feature, but people can't be expected to do this for every single game they play. Ideally it would detect games or fullscreen applications, as long as that's not a thing at least a shortcut to enable or disable it would be nice.
+1 to this.
My preferred solution would be detecting fullscreen applications and/or the ability to set a keybind to toggle quick accents. The latter would already be enough to remove the only real downside (that I've found) of using quick accents day-to-day while being (I assume) not too hard to implement; the former would simplify the process even more. Having both features would be ideal. Currently I have keep the powertoys UI open just to toggle quick accents.
Since I got this issue while playing on different games I took a look to the code and wanted to fix it.
I added from xaml a toogle field and from KeyboardListener.cpp
I am using HWND
and RECT
to check if current foreground app is fullscreen or not.
However, I got an issue from SettingsService.cs
when I try to call my new public method: _keyboardListener.UpdateDisableScreen(bool);
'KeyboardListener' does not contain a definition for 'UpdateDisableScreen' and no accessible extension method [...]
Is there something specific I must do if I want to pass a boolean from csharp to cpp?
I will update tomorrow the UI and texts related to that. If I need some feedback on my implementation, should I open a pull request or should I wait until a project core developer pass by?
Since I was using my own patch on a daily basis I encountered an issue with VSCode on fullscreen: I'd like to use quick accent sometimes. I will implement exclude list as well then. However, I'd like to have a review on a UX point of view.
So what is the solution?...there are so many duplicate request but still the features not implemented in powertoys. I hope it will update soon
@spidy2356 There is not yet
@crutkas should I submit a PR since it looks like a required features for some people?
@spidy2356 There is not yet
@crutkas should I submit a PR since it looks like a required features for some people? There is a option to exclude software or app. But to exclude each and every games and software is a little pathetic. There should be a game mode.
Windows has an API for game detection, it has something to do with gamebar and Xbox services (I think).
In the LenovoLegionToolkit (LLT) app has this function that detects when a game opens (or closes) and executes an action, I don't know much about windows code, but you can see more details about how it works here
@spidy2356 Right, I tried it as well and it is exhausting to add each app, specially when names are exported from UE Engine binaries.
@Pkcarreno I will have a look to it, for now i came up with a solution that already exist for another powertoys extension (such as: fulllscreen), it has its downsides sometimes.
I will make the PR from October, I was abroad for a while. Thank you for the understanding.
https://github.com/microsoft/PowerToys/blob/main/src/common/utils/game_mode.h
Just in case anyone needs, we have game mode detection in PowerToys code base.
Totally needed.
Hi, this has been worked on for the 0.78 development cycle. 😄 Please update PowerToys to the latest: https://github.com/microsoft/PowerToys/releases