Code: Select all
q:: ;get public IP
oWHR := ComObjCreate("WinHttp.WinHttpRequest.5.1")
oWHR.Open("GET", "http://www.netikus.net/show_ip.html")
oWHR.Send()
vIP := oWHR.ResponseText
oWHR := ""
MsgBox, % vIP
return
w:: ;get local IPs
vOutput := ""
Loop, 4
vOutput .= A_IPAddress%A_Index% "`r`n"
MsgBox, % vOutput
vIP := A_IPAddress1
MsgBox, % vIP
return
recreate A_IPAddressXXX variables as a function - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=57112