OK, I’ll run up to my PC when you post the latest log and test it. So far I’ve not been testing before posting (my bad).
Yes, comments come after answers are earliest to latest under the answers.
Answers are latest to earliest (latest answers on tops) but as I said, comments to the answers under them are earliest to latest. A bit confusing but that is how it works.
OK, this one I actually tested sending messages using Bome SendSX with your incoming message log and it works.
I added a preset and under that put 3 translators
On project open, timer “Init” is triggered.
When pressing computer ESC key, timer “Init” is triggered
Timer “Init” sets global variable of ga back to zero.
Primarily the above is set up so I don’t have to restart the project to test again. I often do this to ensure I have global variables set to a known state.
I then fixed the rules in the original translator.
I attached both the project file and the log file. The log file will show all of the incoming F1 50 message but only one 0 sent on output (line 2)
Oh, if you want to pass through the MIDI F1 50 message when you send the keystroke “0”, you will need to turn off the option “Swallow” on the translator, Since I have midi route set, all other MIDI messages will get through.
I found one more error in the rules. The “0” was sent on the first iteration instead of the second. Here are the fixed rules to replace those in the attached file.
pp=ga
ga=ga+1
if pp>2 then ga=2
if pp!=1 then exit rules, skip Outgoing Action
Yes, the F1 50 (and everything else) will still go through unless you turn of the default MIDI routing.
It will only send a “0” key on the second receipt of F1 50, however.
Attached is the latest with the new rules copied and pasted in. This one is not tested as I’m not at my PC so I don’t have SendSX available to me for testing right now.