找回密码
 加入
搜索
查看: 2006|回复: 3

[GUI管理] 球一个最简单的GUI

[复制链接]
发表于 2011-12-21 14:07:29 | 显示全部楼层 |阅读模式
UI小白,以前从来没有做过UI,现在需要一个UI,只要有三个输入框,一个超链接,加上确定取消就行了。高手们应该两三行代码就搞定吧

本来打算用InputBox的,嘿嘿
发表于 2011-12-21 14:28:07 | 显示全部楼层
代码中如果含有错别字可能无法运行、当机甚至无法预计的后果…
发表于 2011-12-22 00:30:19 | 显示全部楼层
楼主,你用画板画一个模板,来说明你想的什么样的GUI,才能帮上你的忙啊
发表于 2011-12-24 00:01:56 | 显示全部楼层
用KOAD画就可以啊
不知道是不是这样 随便写了写
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 380, 427, 192, 124)
$Input1 = GUICtrlCreateInput("Input1", 88, 48, 225, 21)
$Input2 = GUICtrlCreateInput("Input2", 88, 88, 233, 21)
$Input3 = GUICtrlCreateInput("Input3", 88, 128, 233, 21)
$Button1 = GUICtrlCreateButton("确定", 104, 184, 153, 41)
$Button2 = GUICtrlCreateButton("取消", 104, 248, 153, 41)
$Label1 = GUICtrlCreateLabel("chaolianjie", 88, 16, 54, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1

        $nMsg = GUIGetMsg()

        Switch $nMsg

                Case $GUI_EVENT_CLOSE

                        Exit

                Case $Label1

                        ShellExecute("http://www.baidu.com")



        EndSwitch

WEnd
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-20 19:33 , Processed in 0.085798 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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