开发者

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

I'd like to be able to write Inquisit scripts in Vim. In the standard Inquisit application for writing scripts, I can press F1 and it brings up help on the topic related to the word under the cursor. I'd like to set up the same functionality through Vim.

The help file for Inquisit is stored in a Windows .CHM file.

I figured there must be a set of command-line options for doing a keyword search in a chm file, but I haven't been able to find a c开发者_开发百科omplete list of the command-line options, presumably for HH.exe.

  • I did find HTML Help command-line article from help-info.de with a few pointers, but it does not have a full listing of command-line options.
  • I also found this discussion on AutoHotKey discussion board. It mentions keyhh.
  • I also just found a vimscript designed to do exactly what I want

Questions:

  • Is there a complete list of command-line options for HH.exe?
  • Is there a better way of going about what I am trying to do?


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>".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜