Bennu Game Development

English Forums => Extensions => Mensaje iniciado por: Arcontus en Mayo 01, 2018, 11:54:17 pm

Título: Clipboard dll 2 (windows)
Publicado por: Arcontus en Mayo 01, 2018, 11:54:17 pm
Hi!
This is my first DLL and I want to share it with yours. This is a dll to access to the content of the clipboard and copy it over a string or  the other way, copying a string content over the clipboard.

This library have 2 functions:

-- str = CLIPBOARD_READ(); --> Return the content of the clipboard over a string or a error message (now in english!) in the cases of empty or non valid content (eg: a file).
-- CLIPBOARD_WRITE(str);      --> Copy the content of a string over the clipboard.

Caution, if you want to see the correct visualization of spanish characters is necesary a font file with CP850 codification. This library does a conversion "on the fly" of the special characters for spanish like (áéíóú,...), but this should not affect to english strings, but carefull if you are working in other languages.


I attach the .dll and a little example program inside the zip file.

I hope that it can be interesting for the comunity,
Regards!
PD: This version has a change only in the functions names proposed by the community, the code is the same.
Título: Re:Clipboard dll 2 (windows)
Publicado por: JaViS en Mayo 02, 2018, 01:21:52 pm
Hi Arcontus,


The DLL isn't attached to the post, can you edit it again?


BTW, is there a chance to make this extension compatible with linux as well?


Thanks for sharing!
Título: Re:Clipboard dll 2 (windows)
Publicado por: Arcontus en Mayo 02, 2018, 02:42:45 pm
Hi Arcontus,


The DLL isn't attached to the post, can you edit it again?


BTW, is there a chance to make this extension compatible with linux as well?


Thanks for sharing!
Thanks for warning about the attach file. I put it "again".
About your question, this dll use windows.h library and unfortunately it isn't compatible with linux OS. I think that is necesary to rewrite all the dll to do it and it is out of my objectives, sorry.

Título: Re:Clipboard dll 2 (windows)
Publicado por: JaViS en Mayo 02, 2018, 05:03:01 pm
Anyways, it would be great if you could upload the source code somewhere and make it available, so the community can continue working on it.
Título: Re:Clipboard dll 2 (windows)
Publicado por: Arcontus en Mayo 11, 2018, 08:09:42 am
Anyways, it would be great if you could upload the source code somewhere and make it available, so the community can continue working on it.
Yes!I have it on pending tasks :D
Título: Re:Clipboard dll 2 (windows)
Publicado por: Arcontus en Enero 16, 2019, 09:51:54 am
This is the GitRepo of this library.

https://github.com/Arcontus/libmod_clipboard