Skip to content

Commit 27bf6d6

Browse files
committed
Everythingへ対応中
1 parent 7227185 commit 27bf6d6

2 files changed

Lines changed: 52 additions & 0 deletions

File tree

sources/everything.ini

242 Bytes
Binary file not shown.

sources/everything.mac

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
/*ファイル
2+
3+
引数 Everythingの検索文字列
4+
*/
5+
//$g_everythingExtPath=currentmacrodirectory + "\\macro\\bin\\everything\\es.exe";
6+
$g_everythingExtPath=R"(C:\Users\ikeuc\hidemaru\macro\bin\everything\es.exe)";
7+
8+
#g_dll_hm_process=val(getarg(29));
9+
#g_dll_ohtorii_tools=val(getarg(30));
10+
11+
$label=getarg(0);
12+
$arg1=getarg(1);
13+
$arg2=getarg(2);
14+
$arg3=getarg(3);
15+
$arg4=getarg(4);
16+
$arg5=getarg(5);
17+
18+
$g_root_macro_directory =dllfuncstrw(#g_dll_ohtorii_tools,"StaticStatusGetRootMacroDirectory");
19+
//$g_current_working_directory=dllfuncstrw(#g_dll_ohtorii_tools,"StaticStatusGetCurrentWorkingDirectory");
20+
21+
22+
call $label, $arg1, $arg2, $arg3, $arg4, $arg5;
23+
endmacro $$return;
24+
25+
26+
gather_candidates:
27+
if(!existfile($g_everythingExtPath)){
28+
message "hoge";
29+
}
30+
$$serchString=$$1;
31+
$$serchString=".c";
32+
33+
execmacro $g_root_macro_directory+"\\internal\\create_temp_file.mac", "everything", ".tsv";
34+
$$temp_filename=getresultex(-1);
35+
if($$temp_filename==""){
36+
return "";
37+
}
38+
/*SpawnWithRedirectToFile関数中で削除されるため、FileRegistAfterDeleteFileへ登録する必要は無い
39+
##ret=dllfuncw(#g_dll_ohtorii_tools,"FileRegistAfterDeleteFile",$$temp_filename);
40+
if(! ##ret){
41+
return "";
42+
}*/
43+
44+
$$args = sprintf(R"(-s -n 100 "%s")",$$serchString);
45+
//message $$args;
46+
##handle=dllfuncw(#g_dll_hm_process,"SpawnWithRedirectToFile",$g_everythingExtPath,$$args,true,true,$$temp_filename);
47+
##ret=dllfuncw(#g_dll_hm_process,"SetCreateNoWindow",##handle,true);
48+
##ret=dllfuncw(#g_dll_hm_process,"Start",##handle);
49+
if(##ret==0){
50+
return "";
51+
}
52+
return $$temp_filename;

0 commit comments

Comments
 (0)