找回密码
 加入
搜索
查看: 5573|回复: 10

[图形处理] 如何调用ES.EXE 快速搜索文件

  [复制链接]
发表于 2010-8-26 12:31:06 | 显示全部楼层 |阅读模式
本帖最后由 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 所在路径是不是想要的
如果不是点否 则继续获取下一个搜索到的路径

本帖子中包含更多资源

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

×
发表于 2010-8-26 12:52:09 | 显示全部楼层
帮忙顶,我也想知道怎么调用。
 楼主| 发表于 2010-8-26 12:55:41 | 显示全部楼层
哈哈 谢谢额·~这个速度确实是快
发表于 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
发表于 2010-8-26 14:33:28 | 显示全部楼层
毫無疑問是肯定可以的,樓主可以嘗試自己寫寫,到底要達到什麼效果由自己來定
发表于 2010-8-26 21:08:30 | 显示全部楼层
Everything IPC window not found, IPC unavailable.

得到的答案怎么是这样的呢?
 楼主| 发表于 2010-8-30 09:16:00 | 显示全部楼层
Everything IPC window not found, IPC unavailable.

得到的答案怎么是这样的呢?
似水年华 发表于 2010-8-26 21:08



    我测试了下 好像我的也是
 楼主| 发表于 2010-8-30 09:17:02 | 显示全部楼层
afan 发表于 2010-8-26 13:18



    貌似搜索有点问题
发表于 2010-8-30 10:14:22 | 显示全部楼层
我点查找路径怎么毫无动静啊
发表于 2010-8-30 10:50:11 | 显示全部楼层
au3自身查找函数也比较快。
发表于 2010-8-30 12:11:18 | 显示全部楼层
es 是 Everything 的命令行版本,不过它似乎不能单独运行,需要先有 Everything 进程的存在。
我的 Everything 一直都开启状态的,所以 4# 的代码可以瞬间得到结果。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-10 22:52 , Processed in 0.080383 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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