scripting_examples
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| scripting_examples [2024/09/22 13:14] – [Changes the font colour of a specific text field depending on a numerical value (SetTextColour)] peteraellig | scripting_examples [2025/11/07 21:04] (current) – [turns off all SOLOs] peteraellig | ||
|---|---|---|---|
| Line 485: | Line 485: | ||
| Next | Next | ||
| </ | </ | ||
| + | |||
| + | ===== toggle all Audio outputs===== | ||
| + | < | ||
| + | ' | ||
| + | Dim busValues As String() = {" | ||
| + | For Each value As String In busValues | ||
| + | API.Function(" | ||
| + | Next</ | ||
| + | |||
| + | ===== turn all audio outputs off (not Master) ===== | ||
| + | < | ||
| + | Dim busValues As String() = {" | ||
| + | For Each value As String In busValues | ||
| + | API.Function(" | ||
| + | Next</ | ||
| + | |||
| + | ===== turn all audio outputs ON (not Master) ===== | ||
| + | < | ||
| + | Dim busValues As String() = {" | ||
| + | For Each value As String In busValues | ||
| + | API.Function(" | ||
| + | Next</ | ||
| + | |||
| + | ===== turn on, off, toggle, Audio Master ===== | ||
| + | < | ||
| + | < | ||
| + | oder toggle | ||
| + | < | ||
| + | |||
| ===== gets Audio Titelname from a INPUT (Musictitle) ===== | ===== gets Audio Titelname from a INPUT (Musictitle) ===== | ||
| Line 733: | Line 762: | ||
| Example: #FF0000 becomes %23FF0000\\</ | Example: #FF0000 becomes %23FF0000\\</ | ||
| - | You can use argb values for one color\\ | + | You can use HEX rgba values for one color\\ |
| SAMPLE: rgba(red, green, blue, alpha)\\ | SAMPLE: rgba(red, green, blue, alpha)\\ | ||
| - | #FF0000 for red 100% transparent\\ | + | #FF0000 for red 100% visible\\ |
| - | #FF0000FF | + | #FF00007F |
| Line 749: | Line 778: | ||
| Example: #FF0000 becomes %23FF0000\\</ | Example: #FF0000 becomes %23FF0000\\</ | ||
| - | You can use argb values for one color\\ | + | You can use HEX rgba values for one color\\ |
| SAMPLE: rgba(red, green, blue, alpha)\\ | SAMPLE: rgba(red, green, blue, alpha)\\ | ||
| #FF0000 for red 100% visible\\ | #FF0000 for red 100% visible\\ | ||
| - | #FF0000FF | + | #FF00007F |
| If a text field displays a certain value, the text colour is changed with this script. This can be the text colour of the text field that displays the value or a different one.\\ | If a text field displays a certain value, the text colour is changed with this script. This can be the text colour of the text field that displays the value or a different one.\\ | ||
| Line 776: | Line 805: | ||
| ' depending on a value, it changes the color of the text | ' depending on a value, it changes the color of the text | ||
| + | ' you can use any logical funktion like: | ||
| + | ' If numericvalue < 10 Then | ||
| + | ' If numericvalue > 10 Then | ||
| + | ' If numericvalue < 100 Or numericvalue > 200 Then (all from 100 to 199) | ||
| + | ' If numericvalue Mod 2 = 0 Then (only even number) | ||
| + | ' If numericvalue Mod 10 = 0 Then (only 10, | ||
| + | ' etc.... | ||
| + | | ||
| If numericvalue = 10 Then | If numericvalue = 10 Then | ||
| API.Function(" | API.Function(" | ||
| Line 813: | Line 850: | ||
| This is a script that shows how to read the color of a shape from a title and then perform an action based on the color. The script must be started and runs in the background as a loop. | This is a script that shows how to read the color of a shape from a title and then perform an action based on the color. The script must be started and runs in the background as a loop. | ||
| - | the title used in the example can be downloaded {{ :: | + | the title used in the example can be downloaded {{ :: |
| - | {{: | + | {{: |
| gets the color value of a shape in a gtzip-title: | gets the color value of a shape in a gtzip-title: | ||
scripting_examples.1727003683.txt.gz · Last modified: by peteraellig
