(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
issue AutoHotkey.chm from v2.0.11 Topic is solved
Re: issue AutoHotkey.chm from v2.0.11
I've moved this topic from "Bug Reports" to "Suggestions on Documentation Improvements".
Re: issue AutoHotkey.chm from v2.0.11 Topic is solved
Thanks for reporting. I've fixed it.