Slider support to display and modify variables

Without knowing the specifics, then I think this can be done with a custom HTML prompt.
@peternlewis has an example macro here: How to make use of new MIDI controller trigger?
But it relates more to some midi hardware. Maybe you can modify it to suit your needs.