[已解决]如何获取 everything 搜索返回的结果
本帖最后由 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)
If $jg>=1 Then
;MsgBox(0, 'test', $jg)
$test = DllCall($dll, "wstr", "Everything_GetResultPath","int",0) ;DWORD Everything_GetNumResults(void);
DllClose($dll)
ShellExecute ($test&'\'&$wjm,@SW_SHOWMAXIMIZED)
EndIf
页:
[1]