Function Reference


_GUICtrlIpAddress_Set

Sets the address in the IP address control

#include <GuiIPAddress.au3>
_GUICtrlIpAddress_Set ( $hWnd, $sAddress )

Parameters

$hWnd Handle to the control
$sAddress IP Address string

Return Value

None.

Related

_GUICtrlIpAddress_ClearAddress, _GUICtrlIpAddress_Get

Example

#include <GUIConstantsEx.au3>
#include <GuiIPAddress.au3>
#include <MsgBoxConstants.au3>

Example()

Func Example()
        Local $hGui = GUICreate("IP Address Control Get/Set (v" & @AutoItVersion & ")", 400, 300)
        Local $hIPAddress = _GUICtrlIpAddress_Create($hGui, 10, 10)
        GUISetState(@SW_SHOW)

        _GUICtrlIpAddress_Set($hIPAddress, "24.168.2.128")

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

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