Nice to see someone playing with macros, happens hardly ever
statusbar is easy, all it needs is a bit plain text. For this macro would suggest:
$_x=getpref(INT,"font.minimum-size.x-unicode");
statusbar("min font size: ".$_x);
Yes too tiny fonts are a pain! My own minimum size is permanently at 14 with font Verdana, works quite well. No idea why the KM-default is zero, or what this could be good for??
In general would first look here:
http://kmeleonbrowser.org/wiki/index.php?id=MacroLanguage2
There are a few more related pages, James collected the most important ones into a macro called "Local Docs", which contains almost the same but stores them as local files, find it sometimes handier and quicker.
Of course am also taking older macros as example all the time, but frankly prefer either the expert ones contained in KM out-of-box or my own more recent ones, considering lots of other macros in the archives and forum are far more complicated as necessary, making even the easiest things confusing. Just due to lack of real understanding, so better not ever changed a jota, only copied from another old macro which itself was also copied from another which itself was also copied from another... ;-) Then again, a few parts in the real expert macros (main.kmm) are sometimes just TOO expert and above my head too :cool:
PS:
if you want to make sure your 3 prefs really get the same value, an easy way would be:
$_x=togglepref(....
setpref(... $_x)
setpref(... $_x)
Edited 2 time(s). Last edit at 08/10/2017 03:49AM by siria.