How can I save the slider value?

I don’t want to have to click a button. Any way I can have it do it automatically?