Clipboard data

BlitzMax Forums/BlitzMax Programming/Clipboard data

VP(Posted 2006) [#1]
Is it at all possible to read and write data from the clipboard without the gui module?

I just need to enable cut/copy/paste from within a windowed app under Windows and Linux.

TIA


EOF(Posted 2006) [#2]
Windows version:



Fielder(Posted 2017) [#3]
Hi Jim, i've tried your code and i have some issues trying to add a line feed / CR to the string.. (i need to write 3 lines on notepad using clipboard)

i've tried adding chr(13) ...

after your suggestion on forum i used chr(10)

and again i've only a single line on clipboard paste :(

but after reading some similar issues on web i found that is necessary to add this:

+chr(13)+chr(10)

P.S. thank you for your code Jim , you saved my day