Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| scripting:service [2018/06/13 00:16] – [Paste template with a button] alex | scripting:service [2018/06/13 00:18] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 5: | Line 5: | ||
| Such scripts are living resident in a HippoEDIT process and react on events (as menu command selection, shortcut call, or document load). Another feature of service scripts is automatic loading on every HippoEDIT start. So, you install it, and then it runs always until you uninstall it. | Such scripts are living resident in a HippoEDIT process and react on events (as menu command selection, shortcut call, or document load). Another feature of service scripts is automatic loading on every HippoEDIT start. So, you install it, and then it runs always until you uninstall it. | ||
| - | // | + | // |
| // | // | ||
| ===== Examples ===== | ===== Examples ===== | ||
| Line 20: | Line 20: | ||
| ==== Paste template with a button ==== | ==== Paste template with a button ==== | ||
| The scripts: | The scripts: | ||
| - | - register icon to be used on the toolbar | + | * register icon to be used on the toolbar |
| - | - creates and registers command to be executed on button click or by shortcut | + | |
| - | - adds " | + | |
| - | - creates a toolbar and toolbar button and assigns the command to the button. | + | |
| <file javascript insert-template.hejs> | <file javascript insert-template.hejs> | ||
| Line 56: | Line 56: | ||
| </ | </ | ||
| - | === Further examples === | + | ===== Further examples |
| - | * [[scripting: | + | * [[scripting: |