Command-line options for HH and opening CHM Windows Help Files

社会主义新天地 提交于 2019-12-08 04:20:32

If you can script in AutoHotkey ,I just found a solution. The idea will be to use VIM to pass reqd. command line-parameters to a compiled Ahk script which will in turn open the help file a/c the data.

In this solution, it will be also assumed that all the keywords that you are to search lie in the Index list (as they do).

To open the Helpfile, then Index tab & search, the following AHK Code works --

Run, %Helpfile%  ; your help file
Winwaitactive, ahk_class HH Parent
SendMessage, 0x1330, 1,, SysTabControl321
sleep, 0 
SendMessage, 0x130C, 1,, SysTabControl321
Send,+{Home}%1%{Enter}

where %1% is the only command line param passed to the compiled Ahk script.

So, VIM can passe Commandline params as start compiledahk.exe "<Keyword>".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!