UI IDs for SendMessage and WM_COMMAND, and UI Objects

Plug-in and third party software discussion.
Post Reply
void
Developer
Posts: 16745
Joined: Fri Oct 16, 2009 11:31 pm

UI IDs for SendMessage and WM_COMMAND, and UI Objects

Post by void »

These IDs are consistent for all versions of Everything.
Send these commands to an Everything window via SendMessage().

Search window messages

Code: Select all

SendMessage(FindWindow("EVERYTHING",0),WM_COMMAND,MAKEWPARAM(command,0),0);
File menu

Code: Select all

#define UI_ID_FILE_NEW_WINDOW 40010 
#define UI_ID_FILE_CLOSE 40011 
#define UI_ID_FILE_EXPORT 40012 
#define UI_ID_FILE_EXIT 40013
#define UI_ID_FILE_OPEN_FILELIST 40014
#define UI_ID_FILE_CLOSE_FILELIST 40015
Edit menu

Code: Select all

#define UI_ID_EDIT_CUT 40020 
#define UI_ID_EDIT_COPY 40021
#define UI_ID_EDIT_PASTE 40022
#define UI_ID_EDIT_SELECT_ALL 40023
#define UI_ID_EDIT_INVERT_SELECTION 40029
View menu

Code: Select all

#define UI_ID_VIEW_ZOOM_IN 40030
#define UI_ID_VIEW_ZOOM_OUT 40031
#define UI_ID_VIEW_ZOOM_RESET 40032
#define UI_ID_VIEW_TOGGLE_FULLSCREEN 40034
#define UI_ID_VIEW_AUTO_FIT 40044
#define UI_ID_VIEW_AUTO_SIZE_1 40045
#define UI_ID_VIEW_AUTO_SIZE_2 40046
#define UI_ID_VIEW_AUTO_SIZE_3 40047
#define UI_ID_VIEW_REFRESH 40036
#define UI_ID_VIEW_FILTERS 40035
#define UI_ID_VIEW_SORT_BY_ASCENDING 40037
#define UI_ID_VIEW_SORT_BY_DESCENDING 40038
#define UI_ID_VIEW_STATUS_BAR 40039
#define UI_ID_VIEW_GOTO_BACK 40040
#define UI_ID_VIEW_GOTO_FORWARD 40041
#define UI_ID_VIEW_ONTOP_NEVER 40042
#define UI_ID_VIEW_ONTOP_ALWAYS 40043
#define UI_ID_VIEW_ONTOP_WHILE_SEARCHING 40048
#define UI_ID_VIEW_GOTO_HOME 40049
#define UI_ID_VIEW_TOGGLE_LTR_RTL 40050
#define UI_ID_VIEW_DETAILS 40051
#define UI_ID_VIEW_MEDIUM_ICONS 40052
#define UI_ID_VIEW_LARGE_ICONS 40053
#define UI_ID_VIEW_EXTRA_LARGE_ICONS 40054
Search menu

Code: Select all

#define UI_ID_SEARCH_TOGGLE_MATCH_CASE 40060
#define UI_ID_SEARCH_TOGGLE_MATCH_WHOLE_WORD 40061
#define UI_ID_SEARCH_TOGGLE_MATCH_PATH 40062
#define UI_ID_SEARCH_TOGGLE_REGEX 40063
#define UI_ID_SEARCH_TOGGLE_MATCH_DIACRITICS 40066
#define UI_ID_SEARCH_FILTER_ADD 40067
#define UI_ID_SEARCH_FILTER_ORGANIZE 40068
Tools menu

Code: Select all

#define UI_ID_TOOLS_CONNECT_TO_ETP_SERVER 40072
#define UI_ID_TOOLS_DISCONNECT_FROM_ETP_SERVER 40073
#define UI_ID_TOOLS_OPTIONS 40074
#define UI_ID_TOOLS_CONSOLE 40075
#define UI_ID_TOOLS_EDITOR 40076
Help menu

Code: Select all

#define UI_ID_HELP_VIEW_HELP_TOPICS 40080
#define UI_ID_HELP_OPEN_EVERYTHING_WEBSITE 40081
#define UI_ID_HELP_CHECK_FOR_UPDATES 40082
#define UI_ID_HELP_ABOUT_EVERYTHING 40083
#define UI_ID_HELP_SEARCH_SYNTAX 40084
#define UI_ID_HELP_COMMAND_LINE_OPTIONS 40085
#define UI_ID_HELP_REGEX_SYNTAX 40086
Bookmark menu

Code: Select all

#define UI_ID_BOOKMARK_ADD 40090
#define UI_ID_BOOKMARK_ORGANIZE 40091
Bookmarks

Code: Select all

#define UI_ID_BOOKMARK_START 44000
#define UI_ID_BOOKMARK_END 45000 // exclusive
Filters

Code: Select all

#define UI_ID_FILTER_START 45000
#define UI_ID_FILTER_END 46000 // exclusive
Navigation

Code: Select all

#define UI_ID_VIEW_GOTO_START 46000
#define UI_ID_VIEW_GOTO_END 47000 // exclusive
File results

Code: Select all

#define UI_ID_FILE_OPEN 41000
#define UI_ID_FILE_OPEN_NEW 41048
#define UI_ID_FILE_OPEN_WITH 41049
#define UI_ID_FILE_EDIT 41050
#define UI_ID_FILE_PLAY 41051
#define UI_ID_FILE_PRINT 41052
#define UI_ID_FILE_PREVIEW 41053
#define UI_ID_FILE_PRINT_TO 41054
#define UI_ID_FILE_RUN_AS 41055
#define UI_ID_FILE_OPEN_WITH_DEFAULT_VERB 41056
#define UI_ID_FILE_OPEN_AND_CLOSE 41057
#define UI_ID_FILE_EXPLORE_PATH 41002
#define UI_ID_FILE_OPEN_PATH 41003
#define UI_ID_FILE_DELETE 41004
#define UI_ID_FILE_PERMANENTLY_DELETE 41005
#define UI_ID_FILE_RENAME 41006
#define UI_ID_FILE_COPY_FULL_PATH_AND_NAME 41007
#define UI_ID_FILE_COPY_PATH 41008
#define UI_ID_FILE_PROPERTIES 41009
#define UI_ID_FILE_READ_EXTENDED_INFORMATION 41064
#define UI_ID_FILE_CREATE_SHORTCUT 41065
#define UI_ID_FILE_SET_RUN_COUNT 41068
Result list

Code: Select all

#define UI_ID_RESULT_LIST_EXPLORE 41001
#define UI_ID_RESULT_LIST_FOCUS 41010
#define UI_ID_RESULT_LIST_AUTOFIT_COLUMNS 41012
#define UI_ID_RESULT_LIST_DOWN 41018
#define UI_ID_RESULT_LIST_UP 41019
#define UI_ID_RESULT_LIST_PAGE_UP 41020
#define UI_ID_RESULT_LIST_PAGE_DOWN 41021
#define UI_ID_RESULT_LIST_START 41022
#define UI_ID_RESULT_LIST_END 41023
#define UI_ID_RESULT_LIST_DOWN_EXTEND 41024
#define UI_ID_RESULT_LIST_UP_EXTEND 41025
#define UI_ID_RESULT_LIST_PAGE_UP_EXTEND 41026
#define UI_ID_RESULT_LIST_PAGE_DOWN_EXTEND 41027
#define UI_ID_RESULT_LIST_START_EXTEND 41028
#define UI_ID_RESULT_LIST_END_EXTEND 41029
#define UI_ID_RESULT_LIST_FOCUS_DOWN 41030
#define UI_ID_RESULT_LIST_FOCUS_UP 41031
#define UI_ID_RESULT_LIST_FOCUS_PAGE_UP 41032
#define UI_ID_RESULT_LIST_FOCUS_PAGE_DOWN 41033
#define UI_ID_RESULT_LIST_FOCUS_START 41034
#define UI_ID_RESULT_LIST_FOCUS_END 41035
#define UI_ID_RESULT_LIST_SCROLL_LEFT 41036
#define UI_ID_RESULT_LIST_SCROLL_RIGHT 41037
#define UI_ID_RESULT_LIST_SCROLL_PAGE_LEFT 41038
#define UI_ID_RESULT_LIST_SCROLL_PAGE_RIGHT 41039
#define UI_ID_RESULT_LIST_SELECT_FOCUS 41040
#define UI_ID_RESULT_LIST_TOGGLE_FOCUS_SELECTION 41041
#define UI_ID_RESULT_LIST_CONTEXT_MENU 41046
#define UI_ID_RESULT_LIST_FOCUS_DOWN_EXTEND 41058
#define UI_ID_RESULT_LIST_FOCUS_UP_EXTEND 41059
#define UI_ID_RESULT_LIST_FOCUS_PAGE_UP_EXTEND 41060
#define UI_ID_RESULT_LIST_FOCUS_PAGE_DOWN_EXTEND 41061
#define UI_ID_RESULT_LIST_FOCUS_START_EXTEND 41062
#define UI_ID_RESULT_LIST_FOCUS_END_EXTEND 41063
#define UI_ID_RESULT_LIST_AUTOFIT 41066
#define UI_ID_RESULT_LIST_COPY_CSV 41067
#define UI_ID_RESULT_LIST_LEFT_EXTEND 41070
#define UI_ID_RESULT_LIST_RIGHT_EXTEND 41071
#define UI_ID_RESULT_LIST_FOCUS_LEFT_EXTEND 41072
#define UI_ID_RESULT_LIST_FOCUS_RIGHT_EXTEND 41073
#define UI_ID_RESULT_LIST_SORT_BY_NAME 41300
#define UI_ID_RESULT_LIST_SORT_BY_PATH 41301
#define UI_ID_RESULT_LIST_SORT_BY_SIZE 41302
#define UI_ID_RESULT_LIST_SORT_BY_EXTENSION 41303
#define UI_ID_RESULT_LIST_SORT_BY_TYPE 41304
#define UI_ID_RESULT_LIST_SORT_BY_DATE_MODIFIED 41305
#define UI_ID_RESULT_LIST_SORT_BY_DATE_CREATED 41306
#define UI_ID_RESULT_LIST_SORT_BY_ATTRIBUTES 41307
#define UI_ID_RESULT_LIST_SORT_BY_FILE_LIST_FILENAME 41308
#define UI_ID_RESULT_LIST_SORT_BY_RUN_COUNT 41309
#define UI_ID_RESULT_LIST_SORT_BY_DATE_RECENTLY_CHANGED 41310
#define UI_ID_RESULT_LIST_SORT_BY_DATE_ACCESSED 41311
#define UI_ID_RESULT_LIST_SORT_BY_DATE_RUN 41312
#define UI_ID_RESULT_LIST_TOGGLE_NAME_COLUMN 41400
#define UI_ID_RESULT_LIST_TOGGLE_PATH_COLUMN 41401
#define UI_ID_RESULT_LIST_TOGGLE_SIZE_COLUMN 41402
#define UI_ID_RESULT_LIST_TOGGLE_EXTENSION_COLUMN 41403
#define UI_ID_RESULT_LIST_TOGGLE_TYPE_COLUMN 41404
#define UI_ID_RESULT_LIST_TOGGLE_DATE_MODIFIED_COLUMN 41405
#define UI_ID_RESULT_LIST_TOGGLE_DATE_CREATED_COLUMN 41406
#define UI_ID_RESULT_LIST_TOGGLE_ATTRIBUTES_COLUMN 41407
#define UI_ID_RESULT_LIST_TOGGLE_FILE_LIST_FILENAME_COLUMN 41408
#define UI_ID_RESULT_LIST_TOGGLE_RUN_COUNT_COLUMN 41409
#define UI_ID_RESULT_LIST_TOGGLE_DATE_RECENTLY_CHANGED_COLUMN 41410
#define UI_ID_RESULT_LIST_TOGGLE_DATE_ACCESSED_COLUMN 41411
#define UI_ID_RESULT_LIST_TOGGLE_DATE_RUN_COLUMN 41412
#define UI_ID_RESULT_LIST_SIZE_NAME_COLUMN_TO_FIT 41600
#define UI_ID_RESULT_LIST_SIZE_PATH_COLUMN_TO_FIT 41601
#define UI_ID_RESULT_LIST_SIZE_SIZE_COLUMN_TO_FIT 41602
#define UI_ID_RESULT_LIST_SIZE_EXTENSION_COLUMN_TO_FIT 41603
#define UI_ID_RESULT_LIST_SIZE_TYPE_COLUMN_TO_FIT 41604
#define UI_ID_RESULT_LIST_SIZE_DATE_MODIFIED_COLUMN_TO_FIT 41605
#define UI_ID_RESULT_LIST_SIZE_DATE_CREATED_COLUMN_TO_FIT 41606
#define UI_ID_RESULT_LIST_SIZE_ATTRIBUTES_COLUMN_TO_FIT 41607
#define UI_ID_RESULT_LIST_SIZE_FILE_LIST_FILENAME_COLUMN_TO_FIT 41608
#define UI_ID_RESULT_LIST_SIZE_RUN_COUNT_COLUMN_TO_FIT 41609
#define UI_ID_RESULT_LIST_SIZE_DATE_RECENTLY_CHANGED_COLUMN_TO_FIT 41610
#define UI_ID_RESULT_LIST_SIZE_DATE_ACCESSED_COLUMN_TO_FIT 41611
#define UI_ID_RESULT_LIST_SIZE_DATE_RUN_COLUMN_TO_FIT 41612
Custom verbs

Code: Select all

#define UI_ID_FILE_CUSTOM_VERB01 41500
#define UI_ID_FILE_CUSTOM_VERB02 41501
#define UI_ID_FILE_CUSTOM_VERB03 41502
#define UI_ID_FILE_CUSTOM_VERB04 41503
#define UI_ID_FILE_CUSTOM_VERB05 41504
#define UI_ID_FILE_CUSTOM_VERB06 41505
#define UI_ID_FILE_CUSTOM_VERB07 41506
#define UI_ID_FILE_CUSTOM_VERB08 41507
#define UI_ID_FILE_CUSTOM_VERB09 41508
#define UI_ID_FILE_CUSTOM_VERB10 41509
#define UI_ID_FILE_CUSTOM_VERB11 41510
#define UI_ID_FILE_CUSTOM_VERB12 41511
Search edit

Code: Select all

#define UI_ID_SEARCH_EDIT_FOCUS 42000
#define UI_ID_SEARCH_EDIT_WORD_DELETE_TO_START 42019
#define UI_ID_SEARCH_EDIT_AUTO_COMPLETE 42020
#define UI_ID_SEARCH_EDIT_SHOW_SEARCH_HISTORY 42021
#define UI_ID_SEARCH_EDIT_SHOW_ALL_SEARCH_HISTORY 42022
System tray messages

Code: Select all

SendMessage(FindWindow("EVERYTHING_TASKBAR_NOTIFICATION",0),WM_COMMAND,MAKEWPARAM(command,0),0);
Tray

Code: Select all

#define UI_ID_TRAY_NEW_SEARCH_WINDOW 40001
#define UI_ID_TRAY_CONNECT_TO_ETP_SERVER 40004
#define UI_ID_TRAY_OPTIONS 40005
#define UI_ID_TRAY_EXIT 40006
#define UI_ID_TRAY_SHOW_SEARCH_WINDOW 40007
#define UI_ID_TRAY_TOGGLE_SEARCH_WINDOW 40008
File lists

Code: Select all

#define UI_ID_TRAY_EDITOR 41700
#define UI_ID_TRAY_OPEN_FILELIST 41701
UI Objects

Code: Select all

GetDlgItem(FindWindow("EVERYTHING",0),id);
Object IDs

Code: Select all

#define UI_ID_FILE_MENU 10001
#define UI_ID_EDIT_MENU 10002
#define UI_ID_SEARCH_MENU 10003
#define UI_ID_TOOLS_MENU 10004
#define UI_ID_HELP_MENU 10005
#define UI_ID_TOOLBAR 10006
#define UI_ID_SEARCH_EDIT 10007
#define UI_ID_FILTER 10008
#define UI_ID_RESULTS_HEADER 10009
#define UI_ID_STATUS 10010
#define UI_ID_VIEW_ZOOM_MENU 10012
#define UI_ID_VIEW_MENU 10013
#define UI_ID_VIEW_WINDOW_SIZE_MENU 10019
#define UI_ID_RESULT_LIST 10020
#define UI_ID_BOOKMARKS_MENU 10021
#define UI_ID_VIEW_SORT_BY_MENU 10022
#define UI_ID_VIEW_GOTO_MENU 10024
#define UI_ID_VIEW_ONTOP_MENU 10025
Post Reply