找回密码
 加入
搜索
查看: 1687|回复: 2

GUICtrlCreateEdit 即时处理的问题

[复制链接]
发表于 2008-8-14 01:35:15 | 显示全部楼层 |阅读模式
#include <GUIConstants.au3>
#include <WindowsConstants.au3>

#Region ### START Koda GUI section ### Form=
GUICreate(" My GUI input acceptfile", 364, 200, @DesktopWidth / 2, @DesktopHeight / 2, -1, $WS_EX_ACCEPTFILES); WS_EX_ACCEPTFILES


$Edit1 = GUICtrlCreateEdit("", 16, 16, 249, 160, 0)
    GUICtrlSetState(-1, $GUI_DROPACCEPTED)
        GUICtrlSetData(-1, "Edit1")

        
$Button1 = GUICtrlCreateButton("确定(&O)", 286, 11, 75, 25, 0)
$Button2 = GUICtrlCreateButton("取消(&C)", 285, 44, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Edit1
                        MsgBox(0,"","")        

        EndSwitch
WEnd
这个是 把任何文件 和文件夹拖放到Edit里面

能不能 马上Case $Edit1 作出反应啊 貌似好像不行

[ 本帖最后由 lele9013 于 2008-8-14 02:09 编辑 ]
 楼主| 发表于 2008-11-26 10:31:32 | 显示全部楼层
同问!!!!!!!!
发表于 2008-11-26 10:42:55 | 显示全部楼层
用条件语句,比较EDIT里的内容是否发生改变!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-23 11:17 , Processed in 0.082766 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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