Hello!
I have a bug, when I controlling a switch via a script. The script change the value of the switch.
The switch widget value change but the switch didn’t send its OSC message.
set('preset_recall_switch_0', 1);
According to the documentation, it’'s should send the OCS message, isn’t it ?
It does if the switch has a target or if a default target is defined using the server’s send option (assuming the switch’s bypass/ignoreDefaults options are not enabled).
When I modify the default value of my shortcut key,
You mean when you change the key by entering a different letter in the input ? When I do so, the new key is correctly bound and a message is sent by the switch when I press it.
I think there’s a little confusion here: widgets don’t send messages in response to received messages, it only updates their value. If you want to reply to an incoming message you have to use a custom module.
Edit: or maybe I’m missing the point ? Are you actually testing with the very same session file you sent here ?
Edit 2: ok I get it, I have to send the key value to see the issue, not enter it manually in the input
Found and fixed in sources, to be included in v1.8.1. Still, you might want to check your server config if you didn’t intend to have that osc message loop.
On my custom module I check the shortcut value and if it’s not on a list of allow keys I send back the first char of the value to display on the ‘convert’ value.