Putting text to ClipBoard (like one ctrl+c'ed it)

How would i make a variables go into the ctrl+c spot?
Is this possible. Or even how to take an input box just have it quickly select and copy it.

//edit, No one know?