MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

Clipboard Functionality Opens Command Prompt Briefly.

Open prakash3113 opened this issue 1 year ago • 3 comments

When using MeshCentral's clipboard functionality to copy and paste content between devices, an unexpected behavior occurs. Upon attempting to copy, a command prompt window briefly opens and then closes. This behavior is unexpected and does not align with the intended functionality of clipboard operations.

Steps to Reproduce:

  1. Open MeshCentral and connect to a remote device.
  2. Attempt to copy text and click on get or set clipboard.
  3. Observe that a command prompt window briefly opens and then closes unexpectedly.

Operating System: Windows

I am attaching the video for the reference. clipboard_issue_gif

prakash3113 avatar Sep 01 '23 04:09 prakash3113

This is expected (tho not intentionally) behavior on windows, because we are using the system task scheduled to dispatch a process into the user's desktop session, so that it could interact with the correct clipboard buffer. This has the unfortunate side effect of momentarily displaying the command prompt window.

krayon007 avatar Sep 01 '23 04:09 krayon007

Hi @krayon007 Thanks for your reply I'm interested in finding a way to avoid the command prompt window from being displayed. Is there any method or workaround to run this process in the background, eliminating the brief command prompt window appearance while still ensuring correct clipboard buffer interaction?

I appreciate your insights and any suggestions you may have to address this issue.

Thank you!

prakash3113 avatar Sep 01 '23 05:09 prakash3113

I'm guessing if the task is changed to run a script by running cmd.exe /MIN it would have the window minimized in the task bar. Not sure exactly how it's done here.

W1BTR avatar Apr 15 '24 19:04 W1BTR