Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt Disable Windows 10 Game Bar

Tags:

c++

windows

qt

I have an application developed in Qt that causes Windows 10 to think it is a game, and opens a pop up box that says Press the Win-key + G to open the Game bar. This is very unhelpful as my application is not a game; and it interferes with the user experience. How can I turn this off from within my application code? I have been unable to find any documentation related to this. Thanks in advance.

like image 431
MateoConLechuga Avatar asked Mar 11 '17 08:03

MateoConLechuga


People also ask

How do I disable all users game Bar?

In order to turn off Game Bar, double-click the DWORD entry AppCaptureEnabled on the right pane, and set its value data to 0. A value of 1 will enable it. Next, double-click the DWORD HistoricalCaptureEnabled and change the value data to 0 for turning off Game DVR. A value of 1 will enable it.


1 Answers

It is not possible to neither capture Windows shortcuts (in order to stop propagation and disable them), nor to disable game bar in a per-app base.

Options you have are:

  1. to disable it globally (see this post): you can do it using the Registry, so it can be included in an installation package, but you'll affect the global settings of the user,

  2. change the shortcut used to access it in the Xbox app,

  3. use some third-party app, such as AutoHotKey, to map keyboard sequences to an empty action (related question).

Edit:

Also you can (from user side) disable it for your app in Xbox app. (Xbox support):

  1. Open Xbox app
  2. In my games list select your app
  3. Right click on it and delete it

This will delete your app from games list, so GameBar will not appear.

like image 79
cbuchart Avatar answered Oct 01 '22 07:10

cbuchart