Copy to clipboard

but this only works with one permanent text no?, i want to take variable text from dashboard and copy it to my clipboard by clicking a button of dashboard.