Skip to content

Instantly share code, notes, and snippets.

@oliverbooth
Last active December 15, 2016 00:43
Show Gist options
  • Save oliverbooth/e1e7b786d51b50b3993283cdbd7681e0 to your computer and use it in GitHub Desktop.
Save oliverbooth/e1e7b786d51b50b3993283cdbd7681e0 to your computer and use it in GitHub Desktop.
AutoHotkey hotstring for dumping your remote IP (using ipify)
; //ip macro by default - feel free to change this
; to whatever suits you best
;
; Oliver Davenport
:://ip::
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
; default format from ipify api is text/plain
whr.Open("GET", "https://api.ipify.org/", true)
whr.Send()
whr.WaitForResponse()
ip := whr.ResponseText
Send % ip
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment