Re: How to work Get & Set text in clipboard in Windows ?

2020-06-22 Thread Vinod K Chandran via Digitalmars-d-learn
On Monday, 22 June 2020 at 10:26:12 UTC, aberba wrote: It would be a one-liner if it was an api. Such utility APIs are quite missing in D. Um, You are right. How about putting them together into a package? Well, this is an inspiration to me. Let me try. :)

Re: How to work Get & Set text in clipboard in Windows ?

2020-06-22 Thread aberba via Digitalmars-d-learn
On Saturday, 20 June 2020 at 19:39:56 UTC, Vinod K Chandran wrote: On Saturday, 20 June 2020 at 13:46:05 UTC, Dennis wrote: Thanks a lot. Well, i thought it should be a one liner like- Clipboard.SetText(sText) But after reading your reply, i realized that this is D, not a scripting language.

Re: How to work Get & Set text in clipboard in Windows ?

2020-06-20 Thread Vinod K Chandran via Digitalmars-d-learn
On Saturday, 20 June 2020 at 13:46:05 UTC, Dennis wrote: Thanks a lot. Well, i thought it should be a one liner like- Clipboard.SetText(sText) But after reading your reply, i realized that this is D, not a scripting language. :)

Re: How to work Get & Set text in clipboard in Windows ?

2020-06-20 Thread Dennis via Digitalmars-d-learn
On Saturday, 20 June 2020 at 13:32:22 UTC, Vinod K Chandran wrote: I would like to know how to get & set text in clipboard. I am using windows machine. This is an example of setting the clipboard using the Windows API in D: ``` /// Returns: true on success bool setClipboard(string str) {

How to work Get & Set text in clipboard in Windows ?

2020-06-20 Thread Vinod K Chandran via Digitalmars-d-learn
Hi all, I would like to know how to get & set text in clipboard. I am using windows machine. Thanks in advance. --Vinod Chandran