Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run a custom scripts on certain event #59

Closed
hluk opened this issue Jun 4, 2013 · 0 comments · Fixed by #2574
Closed

Run a custom scripts on certain event #59

hluk opened this issue Jun 4, 2013 · 0 comments · Fixed by #2574
Labels
feature New feature request

Comments

@hluk
Copy link
Owner

hluk commented Jun 4, 2013

Events to consider:

  • application start (implemented in 6d78b20),
  • application exit (implemented in 6d78b20),
  • open a tab,
  • close a tab,
  • new tab,
  • remove tab,
  • item added to a tab,
  • item removed from a tab,
  • clipboard changed (already implemented as automatic commands).

Script should receive type of event and some additional parameters like tab name, item content etc.

Could be added to configuration Commands tab, i.e. instead of running command just on new item in clipboard, it could be possible to run on certain event.

New function sleep(interval) can be useful. (Already implemented.)

Example commands:

  • clean a tab on exit,
  • populate a tab with items on application start,
  • limit number of items in tab when item is added,
  • put item to "trash" tab if it is removed from a tab.

Edit: This can be now easily implemented add script functions for each event and using the new script commands to override the functions. Performance will hopefully not suffer too much.

hluk added a commit that referenced this issue Feb 11, 2019
Function onStart is called after server application starts, onExit
before it exits.

This is part of issue #59.

Signed-off-by: Lukas Holecek <hluk@email.cz>
hluk added a commit that referenced this issue Feb 11, 2019
Function onStart is called after server application starts, onExit
before it exits.

This is part of issue #59.

Signed-off-by: Lukas Holecek <hluk@email.cz>
hluk added a commit that referenced this issue Feb 11, 2019
Function onStart is called after server application starts, onExit
before it exits.

This is part of issue #59.

Signed-off-by: Lukas Holecek <hluk@email.cz>
hluk added a commit that referenced this issue Feb 14, 2019
Function onStart is called after server application starts, onExit
before it exits.

This is part of issue #59.

Signed-off-by: Lukas Holecek <hluk@email.cz>
hluk added a commit that referenced this issue Feb 19, 2019
Function onStart is called after server application starts, onExit
before it exits.

This is part of issue #59.

Signed-off-by: Lukas Holecek <hluk@email.cz>
hluk added a commit that referenced this issue Dec 12, 2023
hluk added a commit that referenced this issue Dec 13, 2023
hluk added a commit that referenced this issue Dec 13, 2023
Allows to use scripting to handle some events:

- items added/removed/changed
- tab items loaded
- tab selected

Fixes #59
hluk added a commit that referenced this issue Dec 13, 2023
Allows to use scripting to handle some events:

- items added/removed/changed
- tab items loaded
- tab selected

Fixes #59
hluk added a commit that referenced this issue Dec 13, 2023
Allows to use scripting to handle some events:

- items added/removed/changed
- tab items loaded
- tab selected

Fixes #59
hluk added a commit that referenced this issue Dec 13, 2023
Allows to use scripting to handle some events:

- items added/removed/changed
- tab items loaded
- tab selected

Fixes #59
hluk added a commit that referenced this issue Dec 14, 2023
Allows to use scripting to handle some events:

- items added/removed/changed
- tab items loaded
- tab selected

Fixes #59
hluk added a commit that referenced this issue Dec 14, 2023
Allows to use scripting to handle some events:

- items added/removed/changed
- tab items loaded
- tab selected

Fixes #59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant