General :
K-Meleon Web Browser Forum
General discussion about K-Meleon
mht test-testers needed..
Date: May 05, 2009 11:10PM
especially testers that had script errors with the original mht-save
http://kmeleon.swiftfree.net/tests/mhttester.exe
save file anywhere you want and double click.. if test is successful, a file mttester.mht will be created in same folder.. check integrity of mht file by opening it in ie or km ietab, otherwise report errors.
note: test is unicode compiled and can only run on nt.. also will not run under linux/wine
Re: mht test-testers needed..
Date: May 06, 2009 12:10AM
worked fine
Re: mht test-testers needed..
Date: May 06, 2009 02:41AM
Quote
disrupted
especially testers that had script errors with the original mht-save
http://kmeleon.swiftfree.net/tests/mhttester.exe
save file anywhere you want and double click.. if test is successful, a file mttester.mht will be created in same folder.. check integrity of mht file by opening it in ie or km ietab, otherwise report errors.
File mhttester.mht was created.
However, doubleclicking it shows this error 'page cannot be displayed...' and
Quote
Open the res://C:\WINDOWS\system32\shdoclc.dll/syntax.htm#mhtml:file:// home page, and then look for links to the information you want.
soccerfan
Edited 1 time(s). Last edit at 05/06/2009 02:46AM by soccerfan.
Re: mht test-testers needed..
Date: May 06, 2009 03:46PM
thanks arrow and soccer.
i've searched for this problem.. it seems for ie 6 and below, if outlook express isn't installed or configured properly; it may affect mht functions
http://forums.scotsnewsletter.com/index.php?showtopic=10634
soccer..if it's possible, please send me the mhttester.mht file that was created..so i can see if the problem is in saving the file or reading it
openbsd6 AT googlemail
for now try this..go startmenu>run
in run type this:
regsrv32 inetcomm.dll
this to rule out possibly missing inprocserver.. if file registered successfuly.. then try mhttester.exe again, if you get file is missing or cannot register..then do this
download this file
http://kmeleon.swiftfree.net/tests/inetcomm.7z
extract inetcomm.dll in c:\windows but not c:\windows\system32 (to avoid overwriting)
and register again
regsrv32 c:\windows\inetcomm.dll
then test mhttester.exe and see if you can view the file
Re: mht test-testers needed..
Date: May 06, 2009 09:00PM
Yes disrupted, it worked after I registered inetcomm.dll
soccerfan
Re: mht test-testers needed..
Date: May 06, 2009 09:46PM
that's great.. now to see if it tolerates parameters from a km macro
http://kmeleon.swiftfree.net/tests/mht-test2.7z
download and extract in kmeleon
access from file>MHT SAVE TEST
test with several pages.. the mht files will be saved in k-meleon tools.. also check if you can open and view them
Re: mht test-testers needed..
Date: May 07, 2009 01:54AM
As soon as MHT SAVE TEST is clicked
error box appears.
autoit error
line 1
the requested action with this object has failed
Re: mht test-testers needed..
Date: May 07, 2009 02:22AM
Quote
Arrow
As soon as MHT SAVE TEST is clicked
error box appears.
autoit error
line 1
the requested action with this object has failed
Error here too.
soccerfan
Re: mht test-testers needed..
Date: May 07, 2009 04:58PM
ok, this is a very important test, please have patience
http://kmeleon.swiftfree.net/tests/mht-test3.7z
this is to check if the macro is passing the parameters correctly.. it will not create any mht files. report exact parameters displayed in the message boxes. thanks.
test with these sites
google.com
kmeleon.sf.net
Re: mht test-testers needed..
Date: May 07, 2009 06:53PM
Re: mht test-testers needed..
Date: May 08, 2009 02:23AM
it runs the test save exe on google but then nothing .............
where is file saved?
for the other url it gives the same autoit error i posted above
line 1
the requested action with this object has failed
These tests don't take time so please anyone else join in case soccerfan or myself aren't online - speeds things up
Edited 1 time(s). Last edit at 05/08/2009 02:24AM by Arrow.
Re: mht test-testers needed..
Date: May 08, 2009 03:26PM
I ran the test of mhttester.exe and then displayed the page with IE. Seemed to do OK. Was a message saying ActiveX and scripts could not run, but that is always the case. I don't allow IE to do that stuff.
The system has IE 7 and Outlook Express running on XP-SP3.
What to try next?
Re: mht test-testers needed..
Posted by:
disrupted(unlogged)
Date: May 08, 2009 04:20PM
thanks james, arrow
james try this one:
http://kmeleon.swiftfree.net/tests/mht-cbtest.7z
the mht files will be created inside kmeleon\tools folder with the name mht-cbtest.mht .. and the file will be overwritten everytime you save a nnew page, so you might want to check the integrity of the file before saving a new page.
arrow, soccer..pease try testing with those 2 links
1 kmeleon.swiftfree.net
1 www.kmeleon.swiftfree.net
the problem is, the original script using ie object calls runs on some computers and but not on others with an error indicating that the macro passed an incomplete or wrong address.. but that wasn't the problem since same errors when using clipboard instead of parameters.
i thought maybe the erros were due to the object calls to create the mht files so the tests use a script that tries to fool the os into thinking that the save in mht aare called internally(from ie itself) but same errors.
i have no idea why it doesn't work on some systems.. but it seems to be related with the sit's url. if the url doesn't have www, the mht call fails and the error comes up. the 'www' could be easily added to the parameter inside the script if it's non-existent from the address but this can cause more problems.
for e.g. try surfing to
www.news.bbc.co.uk
or
www.kmeleon.sourceforge.net/forum
now i think the main reason for the errors is ie version or ie/os combination or maybe certain ie patches.. i read somewhere on ms that some patches disable some mht functions(viewing in frames etc)..maybe one of those patches has a bug that cripples without www.. which can happen with ms.
Re: mht test-testers needed..
Date: May 08, 2009 07:51PM
I have installed the test. First page saved OK. Tried a page with frames or something. That did not work. Tried another page and got the page but was formatted different. This is the URL of the third page where the formatting was different.
http://www.duke-energy.com/community/retirees.asp
Re: mht test-testers needed..
Date: May 08, 2009 09:14PM
Quote
disrupted
arrow, soccer..pease try testing with those 2 links
1 kmeleon.swiftfree.net
1 www.kmeleon.swiftfree.net
Both work ok.
Quote
disrupted
i have no idea why it doesn't work on some systems.. but it seems to be related with the sit's url. if the url doesn't have www,
I doubt it. This site
http://www.wilderssecurity.com/index.php has www but gives the same autoit error.
soccerfan
Re: mht test-testers needed..
Date: May 08, 2009 10:24PM
Quote
disrupted
thanks everybody for your patience
Actually, thanks for YOUR perseverence (did I spell it right?).
A resolution would be great for the entire kmeleon community.
soccerfan
Re: mht test-testers needed..
Date: May 09, 2009 12:02AM
Quote
disrupted
james, the different formatting is normal because depends on how trident renders the page.
I am not sure that I understand. When I look at the page with KM or IE the display of information is the same. When I click on the mht file for the page the information is formatted differently.
Re: mht test-testers needed..
Date: May 09, 2009 02:12AM
thanks soccer, i understand the importance because i used to save a lot of pages in the past using ie..and mht is very practical.
james.. i mean because autoit uses ie calls but maybe the script isn't saving properly..you can test by saving in mht from ie and see if it's different.
i tested unmht extension again on ff..i did before but never viewed the files and that extension is not good..on very simple pages, it couldn't save images within..so it was like html-only..which beats the whole idea of mht
i also found this for opera
http://my.opera.com/Lex1/blog/index.dml/tag/save%20in%20mht by lexi..
Re: mht test-testers needed..
Date: May 09, 2009 12:31PM
Quote
disrupted
james.. i mean because autoit uses ie calls but maybe the script isn't saving properly..you can test by saving in mht from ie and see if it's different.
I did a save of the page from IE to mht. That file, when opened in IE, looks just like the original view. The one we are testing looks very different.
UPDATE:
I tried another way to save to mht and it looks just like the one that is saved by the system we are testing. As soon as I have a little more polish on the macro, I will post it.
Edited 1 time(s). Last edit at 05/09/2009 03:35PM by JamesD.
Re: mht test-testers needed..
Date: May 09, 2009 04:11PM
I could not find the program noted in the vbscript. I did find this one on the net at
http://www.softpedia.com/get/Internet/Other-Internet-Related/Command-Line-URL-To-MHT-Converter.shtml .
I wrote a small macro to use it. Unzip the SavePage program to your KM Tools folder. The output is placed in C:\.
savepagemht.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- savepagemht ------------------------------------------------------------------
#
# Dependencies : -main.kmm
# Resources : - savepage.exe
# Version : - 0.1 4/9/09
# ------------------------------------------------------------------------------------------------------------------
_spm_GetToolPath{
$_spm_tool_path=getfolder(RootFolder)."\\Tools\\SavePage.exe";
}
_spm_to_mht{
menugrayed=(hostname($URL)=="");
$_spm_title = $TITLE ;
$_spm_url = $URLBAR ;
$_spm_dest = "C:\\" ;
exec("\"".$_spm_tool_path."\"" . " " . "\"".$_spm_title."\"" . " " . "\"".$_spm_url."\"" . " " . "\"".$_spm_dest."\"" );
}
_spm_savepagemht_BuildMenu{
setmenu("&File",macro,"Save Page - MHT",_spm_to_mht,3);
}
$OnStartup=$OnStartup."_spm_GetToolPath;";
$OnInit=$OnInit."_spm_savepagemht_BuildMenu;";
# ----------------------------------------------------------------------------------
$macroModules=$macroModules."savepagemht;";
Re: mht test-testers needed..
Date: May 09, 2009 04:17PM
thank you so much james. i searched for that gmht.exe too and i couldn't find it anywhere..i think it was written by a chinese softwarecompany that went out of business.
Re: mht test-testers needed..
Date: May 09, 2009 08:12PM
@ soccerfan
Yes, I have noticed some incomplete pages. Only valid test is to erase the IE cache and disconnect from internet to display the mht file. I am going to test same pages with both systems and compare.
Re: mht test-testers needed..
Date: May 09, 2009 11:37PM
i found gmht.exe.. it's actually a plugin of awasu feedreader. it's a commandline tool but i dn't know how it works and what parametters it'd accept since there is no documentation, when i tried running it alone it didn't show help or commands just invalid arguments.. and then i tried using the vbs displayed on the site but wscript game me a script error at line 75.
i studied the vbs to see what commands it;s passing and still gave me invalid argument
e.g.
I:\applications\Awasu\gmht.exe www.google.co.uk "test shit" "I:\applications\Awasu\www"
(where 'test shit' is title passed to generate mht file name and last parameter is the folder to save to)
maybe i'm doing something wrong..james, try to work with itif you can, thanks.
http://kmeleon.swiftfree.net/tests/gmht.7z
and this is the script from their forum
http://kmeleon.swiftfree.net/tests/testgmht.vbs
by the way, the script reads the reg to find the path for gmht by reading installtion path for awasu.. to avoid that problem gmht.exe should be saved in:
c:\users[documents & settings][current user name]\gmht.exe
Re: mht test-testers needed..
Date: May 10, 2009 05:26PM
@ disrupted
I am trying to get the vbscript running, but I don't think I understand it very well.
I have put the gmht.exe file in C:\Documents and Settings\Compaq_Owner.
I have put the vbs file in my user macro folder.
When I execute wscript.exe and pass the vbs file to it, I get the following error message.
Error: "C:\Program Files\k-meleon\gmht.exe" does not exist in the same directory as Awasu.exe.
Please move/copy ""strGMHTExe into the same directory as awasu.exe.
So far I am not passing URL, title, output to the script file. I just want it run. I am not getting the same message as when I just double click on the vbs file. All suggestions welcome. I will keep trying.
Re: mht test-testers needed..
Date: May 10, 2009 05:57PM
Regarding the original testing of mht-cbtest.exe, I have noticed that not all the information for this page is saved.
http://www.perigee.net/~jmd8421r/ If I stop internet service and view the mht file I don't see the folder and slide margins for each picture. If the service is running then they are displayed. This is the same for SavePage and mht-cbtest.
Re: mht test-testers needed..
Date: May 10, 2009 06:49PM
@ disrupted
Change line 62 of the vbs file to read as follows:
strAwasuProgDir = WshShell.CurrentDirectory & "\tools\"
Put the gmht.exe file in the tools folder under k-meleon.
I renamed the vbs file as SaveASMHT.vbs in my user macro folder.
Use the following macro:
Awasu_mht.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- Awasu_mht ------------------------------------------------------------------
#
# Dependencies : -main.kmm
# Resources : - SaveASMHT.vbs, GMHT.EXE
# Version : - 0.1 4/10/09
# ------------------------------------------------------------------------------------------------------------------
_awasu_GetToolPath{
$_awasu_tool_path=getfolder(UserMacroFolder)."\\SaveASMHT.vbs";
}
_awasu_to_mht{
menugrayed=(hostname($URL)=="");
$_awasu_title = $TITLE ;
$_awasu_url = $URLBAR ;
$_awasu_dest = "C:\\" ;
exec("wscript.exe \"".$_awasu_tool_path."\"" . " " . "\"".$_awasu_url."\"" . " " . "\"".$_awasu_title."\"" . " " . "\"".$_awasu_dest."\"" );
}
_awasu_mht_BuildMenu{
setmenu("&File",macro,"Save PageAWASU-MHT",_awasu_to_mht,3);
}
$OnStartup=$OnStartup."_awasu_GetToolPath;";
$OnInit=$OnInit."_awasu_mht_BuildMenu;";
# ----------------------------------------------------------------------------------
$macroModules=$macroModules."Awasu_mht;";