Recent

Author Topic: copy and paste an image to clipboard  (Read 4477 times)

Handoko

  • Hero Member
  • *****
  • Posts: 3193
  • My goal: build my own game engine using Lazarus
Re: copy and paste an image to clipboard
« Reply #15 on: April 19, 2019, 08:08:53 pm »
Sorry to interrupt.

I think it was misunderstanding due to cultural differences. Some may consider typing text in all upper case is shouting.

Peace.  :)

Thausand

  • Full Member
  • ***
  • Posts: 234
Re: copy and paste an image to clipboard
« Reply #16 on: April 19, 2019, 08:09:06 pm »
1) I clicked the "Copy" button
2) Immediately Opened Paint
3) Notice that the "Paste" is disabled... Therefore CAN NOT PASTE
Shout no good  :(

Many time problem some were not find.

I try suggest. Maybe not help but no shout. Make happy  :)
1) open paint
2) click "Copy" button program lazarus
3) test paint paste

Is now can paste ? If is paste, then error is not share clipboard when program close. Then only work two program open and run.

Other problem maybe is clipboard format not support when paint. Not any program have support any clipboard format.

Dude... "CAN NOT PASTE" is not shouting but just pointing out what people are not getting.

This is shouting...

I AM ALL DONE ARGUING WITH YOU FOLKS OVER SOMEONE ELSES BROKEN CODE.
GOOD DAY!!!

 ::)
I write reason why maybe not can paste. Is maybe you reason and you not want know ? You have problem shout more ? That no help  :(

lucamar

  • Hero Member
  • *****
  • Posts: 2082
Re: copy and paste an image to clipboard
« Reply #17 on: April 19, 2019, 11:06:19 pm »
See screenshot

1) I clicked the "Copy" button
2) Immediately Opened Paint
3) Notice that the "Paste" is disabled... Therefore CAN NOT PASTE

Do you think I am making this up to just cause trouble?
It doesn't work on my Machine. Period!

There is something strange going on, because here it works on: Windows XP, Windows 7 and even on Linux, as can be seen in the images.

Are you using some kind of non-standard "clipboard manager"?

And calm down, everyone here is interested in knowing why it doesn't work in your machine while it does in ours.
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.

Zath

  • Sr. Member
  • ****
  • Posts: 330
Re: copy and paste an image to clipboard
« Reply #18 on: April 20, 2019, 12:34:33 am »
Lazaus 1.84 / Win 10.

Compiled and ran wp's little prog.

A simple way to test paste is press the keyboard PrtSc/SysRq key for a screen shot. Then click the paste button on the prog and it pastes the screenshot in nicely.

For copy, open MSPaint, open wp's app, then use paste in MSPaint. Nothing pastes (clipboard is empty).
Click copy on the app to assign the leopard pic to the clipboard and then paste in MSPaint will work by pasting the leopard.

Worked for me anyway.

(For the record, text in caps has always been regarded as shouting since the early days of online chat, going way back into CompuServe days before the main www existed.)

lucamar

  • Hero Member
  • *****
  • Posts: 2082
Re: copy and paste an image to clipboard
« Reply #19 on: April 20, 2019, 12:39:48 am »
(For the record, text in caps has always been regarded as shouting since the early days of online chat, going way back into CompuServe days before the main www existed.)

Not always. A short burst of al caps in a phrase was also intrepreted as emphasis, which, rather obviously, is what the OP intended with this:
3) Notice that the "Paste" is disabled... Therefore CAN NOT PASTE
Turbo Pascal 3 CP/M - Amstrad PCW 8256 (512 KB !!!) :P
Lazarus 2.0.2/2.0.4  - FPC 3.0.4 on:
(K|L)Ubuntu 12..16, Windows XP SP3, various DOSes.

440bx

  • Hero Member
  • *****
  • Posts: 1201
Re: copy and paste an image to clipboard
« Reply #20 on: April 20, 2019, 12:51:46 am »
Not always. A short burst of al caps in a phrase was also intrepreted as emphasis, which, rather obviously, is what the OP intended with this:
3) Notice that the "Paste" is disabled... Therefore CAN NOT PASTE
That sounds quite reasonable but....
when the caps are followed by...
Quote
It doesn't work on my Machine. Period!
About the only reasonable conclusion one can draw is that you're being very kind. ;)  Nice exclamation point. <chuckle>
using FPC v3.0.4 and Lazarus 1.8.2 on Windows 7 64bit.