AutoIt script error when triggered by Everything

Discussion related to "Everything" 1.5.
Post Reply
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

AutoIt script error when triggered by Everything

Post by Native2904 »

Hello,
I have a small issue with Everything and an AutoIt script that passes search results to Total Commander.
EV2TC - Everything to Total Commander

After a lot of trial and error, I wanted to ask if anyone might have an idea or suggestion.
The problem is the following:

I added a Custom Command in Everything and assigned a hotkey to my AutoItScript.exe.

Code: Select all

$exec("C:\tcmd\Scripte\Everything2Tc\EV2TC.exe")
2026-03-11_185504.png
2026-03-11_185504.png (48.32 KiB) Viewed 1849 times
When I trigger the script using this hotkey, I get an error message.

However, if I run the AutoItScript.exe from Total Commander or from the taskbar, it works correctly.

To illustrate the issue, I recorded a short video and used Carnac so that the pressed keys are visible.

https://imgur.com/VKvUzel
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: AutoIt script error when triggered by Everything

Post by void »

Everything window not found
Are you running Everything in an instance?
Please send your Help -> Troubleshooting information.
tuska
Posts: 1382
Joined: Thu Jul 13, 2017 9:14 am

Re: AutoIt script error when triggered by Everything

Post by tuska »

I would like to mention the following,
as I have already participated in discussions on this topic in the Total Commander forum.

Advanced
custom_open_command02
"C:\tcmd\Scripte\Everything2Tc\EV2TC.exe"

Keyboard
File | Custom Open 2
UMSCHALT+ä (Result List)
    = SHIFT+ä (Result List)

EV2TC.au3
Linee 98 - 111

Code: Select all

; ==================== FIND EVERYTHING
; Class name varies by Alpha Instance setting, e.g. "EVERYTHING" or "EVERYTHING_(1.5a)".
Local $hWnd = 0
Local $aWinList = WinList()
For $i = 1 To $aWinList[0][0]
    If StringLeft(WinGetClassList($aWinList[$i][1]), 10) = "EVERYTHING" Then
        $hWnd = $aWinList[$i][1]
        ExitLoop
    EndIf
Next
If $hWnd = 0 Then
    MsgBox(16, "EV2TC", "Everything window not found.")
    Exit
EndIf
The question arises as to why Everything closes after pressing SHIFT+ä in the search results list -> for user Native2904.
The AutoIt script requires Everything to remain open.

(I have already tested various keyboard shortcuts on my computer without any problems).
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: AutoIt script error when triggered by Everything

Post by horst.epp »

I don't need the hotkey from Everything as I use use QuickAccessPopUp for global hotkeys
but I tested it in my current Everything config.
It runs in the default instance without the Alpha extension.
Furthermore, I tested with several hotkeys and Custom command numbers.
For me ot looks like the script is not started with a hotkey from Everything.

Everything client is always running in the background
and found by the AHK script started from TC, QAP or a button on the taskbar.
Only when started from inside of Everything something goes wrong.

Troubleshooting information:

Code: Select all

Everything 1.5.0.1407a (x64)
OS:	Windows NT 10.0 26200 (x64)
Admin:	0
Service:	1 (connected / installed and running)
Command line:	
Binary:	C:\Tools\Everything\Everything.exe
Profile:	C:\Tools\Everything\Everything.ini
Database:	C:\Tools\Everything\Everything.db
Instance:	

Config:
toggle_window_from_tray_icon=1
check_for_updates_on_startup=1
beta_updates=1
highlight_max_or_paths=256
toggle_window_key=1043
language=1033
open_folder_command2=$exec("C:\Tools\Wincmd\totalcmd64.exe"  /o /t /s "%1")
open_path_command2="C:\Tools\Wincmd\totalcmd64.exe" /a /o /t /s "%1"
explore_command2="%SystemRoot%\explorer.exe" /n,/e,/select,"%1"
explore_path_command2="C:\Tools\XYplorer\XYplorer.exe" "%1"
custom_open_commands=[{"name":"Open Archive in TC","type":2,"filter"="*.7z;*.zip;*.rar;*.aes;*.jpg;*.zpaq;*.EOC","command"="$exec(\"C:\\Tools\\Wincmd\\Totalcmd64.exe\" /a /o /s \"%1\")"},{"name":"Edit with PSPad","type":2,"filter"="*.ini;*.txt","command"="$exec(\"C:\\Tools\\PSPad\\PSPad.exe\" \"%1\")"}]
alpha_instance=0
clipboard_multiple_locations_shell_idlist_array=1
auto_include_fixed_volumes=0
auto_remove_offline_ntfs_volumes=0
filelist_preview=0
filelist_context_menu=0
set_foreground_window_attach_thread_input=0
home_filter=1
home_sort=1
allow_multiple_windows_from_tray=1
single_click_tray=1
path_hit_text_only=1
double_quote_copy_as_path=1
scale=1.250000
ctrl_tab_action=3
property_system=0
property_alternate_data_stream_ansi=custom property 0=MyComment;custom property 1=MyTag
custom_property_0=MyComment
custom_property_1=MyTag
allow_literal_operators=1
match_whole_filename_when_using_wildcards=0
match_start_of_filename_with_caret=2
size_format=0
bookmark_remember_case=1
bookmark_remember_wholeword=1
bookmark_remember_path=1
bookmark_remember_diacritic=1
bookmark_remember_prefix=1
bookmark_remember_suffix=1
bookmark_remember_ignore_punctuation=1
bookmark_remember_ignore_whitespace=1
bookmark_remember_regex=1
bookmark_remember_sort=1
bookmark_remember_filter=1
bookmark_remember_columns=1
bookmark_remember_index=1
exclude_list_enabled=0
follow_reparse_points=0
db_location=C:\Tools\Everything
index_attributes=1
fast_attributes_sort=1
fast_extension_sort=1
index_recent_changes=1
folder_rescan_timeout=300000
text_plain_extensions=a;ans;asc;ascx;asm;asp;aspx;asx;bas;bat;bcp;btm;c;cc;cls;cmd;contact;cpp;cs;csa;csproj;css;csv;cxx;dbs;def;dic;dos;dsp;dsw;efu;ext;faq;fky;h;hhc;hpp;hta;htm;html;htt;htw;htx;hxx;i;ibq;ics;idl;idq;inc;inf;ini;inl;inx;jav;java;js;json;kci;lgn;lst;lua;m3u;mak;mk;odc;odh;odl;php;pl;prc;ps1xml;py;rc;rc2;rct;reg;rgs;rul;s;scc;shtm;shtml;sol;sql;srf;stm;tab;tdl;tlh;tli;trg;txt;udf;udt;user;usr;vbproj;vbs;vcproj;viw;vspscc;vsscc;vssscc;wri;wtx;xml;xsd;xsl;xslt
content_indexing_enabled=1
content_indexing_include_only_folders=C:\temp\PDF;C:\Tools;C:\Backup\Detached;C:\Documents\Privat;C:\Temp\Stadtspiegel;C:\Users\horst\AppData\Roaming\Thunderbird\Profiles\eypx4io3.default\Mail\Local Folders-maildir\
content_indexing_include_only_files=*.doc;*.docx;*.txt;*.xls;*.odt;*.ods;*.txt;*.eml;*.csv;*.md;*.ini;*.pdf;*.pptx;*.ppt;*.rtf;*.ion;*.ahk;descript.ion
content_indexing_exclude_recall_on_data_access=0
find_and_select_clear_selection=0
show_copy_name=1
show_copy_path=1
show_copy_full_name=1
show_explore=1
show_explore_path=1
context_menu_parent_folder=4
context_menu_search_column_value=1
filter=EVERYTHING
filter_everything_name=Everything
filter_select_focus_search=0
preview_handlers=[{"filter":"ext:aac;ac3;adt;adts;aif;aifc;aiff;amr;ape;au;cda;dts;ec3;fla;flac;lpcm;m1a;m2a;m3u;m3u8;m4a;m4b;m4p;mid;midi;mka;mp2;mp3;mpa;mpc;oga;ogg;opus;ra;rmi;snd;wav;wax;weba;wma","handler":"{031EE060-67BC-460d-8847-E4A7C5E45A27}"},{"filter":"ext:3g2;3gp;3gp2;3gpp;amv;asf;asx;avi;bdmv;bik;d2v;divx;drc;dsa;dsm;dss;dsv;evo;f4v;flc;fli;flic;flv;hdmov;ifo;ivf;m1v;m2p;m2t;m2ts;m2v;m4v;mkv;mod;mov;mp2v;mp4;mp4v;mpe;mpeg;mpg;mpls;mpv2;mpv4;mts;ogm;ogv;ogx;pss;pva;qt;ram;ratdvd;rm;rmm;rmvb;roq;rpm;smil;smk;swf;tod;tp;tpr;ts;tts;uvu;vob;vp6;webm;wm;wmp;wmv;wmx;wvx","handler":"{031EE060-67BC-460d-8847-E4A7C5E45A27}"
findbar_highlight_all=0
search_history_always_suggest=1
columns=[{"name":"Name","width":552},{"name":"Path","width":396},{"name":"Date Modified","width":120},{"name":"Date Received","width":124},{"name":"Size","width":100},{"name":"Custom Property 1","width":92}]
ntfs_volumes=[{"path":"C:","volume_name":"\\\\?\\Volume{7e}"},{"path":"D:","volume_name":"\\\\?\\Volume{d9}"}]
properties=[{"name":"Container Filenames","include_only_folders":"c:\\temp\\download","include_only_files":"*.7z;*.rar;*.zip","exclude_recall_on_data_access":1,"max_size":52428800},{"name":"Custom Property 0","include_only_folders":"c:\\documents\\;c:\\temp\\"},{"name":"Custom Property 1","include_only_folders":"c:\\documents\\;c:\\temp\\"},{"name":"Date Received","include_folders":1,"include_only_folders":"C:\\Users\\horst\\AppData\\Roaming\\Thunderbird\\Profiles\\eypx4io3.default\\Mail\\Local Folders-maildir\\","include_only_files":"*.eml","exclude_recall_on_data_access":1,"fast_sort":1}]
exclude_folders="$RECYCLE.BIN"

Policy:
ipc_allow_read_access=1

Plugins:
______________________________________________________
Windows 11 Home Version 25H2 (OS Build 26200.8037)
Everything 1.5.0.1407a (x64), Everything Toolbar 2.2
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: AutoIt script error when triggered by Everything

Post by Native2904 »

Hi Void,

when i hit the Hotkey, then Everything runs as a portable single instance - hope this is what you ask for.

Troubleshooting information:

Code: Select all

Everything 1.5.0.1405a (x64)
OS:	Windows NT 10.0 26100 (x64)
Admin:	0
Service:	1 (connected / installed and running)
Command line:	-startup
Binary:	C:\Everything\Everything.exe
Profile:	C:\Everything\Everything.ini
Database:	C:\Everything\Everything.db
Instance:	

Config:
stop_service_on_exit=1
search_command_allow_all=1
thumbnail_load_size=128
open_searches_in_tabs=1
beta_updates=1
highlight_filename_only=1
toggle_window_key=1136
language=1031
statusbar_selected_item_format=1 item (1 of [if:$folder-selection-count:,[text:$folder-result-count:,"#,###"] folders,[text:$file-result-count:,"#,###"] files])[if:$file-selection-count:," | Extension: "$extension:] | Size:$s | Date Modified: $m | Date Created: $c | Date Accessed: $a | Path: $f
statusbar_selection_format=Selected [if:$selection-count:==$result-count:,all,[TEXT:$selection-count:,"#,###"] of] [TEXT:$result-count:,"#,###"] items ([if:$file-result-count:,[if:$file-selection-count:==$file-result-count:,all,[TEXT:$file-selection-count:,"#,###"] of] [TEXT:$file-result-count:,"#,###"],no] files, [if:$folder-result-count:,[if:$folder-selection-count:==$folder-result-count:,all,[TEXT:$folder-selection-count:,"#,###"] of] [TEXT:$folder-result-count:,"#,###"],no] folders) | Size: #if:<$total-selection-size:!=$total-result-size:,#FORMATSIZE:$total-selection-size:,0 of >#FORMATSIZE:<$total-result-size:,0>#if:<$total-result-size:<=1024, (#if:<$total-selection-size:!=$total-result-size:,#TEXT:$total-selection-size:,"#,###" of >#TEXT:$total-result-size:,"#,###" bytes)>
statusbar_format=#if:<#result-count:==1,1 item,#TEXT:<#result-count:,#,###> items> (#TEXT:<#file-result-count:,#,###> files, #TEXT:<#folder-result-count:,#,###> folders)
open_folder_command2=$exec("C:\tcmd\TOTALCMD64.EXE" /o /t /A /S "%1")   
open_path_command2=$exec("C:\Xyplorer\XYplorer.exe" "%1")
explore_path_command2=$exec("C:\tcmd\TOTALCMD64.EXE" /O /S /T $parent("%1"))
custom_open_commands=[{"name":"Open in V_ImageViewer","description":"Kontextmenu VoidImageViewer","include_folders":false,"include_files":true,"filter":"*.png;*.jpg;*.jpeg;*.heic","command":"$exec(\"C:\\Everything\\Tools\\ImageViewer\\voidImageViewer.exe\" /minimal \"%1\")"},{"name":"VoidImage Slideshow","description":"ShowSlideshow ","include_folders":false,"include_files":true,"filter":"","command":"$exec(\"C:\\Everything\\Tools\\ImageViewer\\voidImageViewer.exe\" %* /slideshow /minimal)"},{"name":"IrfanView Thumbs","description":"Show Thumbnails in IrfanView","include_folders":false,"include_files":true,"filter":"","command":"$exec(\"C:\\Users\\Home\\Apps\\IrfanView\\i_view64.exe\"  %* /thumbs)"},{"name":"Open in MPV","description":"Kontextmenu MPV","include_folders":false,"include_files":true,"filter":"*.mp4;*.mkv;*.avi;*.wav","command":"$exec(\"C:\\tcmd\\Tools\\Mpv\\mpv.exe\" \"%1\")"},{"name":"Open Path with Explorer","description":"Windows Explorer","include_folders":true,"include_files":true,"filter":"","command":"$exec(\"%SystemRoot%\\explorer.exe\" /n,/e,/select,\"%1\")"},{"name":"Erstelle Fileliste","description":"Erstelle mit ausgewählten Dateien eine *.efu Liste ","include_folders":true,"include_files":true,"filter":"","command":"Everything.exe -create-file-list \"my file list.efu\" \"%1\""},{"name":"","description":"Doppelklick MPV","include_folders":false,"include_files":true,"filter":"*.mp4;*.mkv;*.avi;*.wov","command":"$exec(\"C:\\tcmd\\Tools\\Mpv\\mpv.exe\" \"%1\")"},{"name":"","description":"Doppelklick VoidImageViewer","include_folders":false,"include_files":true,"filter":"*.png;*.jpg;*.jpeg;*.heic","command":"$exec(\"C:\\Everything\\Tools\\ImageViewer\\voidImageViewer.exe\" \"%1\")"}]
window_title_format=$t<if:isadmin:," [Administrator]"><if:isdbreadonly:," [Read-only]">
tabs_title_format=$s?{$s }$f?{$f }$t$i?{ ($i)} [if:isadmin:,"[Administrator]"]
dialog_title_format=$s?{$s - }$v$i?{ - ($i)}[if:isadmin:," - [Administrator]"]
taskbar_notification_title_format=$t$i?{ ($i)}
alpha_instance=0
auto_include_removable_volumes=1
auto_remove_offline_fat_volumes=1
auto_include_remote_volumes=1
date_format=yyyy.MM.dd
time_format=HH:mm:ss
listview_item_margin_bottom=1
icons_only=1
icon_use_thumbnails=1
filelist_explore_folder_in_everything=1
home_match_case=1
home_match_whole_word=1
home_match_path=1
home_match_diacritics=1
home_match_prefix=1
home_match_suffix=1
home_ignore_punctuation=1
home_ignore_whitespace=1
home_regex=1
home_filter=1
home_columns=1
home_sort=1
home_view=1
single_click_tray=1
close_on_execute=1
gather_properties_on_export=1
focus_search_on_activate=1
menu_folders=1
tabs_load_in_background=0
new_window_command_line=-columns [{"name":"Name","width":250},{"name":"Path","width":595},{"name":"Size","width":80},{"name":"Date Created","width":104},{"name":"Date Modified","width":104},{"name":"Date Accessed","width":133}]
new_tab_command_line=-columns [{"name":"Name","width":250},{"name":"Path","width":595},{"name":"Size","width":80},{"name":"Date Created","width":104},{"name":"Date Modified","width":104},{"name":"Date Accessed","width":133}]
auto_column_widths=1
xyplorer_tag_dat=C:\Xyplorer\Data\tag.dat
property_alternate_data_stream_ansi=Tag=Tag;custom property 0=Comment;custom property 1=Tag
property_cache_exclude_recall_on_data_access=0
allow_literal_operators=1
wildcards_star_all=1
size_number_format=2
tooltip_font=Cascadia Mono
listview_tooltip_max_width=640
show_detailed_listview_tooltips=3
listview_detailed_tooltip_add_properties=volume-label;Date Taken;Comment
path_ellipsis=1
path_narrow=1
selected_border=1
grid_lines=1
shift_open_search_action=2
exclude_list_enabled=0
db_location=C:\Everything
index_date_created=1
fast_date_created_sort=1
fast_date_modified_sort=0
fast_extension_sort=1
index_recent_changes=1
text_plain_extensions=a;ans;asc;ascx;asm;asmx;asp;aspx;asx;bas;bat;bcp;btm;c;cc;cd;cls;cmd;cod;contact;cpp;cs;csa;csh;cshader;csproj;css;csv;cxx;dbs;def;dic;diz;dos;dsh;dshader;dsp;dsw;efu;ext;faq;filters;fky;fx;gsh;gshader;h;hh;hhc;hlsl;hlsli;hpp;hsh;hshader;hta;htm;html;htt;htw;htx;hxx;i;ibq;ics;idl;idq;inc;inf;ini;inl;inx;ipp;jav;java;js;json;jsproj;kci;lgn;log;lst;lua;m3u;mak;map;md;mdp;mk;nfo;nvr;odc;odh;odl;php;php3;pkgdef;pkgundef;pl;plg;prc;ps1xml;psh;pshader;pssc;py;rc;rc2;rct;reg;res;rgs;rul;s;scc;sed;shtm;shtml;sln;slnf;sol;sql;srf;stm;tab;tdl;text;tlh;tli;trg;tsv;tt;txt;udf;udt;url;user;usr;vb;vbproj;vbs;vcp;vcproj;vcw;vcxproj;viw;vsh;vshader;vspscc;vsscc;vssscc;wri;wtx;x;xml;xsd;xsl;xslt;yaml
include_file_content=1
content_include_only_files=*.ahk;*.bar;*.csv;*.doc;*.docx;*.eml;*.ini;*.ion;*.md;*.mdb;*.msg;*.odt;*.pdf;*.pps;*.ppt;*.pptx;*.txt;*.xls;*.xlsm;*.xlsx;*.xlt;*.xltm;*.xltx*.doc;*.docx;*.pdf;*.txt;*.xls;*.xlsx;descript.ion
content_exclude_files=*.db
content_exclude_recall_on_data_access=0
show_copy_name=1
show_copy_path=1
show_copy_full_name=1
context_menu_parent_folder=1
context_menu_copy_column_value=1
context_menu_search_in_everything=0
context_menu_search_in_new_everything_tab=1
context_menu_explore_in_everything=0
context_menu_omit_results=0
context_menu_temp_omit_results=0
context_menu_set_run_count=0
custom_open_command01=$exec("C:\Everything\Tools\ImageViewer\voidImageViewer.exe" %* /slideshow /minimal)
custom_open_command02=$exec("C:\tcmd\Scripte\Everything2Tc\EV2TC.exe")
filter=EVERYTHING
filter_everything_name=Alle Dateien
filter_select_focus_search=0
omit_results=1
preview_handlers=[{"filter":"ext:aac;ac3;adt;adts;aif;aifc;aiff;amr;ape;au;cda;dts;ec3;fla;flac;lpcm;m1a;m2a;m3u;m3u8;m4a;m4b;m4p;mid;midi;mka;mp2;mp3;mpa;mpc;oga;ogg;opus;ra;rmi;snd;wav;wax;weba;wma","handler":"{031EE060-67BC-460d-8847-E4A7C5E45A27}"},{"filter":"ext:3g2;3gp;3gp2;3gpp;amv;asf;asx;avi;bdmv;bik;d2v;divx;drc;dsa;dsm;dss;dsv;evo;f4v;flc;fli;flic;flv;hdmov;ifo;ivf;m1v;m2p;m2t;m2ts;m2v;m4v;mkv;mod;mov;mp2v;mp4;mp4v;mpe;mpeg;mpg;mpls;mpv2;mpv4;mts;ogm;ogv;ogx;pss;pva;qt;ram;ratdvd;rm;rmm;rmvb;roq;rpm;smil;smk;swf;tod;tp;tpr;ts;tts;uvu;vob;vp6;webm;wm;wmp;wmv;wmx;wvx","handler":"{031EE060-67BC-460d-8847-E4A7C5E45A27}"}]
search_for_text_when_you_start_typing=1
search_history_always_suggest=1
plugins=0
columns=[{"name":"Name","width":172},{"name":"Path","width":1220},{"name":"Size","width":97},{"name":"Date Created","width":148},{"name":"Date Modified","width":148},{"name":"Date Accessed","width":148}]
ntfs_volumes=[{"path":"C:","volume_name":"\\\\?\\Volume{03}"}]
remote_volumes=[{"path":"O:","unc_path":"\\\\server\\home"},{"path":"Z:","unc_path":"\\\\server\\Kodi"}]
properties=[{"name":"Album Artist","include_only_folders":"   ","include_only_files":"*.mp3,*.flac,*.wav","fast_sort":1},{"name":"Artist","include_only_files":"*.flac;*.mp3;*.ogg","max_size":5242880,"fast_sort":1},{"name":"Comment","include_folders":1},{"name":"Date Taken","exclude_folders":"C:\\$Recycle.Bin;","include_only_files":"*.jpg;*.tif;*.tiff;*.jpeg;*.png;*.heic"},{"name":"Latitude","exclude_folders":"C:\\$Recycle.Bin;","include_only_files":"*.jpg;*.tif;*.tiff;*.png;*.heic;","fast_sort":1},{"name":"Length","exclude_folders":"C:\\$Recycle.Bin;","include_only_files":"*.flac;*.mp3;*.wav;*.ogg;*.mkv;*.mp4;*.avi;*.flv;*.webm","fast_sort":1},{"name":"Longitude","include_folders":1,"exclude_folders":"C:\\$Recycle.Bin;","include_only_files":"*.jpg;*.tif;*.tiff;*.png;*.heic;","fast_sort":1},{"name":"Tags","include_folders":1,"include_only_folders":"C:\\Users\\Home;C:\\tcmd;C:\\Xyplorer;","exclude_folders":"C:\\$Recycle.Bin;","include_only_files":"*.mp3;*.jpg,*.mp4,*.mkv,*.png","max_size":5242880}]

Policy:
ipc_allow_read_access=1

Plugins:
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: AutoIt script error when triggered by Everything

Post by void »

Thank you for the troubleshooting information Native2904,
close_on_execute=1
This is likely the cause.



To disable close_on_execute:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    close
  • Select: close_on_execute
  • Set the value to: false
  • Click OK.
Does the issue persist?



-or-



Leave close_on_execute enabled, and enable hide_on_close:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    close
  • Select: hide_on_close
  • Set the value to: true
  • Click OK.
Now when you execute an item, the window will be hidden.
The next time you open a new Everything window, this hidden window will be re-shown.
Native2904
Posts: 112
Joined: Mon Nov 22, 2021 8:36 pm

Re: AutoIt script error when triggered by Everything

Post by Native2904 »

Thank you Void, now it works perfectly!
:D
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: AutoIt script error when triggered by Everything

Post by horst.epp »

I found why my custom open command did not work with Everything hotkey.
I had
C:\Tools\Wincmd\Scripts\EV2TC.exe
changing it to
"C:\Tools\Wincmd\Scripts\EV2TC.exe"
and it works.

For me, this is an Everything bug.
The path doesn't contain any spaces and should work without "" around.
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: AutoIt script error when triggered by Everything

Post by therube »

That does seem odd.

Is this "custom open command" an Everything "COC" like, custom_open_command01=$exec(chk %*), or a COC in one of your other tools (TC)?

If instead of
C:\Tools\Wincmd\Scripts\EV2TC.exe
you had
C:\Tools\PSPad\PSPad.exe
would the Everything hotkey open PSPad or would that also require quotes?
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: AutoIt script error when triggered by Everything

Post by horst.epp »

therube wrote: Fri Mar 13, 2026 4:01 pm That does seem odd.

Is this "custom open command" an Everything "COC" like, custom_open_command01=$exec(chk %*), or a COC in one of your other tools (TC)?

If instead of
C:\Tools\Wincmd\Scripts\EV2TC.exe
you had
C:\Tools\PSPad\PSPad.exe
would the Everything hotkey open PSPad or would that also require quotes?
Tested with Everything's custom_open_command01=
You no longer need the $exec stuff around in the actual Everything version.

The problem is not related to the tool you configure
it simply doesn't start it at all when the hotkey is pressed.
No error message and no beep, nothing.
Encapsulating the tool with "" and it works.
It may be a syntax requirement to have the "" around.
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: AutoIt script error when triggered by Everything

Post by therube »

Oh, so Custom Open Commands.

custom_open_command01=

$exec(chk %*)
chk %*
c:/bin/chk.exe %*

All three versions worked here.
chk (chk.exe) is in my %PATH%.
Keyboard -> File | Custom Open 1, I set to Alt+X (hotkey).
Alt+X <filenames> runs chk on said <filenames>

Original $exec() worked (even without specifying an extension).
Sans $exec() worked, ditto.
And using the full path to the .exe also worked - even with forward slashes ;-).

Am I understanding correctly, or am I missing something?


Above was done through Options | Advanced.
If done manually (directly in the .ini, or whatever), then it is using a json syntax, so things then would need to be quoted & path separators "doubled"... (The GUI, Options | Advanced, handles that automatically.)
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: AutoIt script error when triggered by Everything

Post by horst.epp »

I tested it once again, and it is as I said.
Setting with the Advanced GUI
"C:\Tools\Wincmd\Scripts\EV2TC.exe"
works
C:\Tools\Wincmd\Scripts\EV2TC.exe
doesn't work

As it works now (it was only for testing)
no need to make more checks.
I start the script using QAP global hotkey.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: AutoIt script error when triggered by Everything

Post by void »

C:\Tools\Wincmd\Scripts\EV2TC.exe
doesn't work
Thank you for the issue report horst.epp,

I haven't been able to reproduce the issue my end.

Please send a debug log with the command send to
C:\Tools\Wincmd\Scripts\EV2TC.exe
:
  • Set your command to
    C:\Tools\Wincmd\Scripts\EV2TC.exe
  • In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging....
  • Select a file and run your command.
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging....
    --this will open your %TEMP%\Everything Debug Log.txt file in your text editor.
  • Please upload this file in a bug report
horst.epp
Posts: 1642
Joined: Fri Apr 04, 2014 3:24 pm

Re: AutoIt script error when triggered by Everything

Post by horst.epp »

void wrote: Sat Mar 14, 2026 12:01 am
C:\Tools\Wincmd\Scripts\EV2TC.exe
doesn't work
Thank you for the issue report horst.epp,

I haven't been able to reproduce the issue my end.

Please send a debug log with the command send to
C:\Tools\Wincmd\Scripts\EV2TC.exe
:
  • Set your command to
    C:\Tools\Wincmd\Scripts\EV2TC.exe
  • In Everything, from the Tools menu, under the Debug submenu, click Start Debug Logging....
  • Select a file and run your command.
  • In Everything, from the Tools menu, under the Debug submenu, click Stop Debug Logging....
    --this will open your %TEMP%\Everything Debug Log.txt file in your text editor.
  • Please upload this file in a bug report
I can do that, but there is no command sent to the EV2TC.exe.
The hotkey only has to start the exe.
The script will then read the GUI results from the current Everything client
and stores it into a text file.
The snapshoot shows the working one.
Removing the "" around the script makes it doing nothing, when the hotkey is pressed.
Screenshot - 14.03.2026 , 13_37_52.png
Screenshot - 14.03.2026 , 13_37_52.png (34.91 KiB) Viewed 1641 times
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: AutoIt script error when triggered by Everything

Post by void »

Everything is expecting a space after the command.
I will remove this limitation in the next update.
Post Reply