Progress preset in playlist with midi or pc key

Hello everyone, does anyone know how I can advance the presets with an external command? example a midi signal or a key pressed by pc?

{"ps":"1~10~"}will cycle between presets 1 and 10 wrapping around.

Thank you so much you have solved a big problem for me now through Chataigne software I can give it an input from midi keyboard pc etc, thanks thanks thanks