: K-Meleon Forum
K-Meleon development related discussions.
[quote=JamesD] [quote=lerneree] And stupid quiestion- how to run macros after saving text in dir? [/quote] No question is stupid. I should have explained. For a macro whose code is displayed in the forum, use these steps to prepare it for use in your KM. 1) Open the editor of your choice. 2) Change focus to the forum page and copy the displayed code. Usually the code begins with the following line. [code] # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) [/code] Older code may reference MacroLanguage and newer code may reference Macrolanguage2. Most of the time the code is in a slightly different font and often ends with a statement like this. [code] $macroModules=$macroModules."ini_Demo;"; [/code] 3) Save the file as macro name with the extension "kmm". In the case of ini_demo the name should be "ini_demo.kmm". Special note - if using Notepad. You must change the Save as type to "All files" so Notepad will not add the extension "txt". Sometimes the file name is found just above the code and other time it is located within the comment block. It should be the same name that appears in the $macroModules line. 4) The newly saved file should be put in one of two places in KM. The first place could be the folder named "macros" which is in the KM root folder. ( The root folder is the folder which contains k-meleon.exe ) The second place could be the folder named "macros" in your profile folder. You can find your profile folder from within KM by using EDIT - CONFIGURATION - PROFILE DIRECTORY. 5) After putting the macro file into the macros folder, you must re-start KM so that it will be read. All macros are read at KM startup unless specifically excluded. 6) There are two ways to check to see if the macro was read in correctly. The first is obvious. You will see the menu item(s) that you expect the macro to add. In the case of ini_demo a new item appears under the HELP menu. The second way to see what macros are running is to use EDIT - PREFERENCES - K-MELEON PLUGINS - MACRO EXTENSION. A listing of macros is provided there. You may exclude a macro from running by removing the check mark by its name. I hope this helps. If any part seems un-clear please ask for more information. I make no claim on my abilities as a teacher.[/quote]
K-Meleon forum is powered by