What I am trying here is to replicate copy function that run from the click on copy. is that possible ?