找回密码
 加入
搜索
查看: 4220|回复: 0

[已解决]如何获取 everything 搜索返回的结果

[复制链接]
发表于 2013-5-2 14:41:25 | 显示全部楼层 |阅读模式
本帖最后由 zzwwdd 于 2013-11-13 13:40 编辑

;先把 everthing.dll 放在相同目录下
#include <GUIConstantsEx.au3>
#include <GuiEdit.au3>
#include <WindowsConstants.au3>
#include <Constants.au3>
#include <GuiMenu.au3>
#include <WinAPI.au3>

Local $wjm = ClipGet()

$dll = DllOpen("Everything.dll")
$result = DllCall($dll, "none", "Everything_SetSearchW", "wstr", $wjm)
$result = DllCall($dll, "none", "Everything_QueryW", "BOOL", true)
;Local $jg = DllCall($dll, "DWORD", "Everything_GetNumFileResults")
Local $jg = DllCall($dll, "DWORD", "Everything_GetNumResults")
Local $mz = DllCall($dll, "wstr", "Everything_GetResultFileNameW","int","3") ;DWORD Everything_GetNumResults(void);
;MsgBox(0, 'test', $mz[0])
If $jg[0]>=1 Then

;MsgBox(0, 'test', $jg[0])

$test = DllCall($dll, "wstr", "Everything_GetResultPath","int",0) ;DWORD Everything_GetNumResults(void);


DllClose($dll)
ShellExecute ($test[0]&'\'&$wjm,@SW_SHOWMAXIMIZED)
EndIf

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-4-19 14:42 , Processed in 0.077300 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表