How to Open All Hyperlinks in a Word Document with AutoHotkey

Word := ComObjCreate("Word.Application") ; Create a MS Word object
Word.Visible := true

file := "C:\Users\User\Desktop\WordFile.docx" ; Path to an existing file
Word.Documents.Open(file) ; Open the file

Loop, % Word.ActiveDocument.Hyperlinks.Count  {
	Word.ActiveDocument.Hyperlinks(A_Index).Follow() ; Open the link
}