|
本帖最后由 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 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|