Autor Tema: Clipboard dll 2 (windows)  (Leído 311 veces)

Arcontus

  • Sr. Member
  • ****
  • Mensajes: 273
  • Karma: 9
Clipboard dll 2 (windows)
« 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.
« última modificación: Mayo 11, 2018, 08:09:00 am por Arcontus »

JaViS

  • Global Moderator
  • *****
  • Mensajes: 1236
  • Karma: 26
    • Anarkade
Re:Clipboard dll 2 (windows)
« Respuesta #1 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!
Working on Anarkade. A couch multiplayer 2D shooter.

Arcontus

  • Sr. Member
  • ****
  • Mensajes: 273
  • Karma: 9
Re:Clipboard dll 2 (windows)
« Respuesta #2 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.


JaViS

  • Global Moderator
  • *****
  • Mensajes: 1236
  • Karma: 26
    • Anarkade
Re:Clipboard dll 2 (windows)
« Respuesta #3 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.
Working on Anarkade. A couch multiplayer 2D shooter.

Arcontus

  • Sr. Member
  • ****
  • Mensajes: 273
  • Karma: 9
Re:Clipboard dll 2 (windows)
« Respuesta #4 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