Re: how to update old macros to kmm
Posted by: ndebord
Date: August 03, 2008 10:24PM

kko,

Thanks. Today I finally got time to look at the custom macros for 1.5. Some of which will come in quite handy.

FWIW, my favorite macros are actually executables that I (now) put in the Tools sub-menu that James did: AOL/AIM, Popcorn, Email (Foxmail), Cookie Manager, Wget and using the new expanded plugin menu, I changed from Newsfox (sp?) back to Aggreg8 for my RSS.

Time to learn now I think!

<g>

N

Re: how to update old macros to kmm
Posted by: ndebord
Date: August 14, 2008 03:11AM

Well, somehow I managed to mess up the personal kmm macro file. I can't see the error, so I am posting the file. (sorry for the size.)

====================

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- MyPersonal.kmm
# ---------- K-Meleon Macro Language Personal Macros ---------------
#
# Dependencies : main.kmm
# Resources : -
# Preferences : -
# Version : 0.5 2008-08-01
# --------------------------------------------------------------------------------
#
_AIM{
exec("C:\\AIM\\AIM.EXE");
}
#
_BookMgr{
exec("C:\\Program Files\\Kmeleon1\\cbm33m\\bkmmerge.exe");
}
#
_CookieMonster{
exec("C:\\Program Files\\K-Meleon\\CookieMr\\Cookiemonster.exe");
}
#
_Foxmail{
exec("C:\\Foxmail\\Foxmail.exe");
}
#
_GUL{
exec("C:\\Program Files\\Kmeleon1\\GUL\\gul.exe");
}
#
_Kompozer{
exec("C:\\Program Files\\Kompozer\\kompozerportable.exe");
}
#
_Popcorn{
exec("C:\\Program Files\\K-Meleon\\Popcorn\\popcorn.exe");
}
#_Weather{
$OpenURL="http://www.weatherunderground.com/cgi-bin/findweather/getForecast?query=11101";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Citi{
$OpenURL="https://web.da-us.citibank.com/cgi-bin/citifi/portal/l/l.do";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_CrossCounty{
$OpenURL="http://www.crosscounty.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_HSBC{
$OpenURL="https://www.hsbcdirect.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_ING{
$OpenURL="http://www.ingdirect.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Inbox{
$OpenURL="https://www.inbox.com/login.aspx?gdi=true";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Myrealbox{
$OpenURL="http://www.myrealbox.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Netzero{
$OpenURL="http://my.netzero.net/s/sp";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Yahoomail{
$OpenURL="https://login.yahoo.com/config/login_verify2?&.src=ym&rl=1";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Coned{
$OpenURL="http://www.coned.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_JuJu{
$OpenURL="http://pagesperso-orange.fr/jujuland46/JujuLand/KMES/KMES-Generalities.html";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Keyspan{
$OpenURL="http://keyspanenergy.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Lastfreeware{
$OpenURL="http://www.321download.com/LastFreeware/index.html";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Tapcis{
$OpenURL="http://www.tapcis.com/forums";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_T-Mobile{
$OpenURL="https://my.t-mobile.com/login/MyTmobileLogin.aspx";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_T-MobileBlog{
$OpenURL="http://tmonews.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_T-MobileForum{
$OpenURL="http://www.howardforums.com/forumdisplay.php?f=52";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
_Thinkpad{
$OpenURL="http://forum.thinkpads.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Verizon{
$OpenURL="https://www22.verizon.com/ForyourHome/Registration/Reg/Login.aspx";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_MyPersonal_ModMenu{
$_MyPersonal_Popm = "My Personal";
setmenu("&Tools",popup,$_MyPersonal_Popm,Misc);
setmenu($_MyPersonal_Popm,macro,"AIM",_AIM);
setmenu($_MyPersonal_Popm,macro,"BookMgr",_BookMgr);
setmenu($_MyPersonal_Popm,macro,"CookieMonster",_CookieMonster);
setmenu($_MyPersonal_Popm,macro,"Foxmail",_Foxmail);
setmenu($_MyPersonal_Popm,macro,"GUL",_GUL);
setmenu($_MyPersonal_Popm,macro,"Kompozer",_Kompozer);
setmenu($_MyPersonal_Popm,macro,"Popcorn",_Popcorn);
setmenu($_MyPersonal_Popm,macro,"Weather",_Weather);
setmenu($_MyPersonal_Popm,macro,"Citi",_Citi);
setmenu($_MyPersonal_Popm,macro,"CrossCounty",_CrossCounty);
setmenu($_MyPersonal_Popm,macro,"HSBC",_HSBC);
setmenu($_MyPersonal_Popm,macro,"ING",_ING);
setmenu($_MyPersonal_Popm,macro,"Inbox",_Inbox);
setmenu($_MyPersonal_Popm,macro,"Myrealbox",_Myrealbox);
setmenu($_MyPersonal_Popm,macro,"Netzero",_Netzero);
setmenu($_MyPersonal_Popm,macro,"Yahoomail",_Yahomail);
setmenu($_MyPersonal_Popm,macro,"Coned",_Coned);
setmenu($_MyPersonal_Popm,macro,"JuJu",_JuJu);
setmenu($_MyPersonal_Popm,macro,"Keyspan",_Keyspan);
setmenu($_MyPersonal_Popm,macro,"Lastfreeware",_Lastfreeware);
setmenu($_MyPersonal_Popm,macro,"Tapcis",_Tapcis);
setmenu($_MyPersonal_Popm,macro,"T-Mobile",_T-Mobile);
setmenu($_MyPersonal_Popm,macro,"T-MobileBlog",_T-MobileBlog);
setmenu($_MyPersonal_Popm,macro,"T-MobileForum",_T-MobileForum);
setmenu($_MyPersonal_Popm,macro,"Thinkpad",_Thinkpad);
setmenu($_MyPersonal_Popm,macro,"Verizon",_Verizon);
setmenu($_MyPersonal_Popm,separator,1);
&_MyPersonal_Setaccel;
}
_MyPersonal_Setaccel{
setaccel("ALT A","macros(_AIM)");
setaccel("ALT C","macros(_CookieMonster)");
setaccel("ALT G","macros(_GUL)");
setaccel("ALT K","macros(_Kompozer)");
setaccel("ALT M","macros(_Foxmail)");
setaccel("ALT P","macros(_Popcorn)");
setaccel("ALT W","macros(_Weather)");
}
$OnInit=$OnInit."_MyPersonal_ModMenu;";
$macroModules=$macroModules."MyPersonal;";
#


====================

The errors I have been getting say things like missing init or clsoing, etc.

Tks

N

Re: how to update old macros to kmm
Posted by: JujuLand
Date: August 14, 2008 03:58AM

@ndebord,

Can you just paste the lines concerned by the errors (if you use 1.5, it must gives your lines.

A+


Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:24.0) Gecko/20140105 Ubuntu/12.04 K-Meleon/74.0

Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr




Re: how to update old macros to kmm
Posted by: kko
Date: August 14, 2008 04:17AM

Quote
ndebord
#_Weather{
$OpenURL="http://www.weatherunderground.com/cgi-bin/findweather/getForecast?query=11101";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}

Line break missing:

#
_Weather{
$OpenURL="http://www.weatherunderground.com/cgi-bin/findweather/getForecast?query=11101";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}


Quote
ndebord
_T-Mobile{
$OpenURL="https://my.t-mobile.com/login/MyTmobileLogin.aspx";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_T-MobileBlog{
$OpenURL="http://tmonews.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_T-MobileForum{
$OpenURL="http://www.howardforums.com/forumdisplay.php?f=52";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}

Macro names can contain alphanumeric characters and the underscore only!


Corrected:
----
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------- MyPersonal.kmm
# ---------- K-Meleon Macro Language Personal Macros ---------------
#
# Dependencies : main.kmm
# Resources : -
# Preferences : -
# Version : 0.5 2008-08-01
# --------------------------------------------------------------------------------
#
_AIM{
exec("C:\\AIM\\AIM.EXE");
}
#
_BookMgr{
exec("C:\\Program Files\\Kmeleon1\\cbm33m\\bkmmerge.exe");
}
#
_CookieMonster{
exec("C:\\Program Files\\K-Meleon\\CookieMr\\Cookiemonster.exe");
}
#
_Foxmail{
exec("C:\\Foxmail\\Foxmail.exe");
}
#
_GUL{
exec("C:\\Program Files\\Kmeleon1\\GUL\\gul.exe");
}
#
_Kompozer{
exec("C:\\Program Files\\Kompozer\\kompozerportable.exe");
}
#
_Popcorn{
exec("C:\\Program Files\\K-Meleon\\Popcorn\\popcorn.exe");
}
#
_Weather{
$OpenURL="http://www.weatherunderground.com/cgi-bin/findweather/getForecast?query=11101";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Citi{
$OpenURL="https://web.da-us.citibank.com/cgi-bin/citifi/portal/l/l.do";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_CrossCounty{
$OpenURL="http://www.crosscounty.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_HSBC{
$OpenURL="https://www.hsbcdirect.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_ING{
$OpenURL="http://www.ingdirect.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Inbox{
$OpenURL="https://www.inbox.com/login.aspx?gdi=true";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Myrealbox{
$OpenURL="http://www.myrealbox.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Netzero{
$OpenURL="http://my.netzero.net/s/sp";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Yahoomail{
$OpenURL="https://login.yahoo.com/config/login_verify2?&.src=ym&rl=1";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Coned{
$OpenURL="http://www.coned.com";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_JuJu{
$OpenURL="http://pagesperso-orange.fr/jujuland46/JujuLand/KMES/KMES-Generalities.html";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Keyspan{
$OpenURL="http://keyspanenergy.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Lastfreeware{
$OpenURL="http://www.321download.com/LastFreeware/index.html";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Tapcis{
$OpenURL="http://www.tapcis.com/forums";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_TMobile{
$OpenURL="https://my.t-mobile.com/login/MyTmobileLogin.aspx";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_TMobileBlog{
$OpenURL="http://tmonews.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_TMobileForum{
$OpenURL="http://www.howardforums.com/forumdisplay.php?f=52";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
_Thinkpad{
$OpenURL="http://forum.thinkpads.com/";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_Verizon{
$OpenURL="https://www22.verizon.com/ForyourHome/Registration/Reg/Login.aspx";;
&OpenURL_InNew;
#&OpenURL_InBg;
#&OpenURL_InNewWindow;
}
#
_MyPersonal_ModMenu{
$_MyPersonal_Popm = "My Personal";
setmenu("&Tools",popup,$_MyPersonal_Popm,Misc);
setmenu($_MyPersonal_Popm,macro,"AIM",_AIM);
setmenu($_MyPersonal_Popm,macro,"BookMgr",_BookMgr);
setmenu($_MyPersonal_Popm,macro,"CookieMonster",_CookieMonster);
setmenu($_MyPersonal_Popm,macro,"Foxmail",_Foxmail);
setmenu($_MyPersonal_Popm,macro,"GUL",_GUL);
setmenu($_MyPersonal_Popm,macro,"Kompozer",_Kompozer);
setmenu($_MyPersonal_Popm,macro,"Popcorn",_Popcorn);
setmenu($_MyPersonal_Popm,macro,"Weather",_Weather);
setmenu($_MyPersonal_Popm,macro,"Citi",_Citi);
setmenu($_MyPersonal_Popm,macro,"CrossCounty",_CrossCounty);
setmenu($_MyPersonal_Popm,macro,"HSBC",_HSBC);
setmenu($_MyPersonal_Popm,macro,"ING",_ING);
setmenu($_MyPersonal_Popm,macro,"Inbox",_Inbox);
setmenu($_MyPersonal_Popm,macro,"Myrealbox",_Myrealbox);
setmenu($_MyPersonal_Popm,macro,"Netzero",_Netzero);
setmenu($_MyPersonal_Popm,macro,"Yahoomail",_Yahomail);
setmenu($_MyPersonal_Popm,macro,"Coned",_Coned);
setmenu($_MyPersonal_Popm,macro,"JuJu",_JuJu);
setmenu($_MyPersonal_Popm,macro,"Keyspan",_Keyspan);
setmenu($_MyPersonal_Popm,macro,"Lastfreeware",_Lastfreeware);
setmenu($_MyPersonal_Popm,macro,"Tapcis",_Tapcis);
setmenu($_MyPersonal_Popm,macro,"T-Mobile",_TMobile);
setmenu($_MyPersonal_Popm,macro,"T-MobileBlog",_TMobileBlog);
setmenu($_MyPersonal_Popm,macro,"T-MobileForum",_TMobileForum);
setmenu($_MyPersonal_Popm,macro,"Thinkpad",_Thinkpad);
setmenu($_MyPersonal_Popm,macro,"Verizon",_Verizon);
setmenu($_MyPersonal_Popm,separator,1);
&_MyPersonal_Setaccel;
}
_MyPersonal_Setaccel{
setaccel("ALT A","macros(_AIM)");
setaccel("ALT C","macros(_CookieMonster)");
setaccel("ALT G","macros(_GUL)");
setaccel("ALT K","macros(_Kompozer)");
setaccel("ALT M","macros(_Foxmail)");
setaccel("ALT P","macros(_Popcorn)");
setaccel("ALT W","macros(_Weather)");
}
$OnInit=$OnInit."_MyPersonal_ModMenu;";
$macroModules=$macroModules."MyPersonal;";
----

Re: how to update old macros to kmm
Posted by: ndebord
Date: August 14, 2008 11:28AM

kko,

kko>> Macro names can contain alphanumeric characters and the underscore only!

So hyphens are no good? BTW, thanks for the redo. I was knocking my head trying to figure out what I was doing wrong. It's not that using a sub-menu under the Main Menu Tools heading is my ideal method, rather it is that I have some URLs (and programs) that are more permanent than a bookmarks file allows.

In that same vein, I was wondering if it is possible to put the hotkey lists on a hotkey! I like the concept employed there and in the short run have been loading up essential URLs on the Control keys and am looking at using it as a substitute for my combination list above of programs and URLs.

I guess you could say I am in the beginning stages of figuring out how to best use this new and more powerful macro language. Alain's executable macros is KM's best bet to make loading extensions a seamless process. Of course, lots of work to be done there, including updating those that were designed to work with 1.1 and have not yet made it to 1.5 status. <sigh>

Anyhow, much thanks for the update. Much appreciated.

N



Edited 1 time(s). Last edit at 08/14/2008 11:28AM by ndebord.

Re: how to update old macros to kmm
Posted by: JujuLand
Date: August 14, 2008 01:14PM

Quote
ndebord
Of course, lots of work to be done there, including updating those that were designed to work with 1.1 and have not yet made it to 1.5 status. <sigh>

I am working on the rewriting of extensions to make it compatible with 1.5
A new version of KMES is finished, and a new extension will allow to manage extensions (and also uninstall it)

I'm about to go in vacancies (at the end of the next week) for two weeks, so I think that the new system ought to be online in about three weeks, perhaps less.

A+


Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:24.0) Gecko/20140105 Ubuntu/12.04 K-Meleon/74.0

Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr




Re: how to update old macros to kmm
Posted by: kko
Date: August 15, 2008 03:17AM

Quote
ndebord
kko,

kko>> Macro names can contain alphanumeric characters and the underscore only!

So hyphens are no good?

No, actually the hyphen is a minus sign and that represents the subtraction operator...


Quote
ndebord
BTW, thanks for the redo. I was knocking my head trying to figure out what I was doing wrong.

No problem. The new macro parser tells you the exact location where an error occurred. You just need a suitable editor that displays the line numbers - and a bit of experience. An editor that supports syntax-highlighting for the K-Meleon macro language helps even more. I managed to adapt SciTE for that purpose. I plan to publish it soon.


Quote
ndebord
In that same vein, I was wondering if it is possible to put the hotkey lists on a hotkey! I like the concept employed there and in the short run have been loading up essential URLs on the Control keys and am looking at using it as a substitute for my combination list above of programs and URLs.

If that is meant to say that you want to open the hotlinks configuration page (Tools > Hotlinks...) through a hotlink, yes, that's possible. You can use the following URLs:

chrome://kmprefs/content/pref.xul?hotlinks
chrome://kmprefs/content/pref-hotlinks.xul

Currently, hotlinks can open URLs only, no macros or programs. I already had in mind to extend it for macros. I may do that in a later version...

Re: how to update old macros to kmm
Posted by: ndebord
Date: August 15, 2008 03:49AM

kko,

I never much liked Netscape's bookmarks, but here, some time ago now, I did find a standalone bookmark manager called GUL, which works nicely, with some limitations. Unfortunately it is deadware and although I did write to the author, I never received an answer. In the short run, I'll make it use one sub-folder at the top and put all my permanent URLs in there. Down the road? Who knows. <g>

That hotlink modification looks very good to me. Much thanks.

As for the syntax and the proper editor, I'll wait for your modificaiton of that editor. More work than I have the time for I'm afraid.

N

Re: how to update old macros to kmm
Posted by: desga2
Date: August 15, 2008 05:00AM

Quote
kko
An editor that supports syntax-highlighting for the K-Meleon macro language helps even more. I managed to adapt SciTE for that purpose. I plan to publish it soon.

I thought the same thing. I made a syntax-highlighting for K-Meleon Macro to use with Notepad++ (this use Scintilla engine). I'm revising the defined colors because i don't like, but i'll posted the result in next days.

K-Meleon in Spanish

Re: how to update old macros to kmm
Posted by: JamesD
Date: August 15, 2008 06:52PM

@ desga2

I am so glad that you are fixing the support for K-Meleon in Notepad ++. I use that editor now and I am not happy making do with java support.

Re: how to update old macros to kmm
Posted by: kko
Date: August 15, 2008 07:32PM

Quote
ndebord
As for the syntax and the proper editor, I'll wait for your modificaiton of that editor.

It's now available here (just meant to be the beginning of a collection, hopefully).

Re: how to update old macros to kmm
Posted by: kko
Date: August 15, 2008 07:35PM

Quote
desga2
I made a syntax-highlighting for K-Meleon Macro to use with Notepad++ (this use Scintilla engine). I'm revising the defined colors because i don't like, but i'll posted the result in next days.

Great! I tried myself to teach Notepad++ the K-Meleon macro syntax since I think it is more popular than SciTE. I just couldn't get the code folding working - something that I really need...

Re: how to update old macros to kmm
Posted by: desga2
Date: August 15, 2008 11:24PM

@ kko:
Quote
kko's SciTE page
Configuration files that make SciTE speak your language can be obtained from the scite-interest Google Group.

The translations in Google Group are wrong, all language links go to this url:
watchonlyfree.net/
that open this other url: cometoseemyshow.com/l/simple2/id/3913670/black/1/1/
This like show to you a flash video and aks you to install AvtiveX, but this is ad-ware or spyware.
You must do click in Accept and after cancel download "c-setup.exe" file to can close this web page.

K-Meleon in Spanish

Re: how to update old macros to kmm
Posted by: desga2
Date: August 15, 2008 11:30PM

About this:

Quote
kko
I just couldn't get the code folding working - something that I really need...

Folding works but you must let a space between name of function and "{" to this can be detected as folder symbol. Example:
_function1{
alert("This folding not work.","Folding test",INFO);
}

_function2 {
alert("This folding works!","Folding test",INFO);
}

_function3
{
alert("This folding works!","Folding test",INFO);
}

K-Meleon in Spanish



Edited 1 time(s). Last edit at 08/15/2008 11:32PM by desga2.

Re: how to update old macros to kmm
Posted by: ndebord
Date: August 16, 2008 06:10AM

James,

To my mind, there are entirely TOO many menus.cfg files floating around in KM. Thanks to you, I've found the proper one, but...

<SIGH>

I'll try it out now and get back to you on this.

My goal is to use a main menu heading and that sub-folder listing to replace the easier to modify by an end user method of handling macros found in KM 0.9 and 1.0.2. (In that environment, I had multiple entries of both programs and URLs in various main menu heading (such as Help and Tools and even one in Bookmarks (where I placed GUL).

Much thanks.

N

Re: how to update old macros to kmm
Posted by: JujuLand
Date: August 17, 2008 02:58AM

Some little improvements to SciTEGlobal.properties,

- to see kmm files in list when 'All Source Files' selected

line 277:

# The open.filter setting is only used on Windows where the file selector has a menu of filters to apply
# to the types of files seen when opening.
# There is a limit (possibly 256 characters) to the length of a filter,
# so not all source extensions can be in this setting.
source.files=*.asm;*.c;*.cc;*.cpp;*.cxx;*.cs;*.h;*.hh;*.hxx;*.hpp;\
*.idl;*.odl;*.rc;*.rc2;*.dlg;*.def;\
*.vb;*.vbs;*.bas;*.frm;*.cls;*.ctl;\
*.java;*.js;*.py;*.pl;*.rb;*.cgi;*.lua;*.conf;\
make*;*.mak;\
*.properties;*.html;*.xml;*.iface;*.bat;*.e;\
*.kmm <<<<

line 306:

$(filter.java)\
$(filter.js)\
$(filter.kmm)\ <<<<<
$(filter.kix)\
$(filter.lout)\
$(filter.lua)\

Line 486:

Java&Script|js||\
&Kix|kix||\
&K-Meleon Macros|kmm||\ <<<
TeX|tex||\
Lisp|lisp||\

Line 566:

#import kix
import kmm <<<
import lisp
import lot

A+


Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:24.0) Gecko/20140105 Ubuntu/12.04 K-Meleon/74.0

Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr




Re: how to update old macros to kmm
Posted by: ndebord
Date: October 07, 2008 08:50AM

Alain,

I like what youse guys are doing here. It would be nice to have a built-in editor that KM can use with its new macro language, particularly as ordinary text editors won't be able to decipher some of the commands.

N

Re: how to update old macros to kmm
Posted by: JamesD
Date: October 07, 2008 08:12PM

@ ndebord

I don't know how to build it into KM, but Notepad ++ with language fix from Desga2 does the macro language very good. The only thing that is not right is pairs of \". But that is OK. I can't seem to get them right either.

Re: how to update old macros to kmm
Posted by: ndebord
Date: October 07, 2008 09:02PM

Desag2,

Perhaps the macro language can be slightly modified to fix this problem?

As it is, I am not particularly interested in trying to do line edits on old simple macros that I wish to port to KM 1.5 particularly when I can't visually identify problem lines. There are pluses and minuses to this upgrade I think.

N

Re: how to update old macros to kmm
Posted by: MrWoo
Date: October 08, 2008 10:05PM

kko, I seem to have found your props for scite to use kmm files. I love scite, and use it for many languages, predominately AutoIt. Can you please state, preferably on your download page, which files you have needed to create/modify for the kmm syntax, as I already have a scite installation and wish to integrate it.

MrWoo.

Edit: Found it. You should maybe state on your download page for others who use scite to copy the props file to the properties directory, and then in Scite Global config insert these

In section:
DEFINE LEXER
&K-Meleon Macros|kmm||\

IMPORT
; old versions
import kmm
; new versions import properties\kmm

BTW, thanks many times over for this addition to Scite !!!



Edited 1 time(s). Last edit at 10/08/2008 10:16PM by MrWoo.

Re: how to update old macros to kmm
Posted by: kko
Date: October 09, 2008 12:16AM

MrWoo wrote:
-------------------------------------------------------
> kko, I seem to have found your props for scite to
> use kmm files. I love scite, and use it for many
> languages, predominately AutoIt. Can you please
> state, preferably on your download page, which
> files you have needed to create/modify for the kmm
> syntax, as I already have a scite installation and
> wish to integrate it.

Yes, I'll do that once I find some time (explaining it would have taken me more time than just doing it).

Re: how to update old macros to kmm
Posted by: ndebord
Date: December 13, 2008 02:36AM

James,

After some time to sit and reflect, I'm of the opinion that it would be very nice indeed if the new K-Meleon macro language had at least one editor that worked flawlessly, if for no other reason than to do little edits of main menu and such. As it is now, there are too many ill-defined (imo) keystrokes that you can't see when you are trying to write a macro or update an older macro that worked with KM 1.0xx and earlier version.

N

K-Meleon forum is powered by Phorum.