您需要 登录 才可以下载或查看,没有账号?加入
举报
$Form1 = GUICreate("Form1", 259, 186, 193, 125) $input1 = GUICtrlCreateInput("", 64, 48, 81, 21) $Button1 = GUICtrlCreateButton("打开", 80, 104, 51, 25, 0) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 $path = "C:\" & GUICtrlRead($input1) & ".txt" If Not FileExists($path) Then MsgBox(64, "提示", "文件不存在") Else ShellExecute($path) EndIf EndSwitch WEnd
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 03:51 , Processed in 0.093786 second(s), 20 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.