找回密码
 加入
搜索
查看: 2504|回复: 5

[AU3基础] SysIPAddress32控件如何操作?

[复制链接]
发表于 2010-8-22 16:43:37 | 显示全部楼层 |阅读模式
截取到某个软件填写IP的控件为SysIPAddress32
我该如何控制填写IP呢?
发表于 2010-8-22 17:17:52 | 显示全部楼层
控件设置焦点
发送IP数字,TAB,IP数字,TAB,IP数字,TAB,IP数字
发表于 2010-8-22 17:18:15 | 显示全部楼层
本帖最后由 xyold1 于 2010-8-22 17:19 编辑

控件设置焦点
发送IP数字,TAB,IP数字,TAB,IP数字,TAB,IP数字


不好意思,卡了一下
 楼主| 发表于 2010-8-22 17:22:06 | 显示全部楼层
这么说
这个控件无法设置连续的IP地址喽
必须用TAB切换
发表于 2010-8-22 17:32:59 | 显示全部楼层
用_GUICtrlIpAddress_Set
#include <GuiConstantsEx.au3>
#include <GuiIPAddress.au3>

Opt("MustDeclareVars", 1)

$Debug_IP = False ; Check ClassName being passed to IPAddress functions, set to True and use a handle to another control to see it work

_Main()

Func _Main()
        Local $hgui, $hIPAddress
       
        $hgui = GUICreate("IP Address Control Set (String) Example", 400, 300)
        $hIPAddress = _GUICtrlIpAddress_Create($hgui, 10, 10)
        GUISetState(@SW_SHOW)

        _GUICtrlIpAddress_Set ($hIPAddress, "24.168.2.128")

        MsgBox (4160, "Information", "IP Address: " & _GUICtrlIpAddress_Get($hIPAddress))

        ; Wait for user to close GUI
        Do
        Until GUIGetMsg() = $GUI_EVENT_CLOSE
EndFunc   ;==>_Main

评分

参与人数 1金钱 +20 收起 理由
afan + 20

查看全部评分

 楼主| 发表于 2010-8-22 17:36:30 | 显示全部楼层
谢谢你哇
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 22:54 , Processed in 0.079262 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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