HH和打开CHM Windows帮助文件的命令行选项 [英] Command-line options for HH and opening CHM Windows Help Files

查看:199
本文介绍了HH和打开CHM Windows帮助文件的命令行选项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够在Vim中编写 Inquisit 脚本. 在用于编写脚本的标准Inquisit应用程序中,我可以按F1键,它会针对与光标下的单词相关的主题提供帮助. 我想通过Vim设置相同的功能.

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.

Inquisit的帮助文件存储在Windows .CHM文件中.

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

我认为在chm文件中必须有一组命令行选项才能进行关键字搜索,但是我一直无法找到命令行选项的完整列表,大概是HH.exe.

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.

  • 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

问题:

  • 是否有HH.exe命令行选项的完整列表?
  • 是否有更好的方法来做我想做的事情?

推荐答案

如果可以在AutoHotkey中编写脚本,我刚刚找到了一个解决方案.这个想法将是使用VIM传递reqd.命令行参数到已编译的Ahk脚本,该脚本将依次打开帮助文件a/c数据.

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

要打开帮助文件,请依次点击索引"标签&搜索,以下AHK代码有效-

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}

其中,%1%是传递给已编译的Ahk脚本的唯一命令行参数.

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

因此,VIM可以将命令行参数传递为start compiledahk.exe "<Keyword>".

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

这篇关于HH和打开CHM Windows帮助文件的命令行选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆