Getting data from slider - arduino uno over usb port

I think this may be a good example:

I think there is some working code inside that thread. Not sure if it’s possible to proces it outside of the function though.