Cross-host copying method based on cloud desktop, terminal and storage medium

By detecting and synchronizing copying information, the problem of inconvenience in cross-host copying operation is solved, and a seamless copy and paste function is realized. Users can copy and paste content directly between different devices, improving the operation experience.

CN118964060APending Publication Date: 2024-11-15XIAN LEIFENG ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411015781.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The prior art requires external devices or cloud disks to be replicated across hosts, which are inconvenient and incoherent, and cannot directly paste content copied from one computer on another computer.

Method used

By detecting the copy operation of the input device and writing incomplete copy information to the local hard disk or memory during shutdown or restart, the copy information across the host is synchronized and pasted without external devices or cloud disks.

Benefits of technology

It realizes seamless copy and paste operations between different devices. Users can copy content on one device and directly paste on another device, improving the convenience and coherence of operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964060A_ABST
    Figure CN118964060A_ABST
Patent Text Reader

Abstract

The invention provides a cross-host copying method based on a cloud desktop, a terminal and a storage medium, and relates to the technical field of electronic information. The method comprises the following steps: detecting whether first input equipment executes copy operation or not; if the first input device executes the copy operation, marking copy information of the first input device, and reading clipboard content in a memory; when an instruction of shutting down or restarting a user desktop is received, determining whether uncompleted copying operation exists in the first input equipment or not; and if the first input equipment has the uncompleted copy operation, writing copy information of the first input equipment into a local hard disk or a memory. According to the cross-host copying method based on the cloud desktop, the target content can be copied and pasted in a cross-host mode without the help of external equipment or a cloud disk.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of electronic information technology, and in particular to a cloud desktop-based cross-host replication method, terminal, and storage medium. Background Art

[0002] On the computer in the office, I use the mouse to select the content and copy it. When I get home, I use the keyboard and mouse at home to copy it, but the content cannot be copied. I can only use indirect methods, such as using cloud disks or USB disks to complete the backup. It requires the use of third-party tools to indirectly achieve backup. This operation is inconvenient and inconsistent. Summary of the invention

[0003] The embodiments of the present disclosure provide a cloud desktop-based cross-host copying method, terminal and storage medium, which can realize cross-host copying and pasting of target content without the need for external devices or cloud disks.

[0004] According to a first aspect of an embodiment of the present disclosure, a cloud desktop-based cross-host replication method is provided, the method being applied to a first terminal, the method comprising:

[0005] detecting whether the first input device performs a copy operation;

[0006] If the first input device performs a copy operation, marking the copy information of the first input device and reading the clipboard content in the memory;

[0007] When receiving an instruction to shut down or restart the user's desktop, determining whether there is an unfinished copy operation on the first input device;

[0008] If there is an unfinished copy operation of the first input device, the copy information of the first input device is written into the local hard disk or memory.

[0009] In one embodiment, the method comprises:

[0010] If there is no unfinished copy operation on the first input device, shut down or restart the user desktop normally.

[0011] In one embodiment, before detecting whether the first input device performs a copy operation, the method further includes:

[0012] determining whether the first input device is connected to the user desktop;

[0013] If the first input device is connected to the user desktop, detecting a hardware identification code of the first input device;

[0014] Whether the first input device is a legal input device is determined according to the hardware identification code of the first input device.

[0015] According to a second aspect of an embodiment of the present disclosure, a cloud desktop-based cross-host replication method is provided, which is applied to a second terminal, and the method includes:

[0016] Determine whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user's desktop;

[0017] If there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, read the copy information in the local hard disk or memory corresponding to the user desktop, and write the copy information back to the clipboard memory area corresponding to the user desktop;

[0018] Sending a notification message to the second input device, the notification message being used to indicate that there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop;

[0019] The copied information is pasted to a target location through the second input device.

[0020] In one embodiment, after pasting the copied information to the target location through the second input device, the method further includes:

[0021] The copied information in the local hard disk or memory is cleared through the second input device.

[0022] In one embodiment, before determining whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, the method further includes:

[0023] determining whether the second input device is connected to the user desktop;

[0024] If the second input device is connected to the user desktop, detecting a hardware identification code of the second input device;

[0025] Determine whether the second input device is a legal input device according to the hardware identification code of the second input device.

[0026] According to a third aspect of an embodiment of the present disclosure, a first terminal is provided, the first terminal comprising: a first detection module, a marking module, a first determination module and a writing module; wherein,

[0027] A first detection module, detecting whether the first input device performs a copy operation;

[0028] a marking module, which marks the copy information of the first input device and reads the clipboard content in the memory if the first input device performs a copy operation;

[0029] A first determination module, upon receiving an instruction to shut down or restart the user's desktop, determines whether there is an unfinished copy operation on the first input device;

[0030] The writing module writes the copy information of the first input device into the local hard disk or memory if there is an unfinished copy operation of the first input device.

[0031] In one embodiment, the first terminal further includes a second determination module, a second detection module and a first judgment module; wherein,

[0032] A second determination module determines whether the first input device is connected to the user desktop;

[0033] a second detection module, detecting a hardware identification code of the first input device if the first input device is connected to the user desktop;

[0034] The first judging module judges whether the first input device is a legal input device according to the hardware identification code of the first input device.

[0035] According to a fourth aspect of the embodiments of the present disclosure, a second terminal is provided, the second terminal comprising: a second determination module, a processing module, a sending module and a pasting module; wherein:

[0036] The second judgment module judges whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop;

[0037] The processing module reads the copy information in the local hard disk or memory corresponding to the user desktop if there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, and writes the copy information back to the clipboard memory area corresponding to the user desktop;

[0038] A sending module, sending a notification message to a second input device, wherein the notification message is used to indicate that an unfinished copy operation exists in the local hard disk or memory corresponding to the user desktop;

[0039] A pasting module is used to paste the copied information to a target location through the second input device.

[0040] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0041] In the cloud desktop-based cross-host copying method, terminal, and storage medium provided by the embodiments of the present disclosure, keyboard and mouse operations can still be seamlessly connected after working across hosts. For example, a file copied by clicking the mouse or pressing ctrl+c on the keyboard at work can still be pasted by clicking the mouse or pressing ctrl+v on the keyboard after returning home, thereby realizing the cross-host copy and paste of target content without the need for external devices or cloud disks.

[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0044] Figure 1 It is a flow chart of a cloud desktop cross-host replication method provided by an embodiment of the present disclosure;

[0045] Figure 2 It is a flow chart of a cloud desktop cross-host replication method provided by an embodiment of the present disclosure;

[0046] Figure 3 It is a flow chart of a cloud desktop cross-host replication method provided by an embodiment of the present disclosure;

[0047] Figure 4 It is a flow chart of a cloud desktop cross-host replication method provided by an embodiment of the present disclosure;

[0048] Figure 5 It is a structural diagram of a cloud desktop cross-host replication device provided by an embodiment of the present disclosure;

[0049] Figure 6 It is a structural diagram of a cloud desktop cross-host replication device provided by an embodiment of the present disclosure;

[0050] Figure 7 It is a structural diagram of a cloud desktop cross-host replication device provided by an embodiment of the present disclosure;

[0051] Figure 8 It is a structural diagram of a cloud desktop cross-host replication device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0052] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0053] In the present disclosure, a cloud desktop environment needs to be arranged, which includes a server, a user desktop, a first terminal and a second terminal that can access the user desktop at any location. The user uses a first keyboard and mouse or a touch screen as an input device on the first terminal, and the user uses a second keyboard and mouse or a touch screen as an input device on the second terminal.

[0054] The following is a brief description of the application environment of the cloud desktop cross-host replication method provided by the embodiment of the present disclosure.

[0055] See also Figure 1 The following embodiments take the first terminal as the execution subject, and apply the method provided by the embodiment of the present disclosure to the first terminal for specific description. The cloud desktop cross-host replication method provided by the embodiment of the present disclosure includes the following steps 101 to 104:

[0056] Step 101, detecting whether the first input device performs a copy operation;

[0057] In this step, the first terminal detects whether a first input device performs a copy operation, where the first input device is a keyboard, mouse or touch screen.

[0058] Step 102: if the first input device performs a copy operation, then mark the copy information of the first input device and read the clipboard content in the memory;

[0059] In this step, when it is detected that the first input device performs a copy operation, the copy information of the first input device is marked, and the clipboard content is read from the memory at the same time.

[0060] Step 103: upon receiving an instruction to shut down or restart the user's desktop, determining whether there is an unfinished copy operation on the first input device;

[0061] In this step, when an instruction to shut down or restart the user's desktop is received, it is necessary to detect whether there is an unfinished copy operation on the first input device.

[0062] Step 104: If there is an unfinished copy operation of the first input device, the copy information of the first input device is written into the local hard disk or memory.

[0063] In this step, if there is an unfinished copy operation on the first input device, the copy information of the first input device is written into the local hard disk or memory.

[0064] In one embodiment, the method comprises:

[0065] If there is no unfinished copy operation on the first input device, shut down or restart the user desktop normally.

[0066] In this embodiment, if there is no unfinished copy operation on the first input device, the user desktop is shut down or restarted normally.

[0067] Alternatively, if Figure 2 As shown, before detecting whether the first input device performs a copy operation, the method further includes:

[0068] Step 201: Determine whether the first input device is connected to the user desktop;

[0069] Step 202: If the first input device is connected to the user desktop, then detect the hardware identification code of the first input device;

[0070] Step 203: Determine whether the first input device is a legal input device according to the hardware identification code of the first input device.

[0071] In this embodiment, the user uses input devices such as a keyboard and a mouse on the first terminal, and the keyboard and mouse operations are recorded in the user's desktop. When the user uses the first terminal to connect to the user's desktop, it is necessary to detect the hardware identification code of the current first input device such as a keyboard and a mouse, so as to determine whether the first input device is a legal input device based on the hardware identification code of the first input device, and when the hardware of the first input device is a legal input device, detect whether the first input device performs a copy operation.

[0072] See also Figure 3 The following embodiments take the second terminal as the execution subject and apply the method provided by the embodiment of the present disclosure to the second terminal for specific description. The cloud desktop cross-host replication method provided by the embodiment of the present disclosure includes the following steps 301-304:

[0073] Step 301: determine whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user's desktop;

[0074] In this step, the second terminal determines whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user's desktop.

[0075] Step 302: If there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, read the copy information in the local hard disk or memory corresponding to the user desktop, and write the copy information back to the clipboard memory area corresponding to the user desktop;

[0076] In this step, if the second terminal determines that there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, it reads the copy information in the local hard disk or memory corresponding to the user desktop, and writes the copy information back to the clipboard memory area corresponding to the user desktop. The copy information is the copy information of the first input device.

[0077] It should be noted that if there is no unfinished copy operation in the local hard disk or memory corresponding to the user's desktop, the next step will not be performed.

[0078] Step 303: Send a notification message to the second input device, where the notification message is used to indicate that there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop;

[0079] In this step, after the second terminal writes the copied information back to the clipboard memory area corresponding to the user desktop, the second terminal sends a notification message to the second input device to notify the second input device that there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop.

[0080] Step 304: Paste the copied information to a target location via the second input device.

[0081] In this step, the second terminal can paste the copied information to a desired location through the second input device.

[0082] In one embodiment, after pasting the copied information to the target location through the second input device, the method further includes:

[0083] The copied information in the local hard disk or memory is cleared through the second input device.

[0084] In this embodiment, after the second terminal pastes the copied information to the target location through the second input device, the second terminal clears the copied information in the local hard disk or memory to release the memory.

[0085] Alternatively, if Figure 4 As shown, before determining whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, the method further includes:

[0086] Step 401: Determine whether the second input device is connected to the user desktop;

[0087] Step 402: If the second input device is connected to the user desktop, then detect the hardware identification code of the second input device;

[0088] Step 403: Determine whether the second input device is a legal input device according to the hardware identification code of the second input device.

[0089] In this embodiment, when the user uses the second terminal to connect to the user desktop, it is necessary to detect the hardware identification code of the current second input device such as keyboard and mouse, so as to determine whether the second input device is a legal input device based on the hardware identification code of the second input device, and when the hardware of the second input device is a legal input device, read whether there is an unfinished copy operation in the local hard disk or memory.

[0090] Based on the above Figures 1 to 4 The cloud desktop-based cross-host replication method described in the corresponding embodiment is as follows: an embodiment of the device disclosed herein, which can be used to execute the embodiment of the method disclosed herein.

[0091] Figure 5 This is an architecture diagram of a first terminal provided in an embodiment of the present disclosure. Figure 5 As shown, the first terminal 50 includes: a first detection module 501, a marking module 502, a first determination module 503 and a writing module 504; wherein the first detection module 501 is used to detect whether the first input device performs a copy operation; the marking module 502 is used to mark the copy information of the first input device when the first input device performs a copy operation, and read the clipboard content in the memory; the first determination module 503 is used to determine whether the first input device has an unfinished copy operation when receiving an instruction to shut down or restart the user's desktop; the writing module 504 is used to write the copy information of the first input device to the local hard disk or memory when the first input device has an unfinished copy operation.

[0092] Figure 6 This is an architecture diagram of a first terminal provided in an embodiment of the present disclosure. Figure 6 As shown, the first terminal 60 includes: a first detection module 601, a marking module 602, a first determination module 603, a writing module 604, a second determination module 605, a second detection module 606 and a first judgment module 607; wherein the second determination module 605 is used to determine whether the first input device is connected to the user desktop; the second detection module 606 is used to detect the hardware identification code of the first input device when the first input device is connected to the user desktop; the first judgment module 607 is used to judge whether the first input device is a legal input device according to the hardware identification code of the first input device.

[0093] Figure 7This is a diagram of the architecture of a second terminal provided in an embodiment of the present disclosure. Figure 7 As shown, the second terminal 70 includes: a second judgment module 701, a processing module 702, a sending module 703 and a pasting module 704; wherein the second judgment module 701 is used to judge whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop; the processing module 702 is used to read the copy information in the local hard disk or memory corresponding to the user desktop when there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, and write the copy information back to the clipboard memory area corresponding to the user desktop; the sending module 703 is used to send a notification message to the second input device, and the notification message is used to indicate that there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop; the pasting module 704 is used to paste the copy information to the target location through the second input device.

[0094] Figure 8 This is a diagram of the architecture of a second terminal provided in an embodiment of the present disclosure. Figure 8 As shown, the second terminal 80 includes: a second judgment module 801, a processing module 802, a sending module 803 and a pasting module 804, a third determination module 805, a third detection module 806 and a third judgment module 807; wherein the third determination module 805 is used to determine whether the second input device is connected to the user desktop; the third detection module 806 is used to detect the hardware identification code of the second input device when the second input device is connected to the user desktop; the third judgment module 807 is used to determine whether the second input device is a legal input device according to the hardware identification code of the second input device.

[0095] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any step in the above cloud desktop-based cross-host replication method can be implemented.

[0096] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0097] The present disclosure is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0098] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0099] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0100] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.

[0101] Obviously, those skilled in the art can make various changes and modifications to the present disclosure without departing from the spirit and scope of the present disclosure. Thus, if these modifications and variations of the present disclosure fall within the scope of the claims of the present disclosure and their equivalents, the present disclosure is also intended to include these modifications and variations.

Claims

1. A cloud desktop cross-host replication method, characterized in that: Applied to a first terminal, the method includes: detecting whether the first input device performs a copy operation; If the first input device performs a copy operation, marking the copy information of the first input device and reading the clipboard content in the memory; When receiving an instruction to shut down or restart the user's desktop, determining whether there is an unfinished copy operation on the first input device; If there is an unfinished copy operation of the first input device, the copy information of the first input device is written into the local hard disk or memory.

2. The method according to claim 1, characterized in that Before detecting whether the first input device performs a copy operation, the method further includes: determining whether the first input device is connected to the user desktop; If the first input device is connected to the user desktop, detecting a hardware identification code of the first input device; Whether the first input device is a legal input device is determined according to the hardware identification code of the first input device.

3. A cloud desktop cross-host replication method, characterized in that: Applied to the second terminal, the method includes: Determine whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user's desktop; If there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, read the copy information in the local hard disk or memory corresponding to the user desktop, and write the copy information back to the clipboard memory area corresponding to the user desktop; Sending a notification message to the second input device, the notification message being used to indicate that there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop; The copied information is pasted to a target location through the second input device.

4. The method according to claim 3, characterized in that After pasting the copied information to the target location through the second input device, the method further includes: The copied information in the local hard disk or memory is cleared through the second input device.

5. The method according to claim 3, characterized in that: Before determining whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, the method further includes: determining whether the second input device is connected to the user desktop; If the second input device is connected to the user desktop, detecting a hardware identification code of the second input device; Determine whether the second input device is a legal input device according to the hardware identification code of the second input device.

6. A first terminal, characterized in that: The first terminal includes: a first detection module, a marking module, a first determination module and a writing module; wherein, A first detection module, detecting whether the first input device performs a copy operation; a marking module, which marks the copy information of the first input device and reads the clipboard content in the memory if the first input device performs a copy operation; A first determination module, upon receiving an instruction to shut down or restart the user's desktop, determines whether there is an unfinished copy operation on the first input device; The writing module writes the copy information of the first input device into the local hard disk or memory if there is an unfinished copy operation of the first input device.

7. The first terminal according to claim 6, characterized in that: The first terminal further includes a second determination module, a second detection module and a first judgment module; wherein, A second determination module determines whether the first input device is connected to the user desktop; a second detection module, detecting a hardware identification code of the first input device if the first input device is connected to the user desktop; The first judging module judges whether the first input device is a legal input device according to the hardware identification code of the first input device.

8. A second terminal, characterized in that: The second terminal includes: a second judgment module, a processing module, a sending module and a pasting module; wherein, The second judgment module judges whether there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop; The processing module reads the copy information in the local hard disk or memory corresponding to the user desktop if there is an unfinished copy operation in the local hard disk or memory corresponding to the user desktop, and writes the copy information back to the clipboard memory area corresponding to the user desktop; A sending module, sending a notification message to a second input device, wherein the notification message is used to indicate that an unfinished copy operation exists in the local hard disk or memory corresponding to the user desktop; A pasting module is used to paste the copied information to a target location through the second input device.

9. The second terminal according to claim 8, characterized in that: The second terminal further includes a third determination module, a third detection module and a third judgment module; wherein, A third determination module determines whether the second input device is connected to the user desktop; a third detection module, detecting a hardware identification code of the second input device if the second input device is connected to the user desktop; The third judgment module judges whether the second input device is a legal input device according to the hardware identification code of the second input device.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.