# Sending commands on cue

It is possible to send a network message via OSC, TCP, or UDP to an arbitrary destination by configuring a custom action in a cue item on the timeline or as action (on enter/on leave) for cue lists.

## Timeline

In timelines, create a new cue by right-clicking on the cue track (above the media tracks):

<figure><img src="/files/mWPcSmcSpKoTXqQgVm92" alt=""><figcaption></figcaption></figure>

Then set it to Action=`custom` and add the network command. Use variables (global or project variables) to keep the command adjustable.

<figure><img src="/files/6rKFDnVt87NoUvzAdsNX" alt=""><figcaption></figcaption></figure>

## Playlist

A playlist item always provides two actions:

* **Action On Enter:** exectuted when starting the playback
* **Action On Leave:** executed after playback is finished

You can choose to execute commands on enter, on leave and on both events.

Set Action=`custom` and add the network command. Use variables (global or project variables) to keep the command adjustable.

<figure><img src="/files/QJTRhBCEkCLbZbt8Ljel" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.exaplay.one/control/sending-commands-on-cue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
