http://www.autoitscript.com/fileman/users/gafrost/ipaddress.GIF
> set address function
> set range function
Fixed: _GetIPAdress function, used code from LazyCat's control
This was more for a learning experience.
Edit: added ability to use styles and extended styles
Functions:
; create the control
_GuiCtrlIpAddressCreate($h_Gui, $x, $y, $width, $heigth, $v_styles = -1, $v_exstyles = -1)
; Clears the contents of the IP address control.
_ClearIPAdress($h_IPAdress)
; Retrieves the address values for all four fields in the IP address control.
_GetIPAdress($h_IPAdress)
; Determines if all fields in the IP address control are blank.
_IPIsBlank($h_IPAdress)
; Sets the keyboard focus to the specified field in the IP address control.
; All of the text in that field will be selected.
_IPSetFocus($h_IPAdress, $index)
; Sets the valid range for the specified field in the IP address control.
_IPSetRange($h_IPAdress, $field_index, $low_range = 0, $high_range = 255)
; Sets the address values for all four fields in the IP address control.
; i.e. "24.2.255.2"
_IPSetAddress($h_IPAdress, $s_address)
Enjoy
Edit: some refinements to _GetIPAdress and _IPSetRange functions
Edited by gafrost, 19 February 2006 - 12:57 PM.





