How to put an arbitrary string to clipboard in D?
Adam D Ruppe
destructionator at gmail.com
Sat Jul 31 19:54:07 UTC 2021
On Saturday, 31 July 2021 at 18:30:47 UTC, tastyminerals wrote:
> So I thought there may be a way in D to communicate with the
> system clipboard...
You can always call the same system functions from D that you'd
use from C.
This is the source to my simpledisplay.d library on its clipboard
function:
https://github.com/adamdruppe/arsd/blob/master/simpledisplay.d#L5279
The Windows side isn't too bad, the linux side a bit more
complicated. Generally window libs offer something for this but
idk about the one you're using.
More information about the Digitalmars-d-learn
mailing list