General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
open chm help files
Posted by: disrupted
Date: April 05, 2009 02:44AM

http://kmeleon.swiftfree.net/kmchm.7z

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------open chm help crap---------------------------------------------------------------

$_tool_path=getfolder(RootFolder)."\\Tools";
$_km_path=getfolder(RootFolder)."\\k-meleon.exe";

kmchm{
exec($_tool_path."\\kmchm.exe \"".$_km_path."\" ");
}

kmchm_BuildMenu{
setmenu(OpenSave,macro,"Open CHM..",kmchm,1);
}

$OnInit=$OnInit."kmchm_BuildMenu;";

# -----------------------------------------------------------------
$macroModules=$macroModules."kmchm;";


; AutoIt Version: 3.0
; Language: Gibberish
; Platform: Win9x/NT
; Author: yanni

#NoTrayIcon
#Include <File.au3>

$chmpath = FileOpenDialog("Select CHM File", @WorkingDir & "", "Compiled HTML Help (*.chm)", 2)
$chmparm = _PathFull($chmpath)

$check=StringRegExp($chmparm, "(?i)chm")

if $check=0 Then
exit
Else
$chmprefix = ("chm:file://")
$chmfucker = ($chmprefix & $chmparm)
sleep(400)
shellexecute($CmdLine[1], $chmfucker)
exit
EndIf
Exit



https://addons.mozilla.org/en-US/firefox/addon/3235

edit: after installation, make sure to delete those 2 files in the k=meleon\components folder: xpti.dat and compreg.dat so that componentns get refreshed and chm service components are recognised.

Options: ReplyQuote
Re: open chm help files
Posted by: Mr Cooper
Date: September 10, 2009 12:46PM

I'm having difficulty with this. I've installed it, deleted the 2 component files, and started up K-Meleon. When I go to File -> Open CHM and select a file, a new K-Meleon window opens, but it's entirely blank! Just like when making a new tab. What am I doing wrong?

Options: ReplyQuote
Re: open chm help files
Posted by: disrupted
Date: September 10, 2009 07:05PM

blank page indicates one of 2 things: either the chm protocol has not been registered or the chm file path has not been passed properly.. there's also the possibility that some chm files might not be supported by the protocol though i doubt that'd render in a blank page..properly rubbish text but not blank.

first make sure that those 3 files are saved in k-meleon\components folder:
chm_protocol.js
ICHMFile.xpt
ICHMUnitInfo.xpt

delete compreg.dat and xpti.dat (probably compreg.dat doesn't need to be deleted but delete it anyway)

after that, you must restart kmeleon for the new protocol to be registered.. in case of running loader.exe; i think you might need to terminate loader.exe and launch it again or reboot the system

test with different chm files.. try this one
http://kmext.sf.net/tests/MozillaCacheView.CHM
(right-cick>save target as and save locally)

if you're still getting a blank page, please copy and paste the chm address from k-meleon's urlbar and post it in the forum..there could be a bug with parsing certain addresses with perhaps very long paths or unconventional characters in folder names.

good luck

Options: ReplyQuote


K-Meleon forum is powered by Phorum.