Sysex string variable

Newbie here. I am trying to write a script that changes a button title according to a sysex message. I’m sure it’s something simple, but I just can’t figure it out. Here is my script.

[(sysex:F0 72 61 79 XX 64 79 30 F7){title:e_sysextext}].

This all comes from the scripting language documentation, including “e_sysextext”.

The logger says it received the sysex message and found the string I sent - “Organ”. But the title display is “e_sysextText” not the received value. I have also tried

sysextext

event_sysextext

all of the above with “@”, all of these with and without quotes. The result is aways the string in the action field, not the variable.

Based on experience with other languages, I would expect that quotes would be necessary to display the string in the action field. No quotes would look for a variable containing a string and if there was no match it would cause an error.

Log:

 [Logfile cleared, logging level 2 active]

2026-04-22 23:23:10.6077 845246.13ms INFO 47 Midi Logger [Logfile cleared, logging level 2 active]
2026-04-22 23:23:24.9762 14368.46ms DEBUG 21 sysexEvent WillTriggerCommand [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 (sysex:) Triggered: matched segment [3-7], pattern=(F0 72 61 79 XX 64 79 30 F7), msg=(72 61 79 6F 72 67 61 6E 64 79 30), extracted=(6F 72 67 61 6E)]
2026-04-22 23:23:24.9762 0.03ms DEBUG 21 Command LockCommand [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 Command locked]
2026-04-22 23:23:24.9762 0.00ms DEBUG 21 ScriptEngine Event_Common [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 Executing command (sysex:F0 72 61 79 XX 64 79 30 F7){title:@e_sysextext}]
2026-04-22 23:23:24.9762 0.00ms DEBUG 21 ScriptEngine AddBuiltinVariables [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 Adding reference variables]
2026-04-22 23:23:24.9763 0.03ms DEBUG 21 sysexEvent GetLatestEventState [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 (sysex:) pattern=(F0 72 61 79 XX 64 79 30 F7) extracted=(6F 72 67 61 6E)]
2026-04-22 23:23:24.9763 0.00ms DEBUG 21 sysexEvent SetBuiltinVariables [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 sysex=(6F 72 67 61 6E), sysexvalue=(111), sysextext=(organ)]
2026-04-22 23:23:24.9763 0.01ms DEBUG 21 ScriptEngine RunActionList [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 (sysex:F0 72 61 79 XX 64 79 30 F7){title:@e_sysextext}]
2026-04-22 23:23:24.9763 0.00ms DEBUG 21 DialScript CmddExStartStop [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 isStart=True, commandCount=0]
2026-04-22 23:23:24.9763 0.01ms DEBUG 21 titleAction Execute [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 showing title ‘@e_sysextext’]
2026-04-22 23:23:24.9763 0.00ms DEBUG 21 DialScript CmddExStartStop [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 isStart=False, commandCount=1]
2026-04-22 23:23:24.9763 0.00ms DEBUG 21 DialScript PrepareDropDowns [e68cb73a67cc5285a83fd094db1dc6c4 ]
2026-04-22 23:23:24.9769 0.57ms DEBUG 21 ImageController GetImageShared [e68cb73a67cc5285a83fd094db1dc6c4 ‘C:\Users\raydy\AppData\Roaming\Elgato\StreamDeck\Plugins\se.trevligaspel.midi.sdPlugin\VPot\Black\DialKnobBackground.png’ from cache]
2026-04-22 23:23:24.9770 0.18ms DEBUG 21 ImageController GetImageShared [e68cb73a67cc5285a83fd094db1dc6c4 ‘C:\Users\raydy\AppData\Roaming\Elgato\StreamDeck\Plugins\se.trevligaspel.midi.sdPlugin\VPot\Black\Knob.png’ from cache]
2026-04-22 23:23:24.9770 0.00ms DEBUG 21 ImageController GetImageShared [e68cb73a67cc5285a83fd094db1dc6c4 ‘C:\Users\raydy\AppData\Roaming\Elgato\StreamDeck\Plugins\se.trevligaspel.midi.sdPlugin\VPot\Black\Ring.png’ from cache]
2026-04-22 23:23:24.9784 1.34ms DEBUG 21 Tools GetAdjustedFont [e68cb73a67cc5285a83fd094db1dc6c4 Font size found for text ´@e_sysextext´: size=23, available space=(width:200,height:27), calculated space=(width:133.15137,height:24.15)]
2026-04-22 23:23:24.9785 0.09ms DEBUG 21 Tools GetAdjustedFont [e68cb73a67cc5285a83fd094db1dc6c4 Font size found for text ´0´: size=20, available space=(width:76,height:20), calculated space=(width:10,height:16.099999999999998)]
2026-04-22 23:23:24.9786 0.09ms DEBUG 21 Dial_Tools GetChangedJsonItems [e68cb73a67cc5285a83fd094db1dc6c4 final result = (isChanged:True) isForced:False) (Json:l_toptext_full_width:{“value”:“@e_sysextext”}, )
2026-04-22 23:23:24.9787 0.12ms DEBUG 21 DialScript SaveSettings [e68cb73a67cc5285a83fd094db1dc6c4 ]
2026-04-22 23:23:24.9790 0.34ms DEBUG 21 DialScript SendToPI [e68cb73a67cc5285a83fd094db1dc6c4 ]
2026-04-22 23:23:24.9809 1.86ms DEBUG 21 ScriptEngine ClearBuiltinVariables [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 Reference variables removed]
2026-04-22 23:23:24.9809 0.02ms DEBUG 21 Command ReleaseCommand [e68cb73a67cc5285a83fd094db1dc6c4:E786B4B7B98D4E9AB168AF33FF21C950 Command released]

try enclosing the variable with # with @ prefix:

[(sysex:F0 72 61 79 XX 64 79 30 F7){title:#@e_sysextext#}]

That was it! Thanks!