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