Skip to content

Commit 038fe65

Browse files
committed
es.exeをiniファイルから指定可能にした
1 parent 4e88949 commit 038fe65

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

sources/everything.ini

276 Bytes
Binary file not shown.

sources/everything.mac

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ endmacro $$return;
2323
* everything.ini -> is_interactive=true の設定なので、検索文字列が変わるたびに呼び出されます
2424
*/
2525
gather_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);

0 commit comments

Comments
 (0)