261869247 发表于 2010-8-26 12:31:06

如何调用ES.EXE 快速搜索文件

本帖最后由 261869247 于 2010-8-26 12:42 编辑

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 495, 136, 353, 335)
$Button1 = GUICtrlCreateButton("QQ路径", 32, 16, 65, 25)
$Input1 = GUICtrlCreateInput("", 104, 16, 369, 21)
$Button2 = GUICtrlCreateButton("查找路径", 32, 56, 161, 33)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button2
                        Run("es.exe qq.exe")

        EndSwitch
WEnd
如题 下面是附件

[



es.exe 是一款搜索速度很快的程序 请教AU3 怎么调用他来搜索其他文件
还有当搜索到多个QQ.EXE 的时候 能否msgbox 提示下 提示效果 像上面这个截图一样当前这个QQ.EXE 所在路径是不是想要的
如果不是点否 则继续获取下一个搜索到的路径

qq342252004 发表于 2010-8-26 12:52:09

帮忙顶,我也想知道怎么调用。

261869247 发表于 2010-8-26 12:55:41

哈哈 谢谢额·~这个速度确实是快

afan 发表于 2010-8-26 13:18:47

GUICreate("Form1", 495, 136, 353, 335)
$Button1 = GUICtrlCreateButton("QQ路径", 32, 16, 65, 25)
$Combo1 = GUICtrlCreateCombo('', 104, 16, 369, 21)
$Button2 = GUICtrlCreateButton("查找路径", 32, 56, 161, 33)
GUISetState()

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case -3
                        Exit
                Case $Button2
                        Go()

        EndSwitch
WEnd

Func Go()
        Local $sInfo = Run('es.exe qq.exe', '', 0, 2), $Stdout
        While 1
                Sleep(1)
                $Stdout &= StdoutRead($sInfo)
                If @error Then ExitLoop
        WEnd
        $ComboData = StringReplace($Stdout, @LF, '|')
        $ComboDF = StringRegExpReplace($ComboData, '(.+?)\|.+', '$1')
        GUICtrlSetData($Combo1, $ComboData, $ComboDF)
EndFunc   ;==>Go

zzz867 发表于 2010-8-26 14:33:28

毫無疑問是肯定可以的,樓主可以嘗試自己寫寫,到底要達到什麼效果由自己來定

似水年华 发表于 2010-8-26 21:08:30

Everything IPC window not found, IPC unavailable.

得到的答案怎么是这样的呢?

261869247 发表于 2010-8-30 09:16:00

Everything IPC window not found, IPC unavailable.

得到的答案怎么是这样的呢?
似水年华 发表于 2010-8-26 21:08 http://www.autoitx.com/images/common/back.gif


    我测试了下 好像我的也是

261869247 发表于 2010-8-30 09:17:02


afan 发表于 2010-8-26 13:18 http://www.autoitx.com/images/common/back.gif


    貌似搜索有点问题

liufenglg 发表于 2010-8-30 10:14:22

我点查找路径怎么毫无动静啊

as86455011 发表于 2010-8-30 10:50:11

au3自身查找函数也比较快。

afan 发表于 2010-8-30 12:11:18

es 是 Everything 的命令行版本,不过它似乎不能单独运行,需要先有 Everything 进程的存在。
我的 Everything 一直都开启状态的,所以 4# 的代码可以瞬间得到结果。
页: [1]
查看完整版本: 如何调用ES.EXE 快速搜索文件