from this post https://www.autohotkey.com/board/topic/100293-autocorrect-anything/
here is my take on his idea, it seems to work well with most words and phrases I've tried. One thing I wish it did was be faster, any tips?
Highlight a misspelled word and press Win+N
Code: Select all
; Windows + N autocorrect selected text
#n::
clipback := ClipboardAll
clipboard=
Send ^c
ClipWait, 1
UrlDownloadToFile % "https://www.google.com/search?q=" . clipboard, temp
FileRead, contents, temp
FileDelete temp
RegExMatch(contents, "<span><b><i>\K.*(?=</i></b></span>)", theword)
StringReplace, theword, theword, <b><i>,, All
StringReplace, theword, theword, </i></b>,, All
clipboard := theword
Send ^v
Sleep 500
clipboard := clipback
return