Extensions :  K-Meleon Forum
All about K-Meleon extensions. 
Pages: Previous12
Current Page: 2 of 2
Re: Quick Note / HowTo xpi-addons in KM75?
Posted by: JamesD
Date: October 07, 2015 09:33AM

Quote
rodocop
James,
it's very strange you don't have this pref as it was exactly you who created xpinstallext.kmm surprised smiley
Like shоemaker without shоes

I don't know where I put that file. It is no longer on my computer. More than one year ago when I did that. I guess it has gone the same place as my memory.

I notice that the 'quicknote.ini' file in kmextensions is still being included. Is there still a working system which uses that for deleting an extension? The reason for asking is that I am thinking of including the pref in a file in browser\defaults\preferences. I will need to name the file. If it will be deleted when uninstalled, the name must be unique. If no system reads the ini for uninstall purposes then the name can always be 'ff_xpi_install.js'.

Note: I think the utils.dll plugin is still included even as we longer need that.

Options: ReplyQuote
Re: Quick Note / HowTo xpi-addons in KM75?
Posted by: siria
Date: October 07, 2015 05:12PM

Am already in the middle of a major overhaul, because it has started haunting me with thoughts that keep flowing and flowing and... ;-) Nothing spectacular, just tiny updates and additions, pref-checks or code improvements.

And yes, the ini is already updated too. I'd keep the ini-systems, assuming that the uninstaller still works, but if not, it's still a familiar help for uninstalling manually.


(sig) K-Meleon FAQ (link missing in forum sidebar)
New to K-Meleon? What do you like? What not?



Edited 1 time(s). Last edit at 10/07/2015 05:30PM by siria.

Options: ReplyQuote
Re: Quick Note / HowTo xpi-addons in KM75?
Posted by: rodocop
Date: October 08, 2015 02:44AM

James,
there is new KEM version on KMExt!
So ini-files should be retained...


Latest Release KM75.1 Latest dev KM76RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: KM-1.6db+NS © dugbugoffice // KM-16-S2014 © Fred // KM-1.6beta2.6 © JamesD // KM Twin+ © rodocop // KM 1.8.24.22 © adodupan

RECOMMENDED! K-Meleon 76 Pro ==» Download portable: 7zip or EXE =//= Discuss on forum
K-Meleon 75.1 Pro: Download =//= Discuss || Portable Flash plugin (x86/x64 DLLs)



Edited 2 time(s). Last edit at 10/08/2015 02:46AM by rodocop.

Options: ReplyQuote
Re: QuickNote for KM75
Posted by: siria
Date: October 08, 2015 04:47AM

Sigh... big prob with a bad conflict:
If QuickNotes xul-editor is open, it doesn't realize if meanwhile the macro adds something too, no automatic or even just manual refresh possible. And when the xul-editor is closed and saved, it writes again its last version, even to ALL tabs, changed or not ==> other additions are lost sad smiley


(sig) K-Meleon FAQ (link missing in forum sidebar)
New to K-Meleon? What do you like? What not?



Edited 1 time(s). Last edit at 10/08/2015 04:47AM by siria.

Options: ReplyQuote
Re: QuickNote for KM75
Posted by: JamesD
Date: October 08, 2015 06:47AM

I am confused. How do the prefs get set? I always have all zeros in the default. There must be a tab before one can set it to be used.

My only change was to add a js file to set the enable pref to true and minor changes to Quicknote.ini file.

When I click on the menu item in tools all I see is an empty xul window.

Options: ReplyQuote
Re: QuickNote for KM75
Posted by: siria
Date: October 08, 2015 12:21PM

That means this ominous pref is still false or non-existent.
Look into about:addons: QN will claim QN to be "incompatible"
All prefs are set by the xpi, it contains a long list of QN default prefs, visible after unzipping the xpi.
Except the pref paths for the txt-files, those it sets automatically too but only when first opening the xul-editor.

My updates (still in work and not published yet) are already taking care of such pref checks to help users.

The ini-files are merely for user information, but your js-file must either be wrong (typo? set to "false" intentionally? wrong path?), or you have that pref already set to "false" in your profile.
JS-files only create "default" values, but user config in prefs.js always has priority. Another possibility is that another macro or extension interferes, which wants that pref to be false.


(sig) K-Meleon FAQ (link missing in forum sidebar)
New to K-Meleon? What do you like? What not?

Options: ReplyQuote
Re: QuickNote for KM75
Posted by: JamesD
Date: October 08, 2015 07:06PM

siria

Yes, the first letter of the "kmeleon.install_firefox_extension" was a capital 'K'. I just copied from your post earlier in this thread.

The pref is only required for installing the extension. I changed the value to false after the restart and quicknote did still function.

I added this file at browser\defaults\preferences within the 7z file.

{C0CB8BA3-6C1B-47e8-A6AB-1FAB889562D9}.js

/*********************************************************************************/
// Required pref for k-meleon to install addons from FF using xpi
/*********************************************************************************/
pref("kmeleon.install_firefox_extension", true);

I made these small changes in the ini file just in case it is used for an uninstall later.
[macros]
1=quicknote.kmm
[browser]
1=extensions\{C0CB8BA3-6C1B-47e8-A6AB-1FAB889562D9}.xpi
2=defaults\preferences\{C0CB8BA3-6C1B-47e8-A6AB-1FAB889562D9}.js

[kplugins]

[locales]
  .
  .

I have not yet tested to see what happens if the user has set the pref to false and then attempts to extract the 7z.

I have no ideas yet on how to handle the bug that you noted earlier.

Since the js file is no longer needed after the install, should the quicknote.kmm file check for and delete that file in the OnQuit event?

Options: ReplyQuote
Re: QuickNote for KM75
Posted by: as_983
Date: October 09, 2015 02:21AM

Thanks guys, QuickNote for KM75 finally works!grinning smiley

Options: ReplyQuote
Re: QuickNote for KM75
Posted by: rodocop
Date: March 25, 2017 10:30AM

Hi, folks!

After long time I returned to this tool and made new version.
I've enjoyed this development, started by JamesD, but even in new 'autoit-free' version it had some limitations and glitches that prevent me from using this tool for everyday.

Even worse - there were some errors, added by myself! Sorry, but my skills were not good that time. Neither they are now, but time was not lost in vain: now I can do much more in macrolanguage

So I'm proud to present you new version of the tool.

Changelog:

1) ADDED - tool now autobackups Notes4me.txt on Quit.
2) ADDED - on first use tool asks you to select folder for notes and informs about hotkey for this dialog
3) CHANGED - this hotkey now is CTRL+4 instead of ALT+CAPSLOCK (old hotkey worked not good and also toggles CAPS irrelevantly)
4) ADDED - command to Delete all Notes (options are - delete notes and backup; delete only notes; Cancel)
5) FIXED - open in External Editor option was partly broken by me . Now it's fixed!
6) CHANGED - if user decides to change notes location after some use - the file goes there immediately after selecting new folder! (It goes deleted in old location to avoid multiplication of files. Only backup remains!)
7) ADDED - folder macros\note4me, containing 2 files: Note4me.txt - empty template needed to fix UTF issue (it's copied to target folder if absent there) and linkify.js needed for next list item!

7) ADDED - when open file in KM, it gets immediately linkified (JS-file for this option is mentioned above)
8) ADDED - also this file is autowrapped to fit KM window (in past long paragraphs were going far away to the right of screen )
9) ADDED - finally this file is autoscrolled to the bottom to show you last additions to Notes!

10) FIXED - lost error alert (also my previous bad) for opening non-existing file is now back for opening in KM as well as in external editor.

Maybe some more small fixes - I can't really say now as my head is simply out of here now! But I've got it! ENJOY with me!

P.S. My roadmap presupposes adding some more help and user setup with simple GUI.


Latest Release KM75.1 Latest dev KM76RC ||| Visit The K-Meleon Place and join me there!
Old good stuff: KM-1.6db+NS © dugbugoffice // KM-16-S2014 © Fred // KM-1.6beta2.6 © JamesD // KM Twin+ © rodocop // KM 1.8.24.22 © adodupan

RECOMMENDED! K-Meleon 76 Pro ==» Download portable: 7zip or EXE =//= Discuss on forum
K-Meleon 75.1 Pro: Download =//= Discuss || Portable Flash plugin (x86/x64 DLLs)



Edited 5 time(s). Last edit at 03/25/2017 10:38AM by rodocop.

Attachments: Note4me.7z (4.5 KB)  
Options: ReplyQuote
Re: QuickNote for KM75
Posted by: smallhagrid
Date: March 26, 2017 03:26AM

Thanks very much for this Rodocop !!

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


K-Meleon forum is powered by Phorum.