Re: How to put an arbitrary string to clipboard in D?

2021-07-31 Thread Adam D Ruppe via Digitalmars-d-learn
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

Re: How to put an arbitrary string to clipboard in D?

2021-07-31 Thread rikki cattermole via Digitalmars-d-learn
On 01/08/2021 6:30 AM, tastyminerals wrote: So I thought there may be a way in D to communicate with the system clipboard... No, this requires a windowing library and yes a window to do it (depending on the windowing system and even the desktop environment).

Re: How to put an arbitrary string to clipboard in D?

2021-07-31 Thread tastyminerals via Digitalmars-d-learn
On Friday, 30 July 2021 at 20:01:09 UTC, rikki cattermole wrote: On 31/07/2021 7:33 AM, tastyminerals wrote: I made a GUI app using tkd library. I am reading the string from one of the app widgets and would like to put it into the clipboard. Does anyone have an idea how to copy a string to

Re: How to put an arbitrary string to clipboard in D?

2021-07-30 Thread rikki cattermole via Digitalmars-d-learn
On 31/07/2021 7:33 AM, tastyminerals wrote: I made a GUI app using tkd library. I am reading the string from one of the app widgets and would like to put it into the clipboard. Does anyone have an idea how to copy a string to the clipboard in D? copyText on a Text widget appears to do what