hotkey does not work

Discussion related to "Everything" 1.5.
Post Reply
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

hotkey does not work

Post by bluespace »

If I start Everything from the command line, with the options -width and -height, the toggle window hotkey does not work.
This bug has been present since version 1.5.0.1397+.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: A bug report

Post by void »

Thank you for the bug report bluespace,

I am unable to reproduce the issue my end.

If I start Everything with:
Everything.exe -width 320 -height 200


Set the toggle window hotkey to: Ctrl + Alt + F12

Pressing the hotkey will toggle my window.


the toggle window hotkey does not work.
What happens when you press your Hot key? is the window shown? or is no window ever shown?
Does the window never close if it is the active window?



Could you please send your Help -> Troubleshooting information.
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

Re: A bug report

Post by bluespace »

Thank you for your quick response.
I tried again. Another option -startup is also needed to reproduce the issue.
My whole command is
Everything.exe -startup -width 1000 -height 800
Sometimes it works, and sometimes it does not.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: A bug report

Post by void »

Please capture a debug log:
In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging...
Close the Everything window.
Press your keyboard shortcut.
repeat until it 'doesn't work'.

Launch Everything from the tray icon / taskbar icon.
In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging...
This will open your %TEMP%\Everything Debug Log.txt in Notepad.
Please upload this file in a bug report.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: A bug report

Post by void »

Thank you for the debug logs.

I tested your setup on my end, but wasn't able to reproduce the issue.

Could you please repeat the debug log process again with verbose logging enabled.
verbose logging will capture more information.



Please capture a verbose debug log:
In Everything, from the Tools menu, under the Debug submenu, check Verbose
From the Tools menu, under the Debug submenu, click Start Debug Logging...
Close the Everything window.
Press your keyboard shortcut.
repeat until it 'doesn't work'.

Launch Everything from the tray icon / taskbar icon.
In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging...
This will open your %TEMP%\Everything Debug Log.txt in Notepad.
Please upload this file in a bug report.
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

Re: A bug report

Post by bluespace »

following your instructions, I uploaded the debug logs again.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: A bug report

Post by void »

Thank you for the verbose logs.

The hotkey event is never sent to Everything.
(There's no TRAY 00000312 message in the log)

Is your hotkey being registered in another program?



Please check if Everything fails to register your hotkey:
In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging...
from the Tools menu, click Options.
Click the Keyboard tab on the left.
Clear your hotkey.
Click Apply.
Re-set your hotkey.
Click OK.

In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging...
This will open your %TEMP%\Everything Debug Log.txt in Notepad.
Please upload this file in a bug report.
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

Re: hotkey does not work

Post by bluespace »

My hotkey is Alt+-. System widely this hotkey is not registered by another program. But some programs may use it. I found that Powershell uses it.
After I reset the hotkey, it works well. But before version 1396, It worked well even if I did not reset the hotkey.

I have uploaded the new debug log.
Thank you.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: hotkey does not work

Post by void »

Thank you for the log.

The log shows the hotkey is successfully registered.
The log shows the hotkey is pressed.
The active window is closed.
The log shows the hotkey is pressed for a second time.
A new new window is created.



I don't have a good reason as to why Everything failed to register the hotkey before.
I would need to see the logs when Everything starts up, the log would contain the reason the hotkey failed to register.

Please let me know if you see the issue again.
Xavierarmand
Posts: 38
Joined: Fri Nov 24, 2023 12:19 am

Re: hotkey does not work

Post by Xavierarmand »

I'm not sure how related my issue is to what you have happening here BUT

I am also having new off issues with some of my hotkeys after updating to v1399a

with likely my most used hotkey Ctrl + Shift + P to copy path

noticed the name change in in the ini..

v1396a=file_copy_full_path_keys=1360,9552
v1399a=file_copy_path_and_name_keys=1360

in 1396 when I had multiple files selected it would copy the path to all of them, so perfectly I could controlsend the hotkey via autohotkey and still get all the paths without even activating EV.

in 1399 it only capturing the path of last selected item

trying to poke around in the keyboard settings to see what changed there... I'm a bit crippled without this key working. its been set for a few years.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: hotkey does not work

Post by void »

Nothing has changed to copy path and name other than the name change.
Sorry for not importing the old file_copy_full_path_keys setting.
The next alpha update will do this.


in 1399 it only capturing the path of last selected item
Please make sure Everything is not running as administrator.

Please check your scripts are calling Everything.exe instead of Everything64.exe

Please check the correct command is being issued (not a bookmark or other item):
  • In Everything 1.5, from the Tools menu, under the Debug submenu, click Start Debug Logging.
  • Select some files and press Ctrl + Shift + P
  • In Everything 1.5, from the Tools menu, under the Debug submenu, click Stop Debug Logging.
    ---This will open your %TEMP%\Everything Debug Log.txt in Notepad.
  • Look for the following line:
    COMMAND 41007

    (this is the command to copy the path and name of the selected items)
  • Is it shown or missing?
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

Re: hotkey does not work

Post by bluespace »

When I exit everything, start everything again with the command "everything.exe -startup -width xxx -heigh yyy", the issue is still there.
void wrote: Thu Sep 18, 2025 3:06 am Thank you for the log.

The log shows the hotkey is successfully registered.
The log shows the hotkey is pressed.
The active window is closed.
The log shows the hotkey is pressed for a second time.
A new new window is created.



I don't have a good reason as to why Everything failed to register the hotkey before.
I would need to see the logs when Everything starts up, the log would contain the reason the hotkey failed to register.

Please let me know if you see the issue again.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: hotkey does not work

Post by void »

Exit Everything (File -> Exit)

Launch Everything with:

Everything.exe -startup -width 640 -height 480 -debug-log


Press your keyboard shortcut.

In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging...
This will open your %TEMP%\Everything Debug Log.txt in Notepad.
Please upload this file in a bug report.
-The log will show any failure codes when registering the hot key.
Xavierarmand
Posts: 38
Joined: Fri Nov 24, 2023 12:19 am

Re: hotkey does not work

Post by Xavierarmand »

I have updated the changes for ev64.exe > ev.exe

as far has sending the hotkey to EV from AHK it looks(ed) like this...
;; this now returns a single file name

Code: Select all

evcopyallpaths:
    ControlSend, SysListView321, ^+{p}, Everything 1.5
return
Update on controlSend.. so I change the hotkey to send a capitol^+{P} and now I'm getting multiple file paths as I should be.

and with debugging on, using the same hotkey when EV is active.
I will the the the full paths of the selected files with...
COMMAND 40210
both hotkey and controlsend are using this cmd.

to get this hotkey to work again I had to change it in Prefs. making... File | Copy Path and Name 41007 (Global).
I removed the old key 2 nights again. thou I think it previously was on.. Result List | Hot Item | Copy Path and Name 42210
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: hotkey does not work

Post by void »

Thank you for the logs bluespace,
2025-09-19 22:57:58.878: RegisterHotKey failed 1409
Error 1409 is: ERROR_HOTKEY_ALREADY_REGISTERED Hot key is already registered.



Please check if another instance of Everything or other program is registering this hotkey.
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

Re: hotkey does not work

Post by bluespace »

I figured out the reason.
"everything.exe -exit" needs some time to completely quit. If I restart everything too quickly, the hotkey will conflict with the old instance.

void wrote: Sat Sep 20, 2025 1:33 am Thank you for the logs bluespace,
2025-09-19 22:57:58.878: RegisterHotKey failed 1409
Error 1409 is: ERROR_HOTKEY_ALREADY_REGISTERED Hot key is already registered.



Please check if another instance of Everything or other program is registering this hotkey.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: hotkey does not work

Post by void »

Use:
Everything.exe -exit -wait


which will not return until Everything has exited.

-wait
-exit
bluespace
Posts: 11
Joined: Thu Nov 28, 2024 3:47 pm

Re: hotkey does not work

Post by bluespace »

Great, it works well.
void wrote: Sat Sep 20, 2025 10:48 pm Use:
Everything.exe -exit -wait


which will not return until Everything has exited.

-wait
-exit
Post Reply