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

[GUI管理] 求助。怎么读GUI中的IP?[已解决]

[复制链接]
发表于 2010-5-6 23:38:15 | 显示全部楼层 |阅读模式
本帖最后由 lsq726 于 2010-5-6 23:50 编辑
#include <GUIConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiIPAddress.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form2 = GUICreate("窗体1", 413, 305, 302, 218)
$IPAddress1 = _GUICtrlIpAddress_Create($Form2, 80, 40, 130, 21)
_GUICtrlIpAddress_Set($IPAddress1, "192.168.0.2")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

                Case $Form2
                Case $Form2
                Case $Form2
                Case $Form2
        EndSwitch
WEnd
以上是用KODA生成的代码。怎么能读到“192.168.0.2”?
_GUICtrlIpAddress_Get

评分

参与人数 1金钱 +10 收起 理由
afan + 10 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

发表于 2010-5-7 00:47:20 | 显示全部楼层
这个你也好意思问。
发表于 2010-5-7 09:20:02 | 显示全部楼层
有set必有get。说不定还有getex。

评分

参与人数 1金钱 +30 收起 理由
lsq726 + 30

查看全部评分

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

本版积分规则

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

GMT+8, 2024-6-9 08:16 , Processed in 0.085851 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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