How do I disabled Everything hotkeys when I'm using certain apps?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
voidtoad
Posts: 6
Joined: Wed Aug 04, 2021 3:16 am

How do I disabled Everything hotkeys when I'm using certain apps?

Post by voidtoad »

I have Alt+S set as a shortcut to trigger a new window of everything. Unfortunately this is getting in the way when gaming as I accidentally keep triggering the hotkey.

How do I set everything hotkeys to remain turned off when specific programs are running?
void
Developer
Posts: 15464
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by void »

Please try enabling hotkey_user_notification_state:
  • In Everything, type in the following search and press ENTER:
    /hotkey_user_notification_state=1
  • If successful, hotkey_user_notification_state=1 is shown in the status bar for a few seconds.
When enabled, Everything will no longer show when a full screen application is running and you press your Alt + S hotkey.
voidtoad
Posts: 6
Joined: Wed Aug 04, 2021 3:16 am

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by voidtoad »

It worked. Thank you so much :)
voidtoad
Posts: 6
Joined: Wed Aug 04, 2021 3:16 am

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by voidtoad »

Hm, the hotkey is not working on the windows desktop anymore. It works in non-fullscreen active windows, but not on the desktop. Is this a bug?
void
Developer
Posts: 15464
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by void »

There might be an issue with hotkey_user_notification_state?

Does the issue persist if you disable hotkey_user_notification_state:
  • In Everything, type in the following search and press ENTER:
    /hotkey_user_notification_state=0
  • If successful, hotkey_user_notification_state=0 is shown in the status bar for a few seconds.
voidtoad
Posts: 6
Joined: Wed Aug 04, 2021 3:16 am

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by voidtoad »

Changing back to "0" state fixes the problem on the desktop, yes.

Can this bug be fixed?
void
Developer
Posts: 15464
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by void »

Could you please try the latest Everything 1.5 alpha.

I have added some debug information to this version to determine the cause of the problem.

Installing Everything 1.5 alpha will not interfere with your Everything 1.4 installation.
You can run both Everything 1.5 alpha and Everything 1.4 at the same time.
Everything 1.5 alpha can be uninstalled easily after testing.

  • In Everything 1.4, could you please remove any hot keys:
    • In Everything 1.4, from the Tools menu, click Options.
    • Click the Keyboard tab on the left.
    • Use backspace to clear any hotkeys.
    • Click OK.
  • Please download the x64 Everything 1.5 alpha installer.
  • Install Everything 1.5 alpha with the default settings.
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Keyboard tab on the left.
  • To the right of Show Window Hotkey, press Alt + S.
  • Click OK.
  • From the Tools menu, under the Debug submenu, click Console.
    ---this will show the Everything debug console.
  • From your Desktop, press Alt + S
  • What is shown in the Everything debug console?
  • Please look for the following line:
    SHQueryUserNotificationState x
    ---what is the value for x?
  • Exit Everything 1.5:
    • In Everything 1.5, from the File menu, click Exit
  • From the Start menu, search for add and remove programs.
  • Uninstall Everything 1.5 alpha.
void
Developer
Posts: 15464
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by void »

Please try the latest nightly build.

1.4.1.1012 fixes an issue with Everything using the wrong user notification state.
voidtoad
Posts: 6
Joined: Wed Aug 04, 2021 3:16 am

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by voidtoad »

I just installed and tried the nightly build.

Unfortunately, the desktop problem is still there. the hotkey does not open a new window of Everything on desktop if /hotkey_user_notification_state=1.

I think it's recognizing the windows desktop as a fullscreened window for some reason?
void
Developer
Posts: 15464
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by void »

One of the possible states is a "Windows Store App" is running.

I wonder if that might be causing the hotkey to fail..

Could you please try the following:

From the Start menu, search for: Powershell
Open Windows Powershell.
Copy the following to the clipboard and right click in Powershell to paste:

Code: Select all

$UserNotificationStateSource = @'
using System;
using System.Runtime.InteropServices;
namespace QueryUser
{
    public class NotificationState
    {
        // http://msdn.microsoft.com/en-us/library/bb762533(v=vs.85).aspx
        public enum UserNotificationState
        {
            ScreenSaverOrLockedOrFastUserSwitching=1, FullScreenOrPresentationMode=2, RunningDirect3dFullScreen=3, PresentationMode=4, AcceptsNotifications=5, QuietTime=6, WindowsStoreAppRunning=7
        }
        // Only for Vista or above
        [DllImport("shell32.dll")]
        static extern int SHQueryUserNotificationState(out UserNotificationState pquns);
        public static UserNotificationState GetState()
        {
            UserNotificationState state;
            int returnVal = SHQueryUserNotificationState(out state);
            return state; 
        }
    }
}
'@
If (-not ([System.Management.Automation.PSTypeName]'QueryUser.NotificationState').Type) {
    Add-Type -TypeDefinition $UserNotificationStateSource -Language CSharp
}
Press ENTER.

Copy the following and right click in powershell to paste:

Code: Select all

while($true){[QueryUser.NotificationState]::GetState(); Start-Sleep -Seconds 1}
Press ENTER.

--The user notification state is logged to the Powershell window every second.

Click on your Desktop.
wait a couple seconds.

What is shown in the Windows powershell?
voidtoad
Posts: 6
Joined: Wed Aug 04, 2021 3:16 am

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by voidtoad »

Completely forgot about this but I guess it's better late than never (I ended up simply quitting Everything before entering a fullscreen game/app to get around the issue).

Since the "bug" is still persistent after all this time:
The Powershell window states "AcceptsNotifications" over and over.

If it's any help I am indeed running a few MS-Store apps in the background such as EarTrumpet and Lively Wallpaper.

Thank you for your patience :!:
void
Developer
Posts: 15464
Joined: Fri Oct 16, 2009 11:31 pm

Re: How do I disabled Everything hotkeys when I'm using certain apps?

Post by void »

Thank you for your reply voidtoad,

Everything will accept keyboard shortcuts when windows is in the "Accepts Notifications" or "Quiet Time" state.

Other states, like BUSY or RUNNING_D3D_FULL_SCREEN or PRESENTATION_MODE will prevent Everything from launching from a hotkey.



Please try running your game in fullscreen mode instead of window mode. (if you have the option)

-or-

Please try a different keyboard shortcut that doesn't interfere with your game.
Post Reply