Put back Get/SetClipboardData()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Put back Get/SetClipboardData()

Post by Dude »

I needed these today but GetClipboardData() and SetClipboardData() have been silently removed! They were added in v3.00 (http://www.purebasic.com/news22.php) so when did they go? The history in the help manual doesn't say, and they're no longer in the manual either:

http://www.purebasic.com/documentation/ ... index.html

:( Please put them back. My old source is now broken without them.
Last edited by Dude on Sun Jan 17, 2016 8:08 am, edited 1 time in total.
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Put back Get/SetClipboardData()

Post by Demivec »

Dude wrote:I needed these today but GetClipboardData() and SetClipboardData() have been silently removed! They were added in v3.00 so when did they go? The history in the help manual doesn't say, and they're no longer in the manual either:
They were taken out in v4.00.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Put back Get/SetClipboardData()

Post by Dude »

Demivec wrote:They were taken out in v4.00.
Damn, why? It's not even mentioned: http://www.purebasic.com/news48.php
User avatar
Demivec
Addict
Addict
Posts: 4260
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: Put back Get/SetClipboardData()

Post by Demivec »

Dude wrote:
Demivec wrote:They were taken out in v4.00.
Damn, why? It's not even mentioned: http://www.purebasic.com/news48.php
Maybe they were affected as part of this:
- Updated: Many library commands
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Put back Get/SetClipboardData()

Post by Dude »

:(
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Put back Get/SetClipboardData()

Post by freak »

These commands only worked with images anyway, but were not very convenient at that (GetClipboardData() only returned an ImageID, not a real PB image). So they were renamed to Get/SetClipboardImage() and improved to better integrate with the rest of PB.

These commands were only very thin API wrappers, so at least for windows, they should be easy to replicate with API directly: https://msdn.microsoft.com/de-de/librar ... 49051.aspx
quidquid Latine dictum sit altum videtur
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Put back Get/SetClipboardData()

Post by Dude »

freak wrote:they were renamed to Get/SetClipboardImage()
Thanks for the explanation, freak. I see Rashad has responded to another post of mine about it, so I think all will be well. :)
Post Reply