找回密码
 加入
搜索
楼主: kn007

我想显示某个目录中所有 bar文件 的文件名(可以带后缀bar)

[复制链接]
 楼主| 发表于 2009-7-8 17:00:20 | 显示全部楼层
好想有点感觉了,去改改
 楼主| 发表于 2009-7-8 17:08:30 | 显示全部楼层
OK,经过修改搞定了,我在测试下
发表于 2009-7-8 17:27:03 | 显示全部楼层
为简洁计,用list控件,不知可否
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <GUIListBox.au3>
#include <GuiConstantsEx.au3>
#include <Constants.au3>

_Main()

Func _Main()
        Local $hListBox
        ; Create GUI
        GUICreate("List Box Dir", 400, 296)
        $hListBox = GUICtrlCreateList("", 2, 2, 200, 200)
        GUISetState()
        ; Add files
        _GUICtrlListBox_BeginUpdate($hListBox)
        _GUICtrlListBox_Dir($hListBox, @WindowsDir & "\*.exe")
        _GUICtrlListBox_EndUpdate($hListBox)
        ; Loop until user exits
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
        GUIDelete()
EndFunc   ;==>_Main

评分

参与人数 1金钱 +10 贡献 +8 收起 理由
kn007 + 10 + 8 十分感谢,觉得挺NB的,就是不知道#AutoIt3 ...

查看全部评分

发表于 2009-7-8 17:38:52 | 显示全部楼层
为简洁计,用list控件,不知可否
#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include
#include
#include

_Main()

Func _Main()
        Local $hListBox
        ; Create GUI
        GUIC ...
pcbar 发表于 2009-7-8 17:27


大师出手果然不同凡响。。。。学习了
 楼主| 发表于 2009-7-8 21:43:32 | 显示全部楼层
十分感谢,觉得挺NB的,就是不知道#AutoIt3Wrapper_au3check_parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6是什么意思
发表于 2009-7-8 21:50:54 | 显示全部楼层
可以用一个edit控件,然后有信息就update这个edit控件就可以了。

好多autoit本来的例子里面都有的,memo_write可以很简单update edit控件的
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-28 14:14 , Processed in 0.072108 second(s), 17 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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