It always returns “NaN”, at least for me on Windows with Cubase 14.0.10 as well as Nuendo 13.0.51
Maybe this is a small problem, but it could be important to know the application version if a MIDI Remote script should be compatible with several versions.
Oh, you are right, I was so blind that I overlooked my own mistake So, thank you very much and sorry for the false alarm!
Although I am new to MIDI Remote API, I must say it is fantastic! In just two days, I was able to write a script for my Foot Controller (Roland FC-300) which now works exactly as I need, including the display text (which is the name of the selected track).
That’s a nice script, properly implementing Roland’s sysex messages for the pedal!
I would recommend uploading it to this forum, under the tag shared-midi-remote. There are always users who can benefit from script(s) we create initially for private use!