rustdesk icon indicating copy to clipboard operation
rustdesk copied to clipboard

Share image in clipboard

Open caoli5288 opened this issue 3 years ago • 9 comments

Please add this support, THX

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

caoli5288 avatar Jun 02 '22 06:06 caoli5288

Hello there, I could resolve this for you

harris2310 avatar Jun 02 '22 06:06 harris2310

Hello there, I could resolve this for you

@harris2310 How to?

caoli5288 avatar Jun 02 '22 07:06 caoli5288

I'll do some research on it

harris2310 avatar Jun 02 '22 07:06 harris2310

How about remote file copy like rdp?

congzhangzh avatar Jun 05 '22 16:06 congzhangzh

Hello there, I could resolve this for you

waiting~

GermMC avatar Aug 05 '22 08:08 GermMC

I recently start working on a new job so I won't be able to , Sorry for the late reply

harris2310 avatar Aug 06 '22 05:08 harris2310

Any news on this? The ability to copy paste screenshots between systems via the clipboard would be very helpful.

brtwrst avatar Sep 22 '23 07:09 brtwrst

I'll comment here just so this bubbles up to the top. I could have sworn this functionality was there at some point, but I might be mashing together memories with TeamViewer. This would be an amazing feature to add.

vraicovi avatar Feb 21 '24 22:02 vraicovi

Please fund it if you want it get higher priority.

https://twitter.com/rustdesk/status/1770643072118095914

rustdesk avatar Mar 25 '24 09:03 rustdesk

Any news on this? The ability to copy paste screenshots between systems via the clipboard would be very helpful.

Still not working on current version...

Version: 1.2.3-2 Build date: 2024-04-07 08:56

Also good feature to be when switch to another language different than English, key shortcuts are blocked and not working.

unholyHub avatar Jun 25 '24 09:06 unholyHub

如果支持windows与windows系统之间支持图元信息的COPY,需要在GetClipboardData针对几种format格式进行特殊处理,因为直接通过GetClipboardData获取的HANDLE并不是一个globlemem(libs\clipboard\src\windows\wf_cliprdr.c:2591),它在这几种format类型中分别对应一个结构体指针(你可以在Excel中选中一些单元格进行复制,会出现这几种格式): CF_BITMAP->HBITMAP CF_ENHMETAFILE->HENHMETAFILE CF_METAFILEPICT->LPMETAFILEPICT

你应该完整的获取对应的图元信息后发送给peer。@rustdesk

我是一个C++\QT开发,对于rust编程是0基础,我正在尝试搭建调试环境...如果调试环境搭建成功,我会尝试pr。

PS: 如果需要支持跨平台的图元信息转换,比如:win->linux(x11),需要将windows上的图元信息转换为png、jpeg等格式的图片封包放入x11的clipboard中,并且指定剪切板支持targets:png、jpeg等ATOM

gao-xiangyang avatar Jul 01 '24 15:07 gao-xiangyang

ready in nightly build https://x.com/rustdesk/status/1807981430775206289

rustdesk avatar Jul 02 '24 06:07 rustdesk

@gao-xiangyang Thanks, we have done this with arboard crate which helps us doing format conversion for different OS. But there is an issue with SVG (I tested on Mac).

rustdesk avatar Jul 02 '24 06:07 rustdesk

Alright, I saw the fork (fix/win_clipboard_image) by fufesou, and it seems like he has resolved the issue with copying images. However, I believe this only addresses the surface problem, as there are other hidden issues within the entire clipboard process. Due to architectural flow problems, I think these issues will eventually surface.

For example: In my local system's PowerPoint software, I selected some shapes and a slide. Currently, I am unable to paste from the remote system because not all clipboard formats supported locally are synchronized. In the current release version, I only see the text format. You can use FreeClipViewer.exe to separately view the clipboard contents of the remote system and the local system.

Such problems will become more frequent: For instance, if Photoshop supports clipboard formats with layers, allowing you to copy from one Photoshop window to another, it would still fail to copy in RustDesk's remote clipboard.

What I want to illustrate is that when both ends of the system are the same, there is no need to convert the clipboard content data. We can simply send the original clipboard content directly. RustDesk does not need to be concerned about the clipboard format. Since both systems recognize their own clipboard formats, only when dealing with cross-operating systems should we parse these clipboard contents and convert them into the corresponding clipboard format content.

I hope this can help improve future product solutions. @rustdesk

gao-xiangyang avatar Jul 02 '24 07:07 gao-xiangyang

Thanks, there is alway big space of improvement. :(, let's cover 99% use case first.

rustdesk avatar Jul 02 '24 07:07 rustdesk