LATEST UPDATES
ShareHolder Finder v0.9.3 is now released!!! Check Product Page for more details.
✉ info@automationdevelopers.com

ITS ALL ABOUT AUTOMATION

Sunday, 17 April 2016

AutoIt - Get IP Address


Author Post Date Sunday, 17 April 2016
Macro Name: @IPAddress1
                        @IPAddress2
                        @IPAddress3
                        @IPAddress4

IP address of up to four network adapters can be collected using the above macros. If the network adapter is not available, returns 0.0.0.0.

Example is provided below:

#include <MsgBoxConstants.au3>

;Display IP addresses
MsgBox($MB_SYSTEMMODAL, "IP Address", "IP Address 1: " & @IPAddress1 & @CRLF & _
                                    "IP Address 2: " & @IPAddress2 & @CRLF & _
                                    "IP Address 3: " & @IPAddress3 & @CRLF & _
                                    "IP Address 4: " & @IPAddress4)

Related Posts




Interesting? Share and Let Others Know.

Post a Comment