I would like have AHK code which can allow open Explorer with the active microsoft word file selected. Word seem to be does not have a command allowing direrctly to get path of currently opened file. However in word select document location allows to display and select the full path of currently opened file. Later I tried following AHK code to select the file in explorer.
#If WinActive("ahk_class OpusApp")
;In word highlight the document location box
#,::
send ^c ; copy the file path from document location
clipwait
run explorer.exe /select, "%clipboard%
return
So far no luck, it just open the explorer, does not select the file as intended.