K-Meleon
Use this page to experiment with the wiki. (Just don't delete this text; otherwise people won't know the purpose of the page.)
(Current version. For outdated functions like layers and macros.cfg read the previous version)
The Macro Extension Plugin provides a variety of events.
Event | Is triggered |
OnInit | When the Default Configuration Files have been parsed. |
OnSetup | When the User Configuration Files have been parsed. |
OnStartup | When the first window is opened. |
OnOpenWindow | When a window is opened. |
OnOpenTab | When a tab is opened. |
OnActivateWindow | When a window gets the focus. |
OnLoadOnce | When the 1st document after filling the $OnLoadOnce variable has finished loading. (1) |
OnLoad | When a document has finished loading. |
OnCloseTab | When a tab is closed. |
OnCloseWindow | When a window is closed. |
(OnCloseGroup) | When a multi-layered window is closed (obsolete since KM1.5). |
(OnWMAppExit) | When ID_APP_EXIT is called to terminate the application. (broken?) |
OnQuit | When the macro plugin (the browser) is being closed. |
myMacro{ # your On<event> code } $On<event>=$On<event>."myMacro;";
Startup is always followed by Load or OpenWindow. OpenWindow is always followed by Load. Init, Setup, and Quit are only fired once a session.(1) ActivateWindow is usually fired multiple times, each time a browser window is focused. Startup Order of Precedence Init Setup Startup(1) OpenWindow(2) OpenTab(2) LoadOnce Load(2)(3)(4)
Shutdown Order of Precedence CloseGroup or WMAppExit(1) CloseWindow(2) Quit