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

4.6k views Asked by At

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 complete list of the command-line options, presumably for HH.exe.

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?
1

There are 1 answers

1
Avi On

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