为什么新手就不能先看一看帮助!
Opt('GUIOnEventMode', 1)
#Region ### START Koda GUI section ### Form=
$AForm1 = GUICreate("服务器自动连接工具", 313, 168, 291, 171)
$Radio1 = GUICtrlCreateRadio("网维游戏服务器", 20, 16, 113, 17)
GUICtrlSetState(-1, 1)
$Radio2 = GUICtrlCreateRadio("飞鱼星路由器", 21, 42, 113, 17)
$Radio3 = GUICtrlCreateRadio("网管专用计算机", 172, 16, 113, 17)
$Radio4 = GUICtrlCreateRadio("登陆Ftp 服务器", 173, 41, 113, 17)
$Label1 = GUICtrlCreateLabel("请先选择项目,然后在下面输入相应的帐号和密码", 21, 66, 268, 17)
$Label2 = GUICtrlCreateLabel("用户名:", 21, 95, 52, 17)
$Label3 = GUICtrlCreateLabel("密码:", 163, 95, 40, 17)
$Input1 = GUICtrlCreateInput("", 67, 93, 89, 21)
$Input2 = GUICtrlCreateInput("", 203, 92, 81, 21)
$Button1 = GUICtrlCreateButton("自动登陆", 38, 125, 81, 22, 0)
GUICtrlSetOnEvent(-1, "okbit")
$Button2 = GUICtrlCreateButton("退出程序", 182, 126, 81, 22, 0)
GUICtrlSetOnEvent(-1, "exitbit")
GUISetOnEvent(-3, "exitbit")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
Sleep(90)
WEnd
Func okbit()
Select
Case GUICtrlRead($Radio1) = 1
MsgBox(0, "控件选择", "你选择的是网维")
Case GUICtrlRead($Radio2) = 1
MsgBox(0, "控件选择", "你选择的是路由")
Case GUICtrlRead($Radio3) = 1
MsgBox(0, "控件选择", "你选择的是网管")
Case GUICtrlRead($Radio4) = 1
MsgBox(0, "控件选择", "你选择的是FTP")
EndSelect
EndFunc ;==>okbit
Func exitbit()
Exit
EndFunc ;==>exitbit
|