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

[系统综合] 請高手幫忙改進一下此源碼,謝謝

  [复制链接]
发表于 2012-11-21 19:19:14 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$Form1                        = Guicreate("搜索", 400, 70, -1, -1)

$Button1                = GuiCtrlCreateButton("請輸入路徑進行查找", 20, 40, 120, 20)

$Button2                = GuiCtrlCreateButton("清除記錄", 320, 40, 60, 20)

$Input1                        = GUICtrlCreateInput("", 10, 10, 380, 20)

GuiSetState(@SW_SHOW)

While 1
        $Msg = GUIGetMsg()
        Switch $Msg
                Case $GUI_EVENT_CLOSE
                        Exit
                Case $Button1
                                 $var =  FileExists("")
                                         If $var Then; 也有可能的話:  如 @error = 則 ...   ;單一條件分支陳述式。
                         Msgbox(0,"提示","服務器上有此文檔" & $var,3)   ;顯示一個簡單的對話框 (可設定逾時屬性) 。
                     Else   ;多重條件分支陳述式。
                         Msgbox(0,"提示","服務器上沒有此文檔" & @error,3)   ;顯示一個簡單的對話框 (可設定逾時屬性) 。
                                         EndIf  ;多重條件分支陳述式。
                                         
                                         
                                         
                                         
                                         
                                         
                                         
                Case $Button2
                       
                                       
                       
                         
                         
        EndSwitch
Wend
 楼主| 发表于 2012-11-21 19:31:45 | 显示全部楼层
請各位高手幫忙一下,我的思路是這樣的,我要到一個數據庫裡面去搜索資料,可以自己輸入路徑,如果能找到此檔案,就打開此檔案,還可以清除記錄的功能,麻煩各位大俠啦
发表于 2012-11-21 20:18:04 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-5-11 05:06 , Processed in 0.076653 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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