I have used AHK and COM to do various things inside Microsoft word. For example, I have been able to write a script that finds and replaces or highlights words. However, I have not been able to find documentation on how to use COM to create or delete a comment in office.
I know that https://msdn.microsoft.com/en-us/library/ms178796.aspx is the documentation on how to add comments in C# and VBA, but how would I do this using COM.
When I answered this question I was unable to test the code at the time. I've edited it to better reflect what you asked and demonstrate a working example.