File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ endmacro $$return;
2323 * everything.ini -> is_interactive=true の設定なので、検索文字列が変わるたびに呼び出されます
2424 */
2525gather_candidates:
26+ $g_everythingExtPath = getinistr(currentmacrodirectory+"\\everything.ini","paths","exe");
27+ call ExpandEnvironmentVariable $g_everythingExtPath;
28+ $g_everythingExtPath=$$return;
2629 if(!existfile($g_everythingExtPath)){
30+ debuginfo 1;
31+ debuginfo "$g_everythingExtPath="+ $g_everythingExtPath;
2732 return "";
2833 }
2934 $$serchString=$$1;
@@ -82,3 +87,15 @@ DestroyPrevProcess:
8287 ##ret=dllfuncw(#g_dll_ohtorii_tools,"FileUnRegistAfterDeleteFile",$$prev_temp_filename);
8388 deletefile $$prev_temp_filename;
8489 return;
90+
91+ ExpandEnvironmentVariable:
92+ /*環境変数を展開する
93+
94+ $$1 環境変数を含む文字列
95+ 返値 引数を展開した文字列
96+ */
97+ ##objShell = createobject("WScript.Shell");
98+ if(##objShell==0){
99+ endmacro "";
100+ }
101+ return callmethod_returnstr(##objShell, "ExpandEnvironmentStrings", $$1);
You can’t perform that action at this time.
0 commit comments