Simple tool for changing tracks and sending a sysex message

hi everyone, I’m new to Renoise, and have very little (if any coding skills).

I’m trying to create a very simple tool to integrate my synth with Renoise. It would do the following:

If i press a key on the Numpad (let’s say 5) it switches to instrument 5. then it also switches to Track number 5, then sends a sysex message through the MIDI port, telling my Virus synth to switch to instrument patch Number 5.

I already managed to create a minimal synth definition with Guru that does switch between instrument patches on the Virus via a slider or a dropdown menu, and found theMatch instrument to Track name tool but then I got of stuck and figured I better write a tool that does just that.

I can probably painfully frankenstein those few lines of code, but if anyone could help me, it would save me from hours of trial and error:)

I’m not sure, but you may want to check this out