Page 1 of 1

AutoHotkey help file, caret browsing

Posted: 26 Dec 2016, 00:02
by jeeswg
Is caret browsing possible in HTML Help (hh.exe) (i.e. in AutoHotkey's help file)?

(If not, one can copy the url to Internet Explorer and browse there, but it would be nice!)

It would seem odd that IE and HTML Help both use the same types of controls, but caret browsing is possible in one and not the other.

I think I'm going to create a clone of the help file's treeview in a separate gui, which sets the url of an IE instance on the right.

Btw I noticed that AccViewer crashes when querying the treeview when AutoHotkey.chm is loaded by 64-bit hh.exe, but works when querying the treeview when AutoHotkey.chm is loaded by 32-bit hh.exe. (Tested on v1.1.24.04: chm, 32 and 64 bit exes.)

[EDIT:] A rough custom implementation of caret browsing:
[Solved] AutoHotkey help file navigation - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 31#p143031

Re: AutoHotkey help file, caret browsing  Topic is solved

Posted: 19 Aug 2017, 20:49
by jeeswg
F7 hotkey to toggle caret browsing on/off in HTML Help:

Code: Select all

#IfWinActive, ahk_class HH Parent
F7:: ;html help - toggle caret browsing
PostMessage, 0x111, 3460,, Shell DocObject View1, A ;WM_COMMAND := 0x111 ;Caret browsing
;PostMessage, 0x111, 3460,, Shell Embedding1, A ;WM_COMMAND := 0x111 ;Caret browsing ;this also works
return
#IfWinActive

Re: AutoHotkey help file, caret browsing

Posted: 11 Apr 2020, 06:25
by rommmcek
Nice trick!

P.S.: I wish to know haw to do it in Ahk Gui with ActiveX