CN110941499A - Shear plate sharing method and device, electronic equipment and storage medium - Google Patents
Shear plate sharing method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110941499A CN110941499A CN201911121561.6A CN201911121561A CN110941499A CN 110941499 A CN110941499 A CN 110941499A CN 201911121561 A CN201911121561 A CN 201911121561A CN 110941499 A CN110941499 A CN 110941499A
- Authority
- CN
- China
- Prior art keywords
- sharing
- clipboard
- plate
- terminals
- shear plate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000010008 shearing Methods 0.000 claims abstract description 25
- 238000004590 computer program Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000005236 sound signal Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application discloses a shear plate sharing method, a shear plate sharing device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: when new shearing data are detected, storing the shearing data in the target shearing plate into the next shearing plate of the target shearing plate; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal; saving the new cutting data to a first cutting plate; and sending a synchronization message to all sharing terminals in the local area network so that the sharing terminals synchronize the clipboard. Therefore, the shear plate sharing method provided by the application reduces the complexity of cross-platform multi-terminal shear plate sharing operation in the local area network.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a clipboard sharing method and apparatus, an electronic device, and a computer-readable storage medium.
Background
Generally, the method for cross-platform sharing of clipboards in a local area network is particularly cumbersome and complex. For example, windows systems may be hosted by cloud clipboards, but involve enterprise data security. For another example, in the Linux system and the Windows system, sharing clipboard data in the lan requires storing a local file, exchanging the local file, and reading the exchanged local file, thereby achieving the purpose of sharing data.
Therefore, how to reduce the complexity of the multi-terminal clipboard sharing operation in the local area network is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The present application aims to provide a clipboard sharing method, a clipboard sharing device, an electronic apparatus, and a computer-readable storage medium, which reduce the complexity of the sharing operation of a multi-terminal clipboard in a local area network.
In order to achieve the above object, the present application provides a clipboard sharing method, which is applied to terminals in a local area network, where each terminal corresponds to multiple clipboards, and the method includes:
when new shearing data are detected, storing the shearing data in the target shearing plate into the next shearing plate of the target shearing plate; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal;
saving the new cutting data to a first cutting plate;
and sending a synchronization message to all sharing terminals in the local area network so that the sharing terminals synchronize the clipboard.
Wherein, still include:
and receiving an IP address, and determining all the sharing terminals in the local area network through the IP address.
Wherein, still include:
and displaying a plurality of shear plates through a display interface.
Wherein, still include:
managing the cropping data in the plurality of clipboards through the display interface.
The terminal comprises any one or the combination of any several of a Windows system terminal, a Linux system terminal and a MACOS system terminal.
In order to achieve the above object, the present application provides a clipboard sharing device, which is applied to terminals in a local area network, where each terminal corresponds to a plurality of clipboards, and the device includes:
the first storage module is used for storing the cutting data in the target cutting board to the next cutting board of the target cutting board when the new cutting data is detected; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal;
the second storage module is used for storing the new cutting data into the first cutting board;
and the sending module is used for sending a synchronization message to all the sharing terminals in the local area network so that the sharing terminals can synchronize the clipboard.
Wherein, still include:
and the determining module is used for receiving an IP address and determining all the shared terminals in the local area network through the IP address.
Wherein, still include:
and the display module is used for displaying the plurality of shear plates through a display interface.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and a processor for implementing the steps of the clipboard sharing method when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the above clipboard sharing method.
According to the scheme, the shear plate sharing method provided by the application comprises the following steps: when new shearing data are detected, storing the shearing data in the target shearing plate into the next shearing plate of the target shearing plate; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal; saving the new cutting data to a first cutting plate; and sending a synchronization message to all sharing terminals in the local area network so that the sharing terminals synchronize the clipboard.
The shear plate sharing method can be applied to servers and local area networks of multiple terminals such as personal office PCs, and synchronous sharing of shear plates is achieved. As long as one terminal copies the content, other terminals are synchronously loaded into the clipboard of the terminal and can be directly used for pasting. Therefore, the shear plate sharing method provided by the application reduces the complexity of cross-platform multi-terminal shear plate sharing operation in the local area network. The application also discloses a shear plate sharing device, an electronic device and a computer readable storage medium, which can also achieve the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of clipboard sharing in accordance with an exemplary embodiment;
FIG. 2 is a block diagram illustrating a shear plate sharing system in accordance with an exemplary embodiment;
FIG. 3 is a block diagram illustrating a shear plate sharing arrangement in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application discloses a shear plate sharing method, which reduces the complexity of the sharing operation of a multi-terminal shear plate in a local area network.
Referring to fig. 1, a flow diagram of a clipboard sharing method, as shown in fig. 1, is shown in accordance with an exemplary embodiment, including:
s101: when new shearing data are detected, storing the shearing data in the target shearing plate into the next shearing plate of the target shearing plate; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal;
s102: saving the new cutting data to a first cutting plate;
the purpose of this embodiment is to implement clipboard sharing of a shared terminal in a local area network, and the execution subject is a terminal in the local area network. The terminal can include a Windows system terminal, a Linux system terminal, a MACOS system terminal, and the like, and the present embodiment can implement cross-platform multi-terminal clipboard sharing in a local area network.
It will be appreciated that each terminal corresponds to the same number of clipboards, with the first clipboard storing the most recent clip data. That is, the plurality of clipboards corresponding to each terminal may be understood as a first-in-first-out queue.
In the specific implementation, a background detection thread is set in the terminal and is used for detecting whether new cutting data exists or not, if so, the new cutting data is stored in the first clipboard, and the cutting data in the clipboards except the last clipboard is stored in the next clipboard. Taking an example that each terminal corresponds to three clipboards, when detecting that the content of the clipboard changes, the clipboard 1 points to the latest clipboard data, the clipboard 2 points to the original clipboard data in the clipboard 1, and the clipboard 3 points to the original clipboard data in the clipboard 2.
S103: and sending a synchronization message to all sharing terminals in the local area network so that the sharing terminals synchronize the clipboard.
In this step, a background receiving thread is defined in each sharing terminal, and is used to receive synchronization requests from other terminals, and synchronize clipboard, so as to ensure that the clipboard corresponding to each sharing terminal stores the same clipboard data.
It should be noted that, the shared terminals in this step may be all terminals in the local area network, and of course, may also be customized by the user, that is, this embodiment further includes: and receiving an IP address, and determining all the sharing terminals in the local area network through the IP address. In a specific implementation, a UI dialog box may be provided for the user, and the user may input the IP address of the terminal that needs to be synchronized, i.e., the IP address of the shared terminal in this step.
On the basis of the above embodiment, as a preferred implementation, the method further includes: and displaying a plurality of shear plates through a display interface. In particular implementations, a UI class may be defined for displaying the cropping data in all of the clipboards.
On the basis of the above embodiment, as a preferred implementation, the method further includes: managing the cropping data in the plurality of clipboards through the display interface. In particular implementations, the display page may also provide management operations for the user to cut data, including operations to edit, copy, clean the clipboard, and so on.
The shear plate sharing method provided by the embodiment of the application can be applied to servers and local area networks of multiple terminals such as personal office PCs (personal computers), and synchronous sharing of shear plates is achieved. As long as one terminal copies the content, other terminals are synchronously loaded into the clipboard of the terminal and can be directly used for pasting. Therefore, the clipboard sharing method provided by the embodiment of the application reduces the complexity of cross-platform multi-terminal clipboard sharing operation in the local area network.
An application embodiment of the present application is described below, and specifically, as shown in fig. 2, the terminal in the local area network may be a Windows system, a Linux system, or a MACOS system, and supports cross-platform terminal synchronization. Three shear plates per termination. The clipboard 1 of each terminal always points to the latest clipboard data of the terminal, the content of the clipboard 1 of each terminal is changed, the content of the clipboard 2 is replaced by the content of the original clipboard 1, the content of the clipboard 3 is replaced by the content of the clipboard 2, and the clipboard synchronization of all terminals is triggered. The 3 clipboards of all terminals are always synchronized to the same content.
In the following, a clipboard sharing device provided by an embodiment of the present application is introduced, and a clipboard sharing device described below and a clipboard sharing method described above may be referred to each other.
Referring to fig. 3, a block diagram of a shear plate sharing apparatus according to an exemplary embodiment is shown, as shown in fig. 3, including:
a first saving module 301, configured to, when new clipping data is detected, save the clipping data in a target clipboard to a clipboard next to the target clipboard; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal;
a second saving module 302, configured to save the new cutting data to the first clipboard;
a sending module 303, configured to send a synchronization message to all sharing terminals in the local area network, so that the sharing terminals synchronize the clipboard.
The shear plate sharing device provided by the embodiment of the application can be applied between servers and in a local area network of multiple terminals such as a personal office PC (personal computer), and synchronous sharing of shear plates is realized. As long as one terminal copies the content, other terminals are synchronously loaded into the clipboard of the terminal and can be directly used for pasting. Therefore, the shear plate sharing device provided by the embodiment of the application reduces the complexity of cross-platform multi-terminal shear plate sharing operation in the local area network.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the determining module is used for receiving an IP address and determining all the shared terminals in the local area network through the IP address.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the display module is used for displaying the plurality of shear plates through a display interface.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the management module is used for managing the cutting data in the plurality of cutting plates through the display interface.
On the basis of the above embodiments, as a preferred implementation manner, the terminal includes any one of or a combination of any several of a Windows system terminal, a Linux system terminal, a MACOS system terminal.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present application further provides an electronic device, and referring to fig. 4, a structure diagram of an electronic device 400 provided in an embodiment of the present application, as shown in fig. 4, may include a processor 11 and a memory 12. The electronic device 400 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.
The processor 11 is configured to control the overall operation of the electronic device 400, so as to complete all or part of the steps in the above-mentioned clipboard sharing method. The memory 12 is used to store various types of data to support operation at the electronic device 400, such as instructions for any application or method operating on the electronic device 400 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and so forth. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 13 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 12 or transmitted via the communication component 15. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 14 provides an interface between the processor 11 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 15 is used for wired or wireless communication between the electronic device 400 and other devices. Wireless communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding communication component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described clipboard sharing method.
In another exemplary embodiment, there is also provided a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the clipboard sharing method described above. For example, the computer readable storage medium may be the memory 12 described above including program instructions that are executable by the processor 11 of the electronic device 400 to perform the clipboard sharing method described above.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A clipboard sharing method is applied to terminals in a local area network, wherein each terminal corresponds to a plurality of clipboards, and the method comprises the following steps:
when new shearing data are detected, storing the shearing data in the target shearing plate into the next shearing plate of the target shearing plate; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal;
saving the new cutting data to a first cutting plate;
and sending a synchronization message to all sharing terminals in the local area network so that the sharing terminals synchronize the clipboard.
2. The clipboard sharing method of claim 1, further comprising:
and receiving an IP address, and determining all the sharing terminals in the local area network through the IP address.
3. The clipboard sharing method of claim 1, further comprising:
and displaying a plurality of shear plates through a display interface.
4. The clipboard sharing method of claim 3, further comprising:
managing the cropping data in the plurality of clipboards through the display interface.
5. The clipboard sharing method of claim 1, wherein the terminal comprises any one of a Windows system terminal, a Linux system terminal, a MACOS system terminal, or a combination of any several thereof.
6. A clipboard sharing apparatus, for use in terminals in a local area network, each of the terminals corresponding to a plurality of clipboards, the apparatus comprising:
the first storage module is used for storing the cutting data in the target cutting board to the next cutting board of the target cutting board when the new cutting data is detected; the target shear plate is a shear plate except the last shear plate in all the shear plates corresponding to the terminal;
the second storage module is used for storing the new cutting data into the first cutting board;
and the sending module is used for sending a synchronization message to all the sharing terminals in the local area network so that the sharing terminals can synchronize the clipboard.
7. The shear plate sharing device of claim 6, further comprising:
and the determining module is used for receiving an IP address and determining all the shared terminals in the local area network through the IP address.
8. The shear plate sharing device of claim 6, further comprising:
and the display module is used for displaying the plurality of shear plates through a display interface.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the clipboard sharing method of any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the clipboard sharing method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911121561.6A CN110941499A (en) | 2019-11-15 | 2019-11-15 | Shear plate sharing method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911121561.6A CN110941499A (en) | 2019-11-15 | 2019-11-15 | Shear plate sharing method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110941499A true CN110941499A (en) | 2020-03-31 |
Family
ID=69906898
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911121561.6A Withdrawn CN110941499A (en) | 2019-11-15 | 2019-11-15 | Shear plate sharing method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110941499A (en) |
-
2019
- 2019-11-15 CN CN201911121561.6A patent/CN110941499A/en not_active Withdrawn
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9706002B2 (en) | Push notification via file sharing service synchronization | |
US10129264B2 (en) | Method and apparatus for implementing document sharing between user groups | |
US10530716B2 (en) | Voice chat mode self-adapting method and apparatus | |
US9021507B2 (en) | Dynamic use of data across multiple programs | |
WO2015135495A1 (en) | Method, client, server, and system for message pushing of webpage application | |
WO2019218510A1 (en) | Multi-service system interaction method and apparatus, storage medium, and electronic terminal | |
JP2017528795A (en) | Generating unregistered user accounts for sharing content items | |
CN109361525B (en) | Method, device, control terminal and medium for restarting distributed deployment of multiple services | |
CN108984544B (en) | Method and device for modifying configuration information of distributed system | |
JP2022141662A (en) | Methods and apparatuses for managing limited engagement by external email resource entity within group-based communication system | |
CN113722124B (en) | Content processing method, device, equipment and storage medium of cloud mobile phone | |
CN103501237A (en) | Device management method, management platform, device and system | |
CN112926068A (en) | Authority management method, management server, service server and readable storage medium | |
US11818239B2 (en) | System and method for automatically synchronizing responses to conditions on devices | |
CN104375857A (en) | Method and device for enabling application program to operate multiple instances and terminal equipment | |
US20240086360A1 (en) | File saving method and electronic device | |
CN111290871A (en) | Method and device for acquiring crash information of application program | |
US20170060517A1 (en) | Information processing system | |
US20180198837A1 (en) | Streaming api subscription without loss of events | |
CN109391658B (en) | Account data synchronization method and equipment, storage medium and terminal thereof | |
CN113420002A (en) | Data synchronization method and device, electronic equipment and storage medium | |
US20160294656A1 (en) | Network speed detection | |
CN110941499A (en) | Shear plate sharing method and device, electronic equipment and storage medium | |
US9450906B2 (en) | Managing a messaging queue in an asynchronous messaging system | |
WO2018209462A1 (en) | Mail management method and mail server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200331 |