这是API函数 需要声明的 Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
app.helpfile= app.path &"\help.chm"
可我这样做了,并不能实现按一下,一个动作激活调出 我制作好的chm文件
本来我以为直接用shell 函数来调用,走不通~~~做过的大侠们,出来帮我指条路
页面用HTML写
需要声明的
Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
SendKeys "{F1}"
End Sub
记住会设ID号了以后,别忘了告诉我一声。