tbaror Posted October 18, 2007 Share Posted October 18, 2007 Hi, i am looking for way or function to create inputbox to get ip address in a string. thanks Link to comment Share on other sites More sharing options...
GaryFrost Posted October 18, 2007 Share Posted October 18, 2007 Might look at GUICtrlIpAddress Management in the UDF section of the help file in the Beta SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
guwguw Posted October 22, 2007 Share Posted October 22, 2007 Hi, i am looking for way or function to create inputbox to get ip address in a string. thanksI'm using $server = GUICtrlCreateInput("66.999.169.42", 230, 10, 100, 25, 128); for IP address $logbox = GUICtrlCreateEdit("", 10, 75, 330, 95, 64)and then If GUICtrlRead($server) = "" Then GUICtrlSetData($logbox, "Server field is required" & @CRLF, 1)As a result, the IP is contained in GUICtrlRead($server) Link to comment Share on other sites More sharing options...
GaryFrost Posted October 22, 2007 Share Posted October 22, 2007 #include <GuiConstants.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 Global $hIPAddress _Main() Func _Main() Local $hgui $hgui = GUICreate("IP Address Control Get (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 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now