Page 1 of 1

Copy card to clipboard as image

Posted: Sun May 28, 2023 9:32 pm
by dbeugeling
Hello,

I want to copy a card as an image of that card to the clipboard.

Does somebody know how this is done?

Thanks,

Dirk

Re: Copy card to clipboard as image

Posted: Sun May 28, 2023 11:32 pm
by richmond62
Screenshot_2023-05-29_01-29-30.png
-

Code: Select all

on mouseUp
   import snapshot from card "KARD"
   set the name of the last image to "XXX"
   copy image "XXX"
   delete image "XXX"
end mouseUp

Re: Copy card to clipboard as image

Posted: Mon May 29, 2023 11:39 am
by dbeugeling
Hello Richmond62!,

Thank you!
You helped me twice already.
Awesome!!

Dirk

Re: Copy card to clipboard as image

Posted: Mon May 29, 2023 6:24 pm
by jiml
Also:

Code: Select all

on mouseUp pMouseButton
   export snapshot from this card to sImage as JPEG
   set the clipboardData["image"] to sImage
end mouseUp