EVERYTHING_IPC_ID_SEARCH_FILTER_EVERYTHING. Howto?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

EVERYTHING_IPC_ID_SEARCH_FILTER_EVERYTHING. Howto?

Post by ovg »

I can retrieve current search filter with AHK:

Code: Select all

SendMessage, 0x400, 512,,,ahk_class EVERYTHING
cur_filt := ErrorLevel
This work fine. But I can't set filter.

Code: Select all

SendMessage(FindWindow(EVERYTHING_IPC_SEARCH_CLIENT_WNDCLASS,0),WM_COMMAND,MAKEWPARAM(EVERYTHING_IPC_ID_*,0),0)
What is the WM_COMMAND and the MAKEWPARAM(EVERYTHING_IPC_ID_*,0),
in other words: what should I write instead of 0x400 and 512 in SendMessage call?
void
Developer
Posts: 16671
Joined: Fri Oct 16, 2009 11:31 pm

Re: EVERYTHING_IPC_ID_SEARCH_FILTER_EVERYTHING. Howto?

Post by void »

The correct usage of EVERYTHING_WM_IPC,EVERYTHING_IPC_GET_FILTER should be:

int filter = (int)SendMessage(FindWindow(EVERYTHING_IPC_SEARCH_CLIENT_WNDCLASS,0),EVERYTHING_WM_IPC,EVERYTHING_IPC_GET_FILTER,0);

filter can be one of the following:

Code: Select all

EVERYTHING_IPC_FILTER_EVERYTHING        0
EVERYTHING_IPC_FILTER_AUDIO             1
EVERYTHING_IPC_FILTER_COMPRESSED        2
EVERYTHING_IPC_FILTER_DOCUMENT          3
EVERYTHING_IPC_FILTER_EXECUTABLE        4
EVERYTHING_IPC_FILTER_FOLDER            5
EVERYTHING_IPC_FILTER_PICTURE           6
EVERYTHING_IPC_FILTER_VIDEO             7
EVERYTHING_IPC_FILTER_CUSTOM            8

Code: Select all

SendMessage, 0x400, 512,,,ahk_class EVERYTHING
cur_filt := ErrorLevel
Looks correct.

To set the filter, please call one of the following IPC calls:

Code: Select all

EVERYTHING_IPC_ID_SEARCH_FILTER_EVERYTHING              40116
EVERYTHING_IPC_ID_SEARCH_FILTER_AUDIO                   40117
EVERYTHING_IPC_ID_SEARCH_FILTER_COMPRESSED              40118
EVERYTHING_IPC_ID_SEARCH_FILTER_DOCUMENT                40119
EVERYTHING_IPC_ID_SEARCH_FILTER_EXECUTABLE              40120
EVERYTHING_IPC_ID_SEARCH_FILTER_FOLDER                  40121
EVERYTHING_IPC_ID_SEARCH_FILTER_PICTURE                 40122
EVERYTHING_IPC_ID_SEARCH_FILTER_VIDEO                   40123
EVERYTHING_IPC_ID_SEARCH_FILTER_AUDIO_NO_TOGGLE         40124
EVERYTHING_IPC_ID_SEARCH_FILTER_COMPRESSED_NO_TOGGLE    40125
EVERYTHING_IPC_ID_SEARCH_FILTER_DOCUMENT_NO_TOGGLE      40126
EVERYTHING_IPC_ID_SEARCH_FILTER_EXECUTABLE_NO_TOGGLE    40127
EVERYTHING_IPC_ID_SEARCH_FILTER_FOLDER_NO_TOGGLE        40128
EVERYTHING_IPC_ID_SEARCH_FILTER_PICTURE_NO_TOGGLE       40129
EVERYTHING_IPC_ID_SEARCH_FILTER_VIDEO_NO_TOGGLE         40130
Usage:
SendMessage(FindWindow(EVERYTHING_IPC_SEARCH_CLIENT_WNDCLASS,0),WM_COMMAND,MAKEWPARAM(EVERYTHING_IPC_ID_*,0),0);


_NO_TOGGLE means the filter is not changed to the Everything filter when the specified filter is already set.

For example, to set the Picture filter:

Code: Select all

SendMessage, 0x0111, 40129,,,ahk_class EVERYTHING
ovg
Posts: 294
Joined: Thu Oct 27, 2016 7:19 pm

Re: EVERYTHING_IPC_ID_SEARCH_FILTER_EVERYTHING. Howto?

Post by ovg »

2void
Working like a charm!
I did not realize that WM_COMMAND is itself WM_COMMAND (0x111)

David, Thanks you very much for clarifications
and for the GREAT TOOL!
Post Reply