issue AutoHotkey.chm from v2.0.11 Topic is solved

Share your ideas as to how the documentation can be improved.
neogna2
Posts: 591
Joined: 15 Sep 2016, 15:44

issue AutoHotkey.chm from v2.0.11

Post by neogna2 » 15 Feb 2024, 17:41

(The following is tested with the portable .zip releases, but I guess it applies equally to the AutoHotkey.chm from the .exe releases.)

With the AutoHotkey.chm from release v2.0.10 and earlier we could directly open a help topic with syntax like this
Run hh.exe "ms-its:C:\Program Files\AutoHotkey\AutoHotkey.chm::/docs/search.htm#q=Ahk2Exe"
(previously covered here)

But with AutoHotkey.chm v2.0.11 that generates a popup error "Unable to get property 'function' of undefined or null reference" which points to AutoHotkey.chm::/docs/static/content.js

To reproduce the issue get the portable .zip release for v2.0.10 and v2.0.11 from https://github.com/AutoHotkey/AutoHotkey/releases , unpack them, then try the above type of syntax on each help file. For example
Run hh.exe "ms-its:C:\example\v2.0.11\AutoHotkey.chm::/docs/search.htm#q=Ahk2Exe"
Run hh.exe "ms-its:C:\example\v2.0.10\AutoHotkey.chm::/docs/search.htm#q=Ahk2Exe"

Link to github source file
https://github.com/AutoHotkey/AutoHotkeyDocs/blob/v2/docs/static/content.js

v2.0.10 was released 2023-09-24 so perhaps the issue was introduced with this Oct 1 commit to contents.js ?
https://github.com/AutoHotkey/AutoHotkeyDocs/commit/2d3b3327d69e3a7a8d075d00906e41fa8d9a8261

User avatar
Ragnar
Posts: 614
Joined: 30 Sep 2013, 15:25

Re: issue AutoHotkey.chm from v2.0.11

Post by Ragnar » 15 Feb 2024, 18:41

I've moved this topic from "Bug Reports" to "Suggestions on Documentation Improvements".

User avatar
Ragnar
Posts: 614
Joined: 30 Sep 2013, 15:25

Re: issue AutoHotkey.chm from v2.0.11  Topic is solved

Post by Ragnar » 15 Feb 2024, 19:07

Thanks for reporting. I've fixed it.

Post Reply

Return to “Suggestions on Documentation Improvements”