I was wondering if there's a way to copy any text selected using the
mouse or keyboard, in any window, to the system clipboard (similar to
what Linux does) without the user having to issue any extra commands
like ctrl-c. I am writing a program for a research project related to
user interfaces, and this functionality would be rather useful!