CN113656198B - Copying and pasting method and device from client to cloud mobile phone - Google Patents

Copying and pasting method and device from client to cloud mobile phone Download PDF

Info

Publication number
CN113656198B
CN113656198B CN202110942071.3A CN202110942071A CN113656198B CN 113656198 B CN113656198 B CN 113656198B CN 202110942071 A CN202110942071 A CN 202110942071A CN 113656198 B CN113656198 B CN 113656198B
Authority
CN
China
Prior art keywords
text
mobile phone
client
target
cloud mobile
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.)
Active
Application number
CN202110942071.3A
Other languages
Chinese (zh)
Other versions
CN113656198A (en
Inventor
贺里军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Duling Technology Co ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110942071.3A priority Critical patent/CN113656198B/en
Publication of CN113656198A publication Critical patent/CN113656198A/en
Application granted granted Critical
Publication of CN113656198B publication Critical patent/CN113656198B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-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)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure provides a method and a device for copying and pasting a client to a cloud mobile phone, and relates to the field of computers, in particular to the field of cloud services. The specific implementation scheme is as follows: the client stores the text into a clipboard of the client in response to detecting the operation of copying or cutting the text; responding to the fact that an editing frame of the target cloud mobile phone is detected to obtain a focus, and displaying the content of a clipboard of the client; in response to detecting an operation of selecting a target text from a clipboard of the client to paste to the target cloud mobile phone, sending the target text to the target cloud mobile phone. A physical machine corresponding to the target cloud mobile phone receives a text to be pasted from a client; sending the text to be pasted to the virtual machine; writing the text to be pasted into a clipboard of the virtual machine by the virtual machine; the virtual machine pastes the contents of the virtual machine's clipboard into the edit box that obtained the focus. The method and the system can realize the text copying function between the client and the cloud mobile phone, and improve the text editing speed of the cloud mobile phone.

Description

Copying and pasting method and device from client to cloud mobile phone
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of cloud services, and specifically relates to a method and a device for copying and pasting a client to a cloud mobile phone.
Background
A cloud mobile phone (Cloudphone), which is a mobile phone that applies a cloud computing technology to a network terminal service and realizes a cloud service through a cloud server. The smart phone is a smart phone deeply combined with network services, and the smart phone can realize a plurality of functions through a network by means of a system of the smart phone and a network terminal erected by a manufacturer.
Disclosure of Invention
The disclosure provides a method, a device, equipment, a storage medium and a computer program product for copying and pasting a client to a cloud mobile phone.
According to a first aspect of the present disclosure, a copy and paste method from a client to a cloud mobile phone is provided, which includes: in response to detecting an operation of copying or cutting the text, storing the text in a clipboard of the client; responding to the fact that an edit box of the target cloud mobile phone is detected to obtain a focus, and displaying the content of a clipboard of the client; in response to detecting an operation of selecting a target text from a clipboard of the client to paste to the target cloud mobile phone, sending the target text to the target cloud mobile phone, so that the target cloud mobile phone pastes the target text to the edit box of which the focus is obtained.
According to a second aspect of the present disclosure, there is provided a copy and paste method from a client to a cloud mobile phone, including: receiving a text to be pasted from a client; sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone; writing the text to be pasted into a clipboard of the virtual machine by the virtual machine; the virtual machine pastes the contents of the virtual machine's clipboard into the edit box that obtained the focus.
According to a third aspect of the present disclosure, there is provided a copy and paste apparatus from a client to a cloud phone, including: a storage unit configured to store a text in a clipboard of a client in response to detecting an operation of copying or cutting the text; the detection unit is configured to respond to the fact that an editing frame of the target cloud mobile phone is detected to obtain a focus, and content of a clipboard of the client side is displayed; a sending unit configured to send the target text to the target cloud mobile phone in response to detecting an operation of selecting the target text from a clipboard of the client to paste to the target cloud mobile phone, so that the target cloud mobile phone pastes the target text to the edit box of which the focus is obtained.
According to a fourth aspect of the present disclosure, there is provided a copy and paste apparatus from a client to a cloud mobile phone, including: a receiving unit configured to receive a text to be pasted from a client; the sending unit is configured to send the text to be pasted to a virtual machine corresponding to the target cloud mobile phone; the writing unit is configured to write the text to be pasted into a clipboard of the virtual machine by the virtual machine; and a pasting unit configured to paste the contents of the clipboard of the virtual machine into the edit box of which the focus is obtained by the virtual machine.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first or second aspect.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of the first or second aspect.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method of the first or second aspect.
According to the method and the device for copying and pasting the client to the cloud mobile phone, the clipboard content selected by the user is sent to the cloud mobile phone, then the cloud mobile phone performs text transmission between the physical machine and the virtual machine, and finally the clipboard content is pasted to the edit box with the focus, so that the time for inputting the text in the cloud mobile phone is saved, and the special characters are conveniently input.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is an exemplary system architecture diagram in which one embodiment of the present disclosure may be applied;
fig. 2 is a flow diagram of one embodiment of a client-to-cloud handset copy-paste method according to the present disclosure;
fig. 3 is a flow diagram of yet another embodiment of a client-to-cloud handset copy-paste method according to the present disclosure;
4a-4c are schematic diagrams of an application scenario of a client-to-cloud handset copy-paste method according to the present disclosure;
fig. 5 is a schematic structural diagram of one embodiment of a client-to-cloud handset copy-paste apparatus according to the present disclosure;
fig. 6 is a schematic structural diagram of yet another embodiment of a client-to-cloud handset copy-paste apparatus according to the present disclosure;
FIG. 7 is a schematic block diagram of a computer system suitable for use with an electronic device implementing embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the client-to-cloud handset copy-and-paste method or client-to-cloud handset copy-and-paste apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include a client and at least one physical machine, each physical machine having at least one virtual machine installed thereon, each virtual machine corresponding to a cloud handset. The client and the physical machine are in communication connection through a wired network or a wireless network.
A user may interact with a physical machine over a network using a client to receive or send messages, etc. The client can be provided with various communication client applications, such as a cloud mobile phone management application, a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software and the like.
The client can be hardware or software. When the client is hardware, the client may be various electronic devices having a display screen and supporting web browsing, including but not limited to a smart phone, a tablet computer, an e-book reader, an MP3 player (Moving Picture Experts Group Audio Layer III, motion Picture Experts Group Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion Picture Experts Group Audio Layer 4), a laptop portable computer, a desktop computer, and the like. When the client is software, the client can be installed in the electronic device listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The physical machine may be a server that provides various services, such as a backend cloud phone server that provides support for a cloud phone interface displayed on the client. The background cloud mobile phone server can receive a management request (such as copying and pasting) for the target cloud mobile phone, then forwards the management request to a virtual machine corresponding to the target cloud mobile phone, and then performs cloud mobile phone management.
The physical machine may be implemented as a distributed server cluster consisting of a plurality of servers, or may be implemented as a single server. And is not particularly limited herein. The physical machine may also be a server of a distributed system, or a server incorporating a blockchain. The physical machine can also be a cloud server, or an intelligent cloud computing server or an intelligent cloud host with artificial intelligence technology.
It should be noted that the copy and paste method from the client to the cloud mobile phone provided by the embodiment of the present disclosure may be executed by the client and the physical machine. Accordingly, a client-to-cloud mobile phone copy-paste device can be arranged in the client and the physical machine. And is not particularly limited herein.
It should be understood that the number of clients, physical machines, virtual machines in FIG. 1 is merely illustrative. There may be any number of clients, physical machines, virtual machines, as desired for implementation.
In the process that a user operates the cloud mobile phone at a client, the text copied on the client is often required to be directly pasted to an edit box of the cloud mobile phone. However, since the cloud mobile phone is in a remote cloud, although the user can directly see the picture of the cloud mobile phone and can perform operations such as clicking and sliding, the user cannot directly perform pasting. The text on the client can be input into the cloud mobile phone edit box only by manually editing and inputting the text word by word.
With continued reference to fig. 2, a flow 200 of one embodiment of a client-to-cloud handset copy-and-paste method according to the present disclosure is shown as applied to a client. The method for copying and pasting the client to the cloud mobile phone comprises the following steps:
in step 201, in response to detecting an operation of copying or cutting text, the text is stored in a clipboard of the client.
In this embodiment, a user may manage and control the cloud handset through an execution subject (e.g., the client shown in fig. 1) of the copy and paste method from the client to the cloud handset. The client side realizes a windows, then the SetClipboardViewer registers the window as a clipboard monitoring window, when the clipboard is updated, a WM _ DRAWCLIPBOARD message can be received, and at the moment, new content of the clipboard can be obtained. When the clipboard is monitored to be updated, the user performs an operation of copying or cutting text, and the text is one of candidate texts which can be pasted to the cloud mobile phone side.
Step 202, in response to detecting that the edit box of the target cloud mobile phone gets a focus, displaying the content of the clipboard of the client.
In this embodiment, a user can open a display interface of a cloud mobile phone at a client, and can manage a plurality of cloud mobile phones simultaneously. The cloud mobile phone display interface opened by the user at present is the target cloud mobile phone. When a mouse clicks on an edit box (e.g., a web site box of a browser, a keyword box of a search engine, etc.), the edit box may obtain focus. At this time, it is presumed that the user wants to perform a paste operation, and the contents of the clipboard of the client are displayed on the cloud mobile phone interface of the client. At this point, the content is not yet sent to the cloud handset, but is only visible at the client.
Step 203, in response to detecting an operation of selecting a target text from a clipboard of the client to paste to the target cloud mobile phone, sending the target text to the target cloud mobile phone.
In this embodiment, a clipboard of a client displayed on a cloud mobile phone interface provides a paste option, so that a user can select a text to be pasted, where the text is a target text. The target text can be selected singly or in multiple ways, for example, the clipboard has 10 pieces of text, and the user can select the most recent piece or pieces of text. Continuous texts can be selected, and the texts can be selected at intervals, for example, 2 nd, 6 th and 9 th texts are selected as target texts. And after the user selects the target text and confirms to copy the target text to the mobile phone, the target text can be sent to the target cloud mobile phone. The client knows the network address of the cloud mobile phone managed by the client in advance, and when the user selects the target cloud mobile phone, the destination address of the target text is determined as the network address of the target cloud mobile phone. The target text is sent according to the destination group package. The text can be sent by the existing remote communication mode, such as ftp, http and the like, and a special network channel can be established in advance for data transmission. There is a special program (e.g., remote-play) in the physical machine that is responsible for receiving the text sent by the client. And then, the virtual machine corresponding to the target cloud mobile phone is forwarded to process, and the specific process is referred to as a flow 300.
According to the method provided by the embodiment of the disclosure, the text copied or cut by the client is sent to the cloud mobile phone, so that copying and pasting between the client and the cloud mobile phone are realized. The text editing speed and convenience of the cloud mobile phone side are improved.
In some optional implementations of this embodiment, sending the target text to the target cloud mobile phone includes: and sending the target text to a physical machine corresponding to the target cloud mobile phone through the http request. And packaging the target text according to an http protocol and then sending the target text to a physical machine corresponding to the target cloud mobile phone. Optionally, the target text can be sent to a physical machine corresponding to the target cloud mobile phone through the https request. The http mode can conveniently and quickly realize the communication between the client and the remote physical machine.
In some optional implementations of this embodiment, the method further includes: in response to detecting that a plurality of cloud handsets are operated synchronously, the target texts are respectively sent to the cloud handsets, so that each cloud handset pastes the target texts to an edit box of which the focus is obtained. The client can select to operate a plurality of cloud mobile phones simultaneously. When a user opens a browser of a cloud mobile phone, browsers of other cloud mobile phones are also opened, and when the user clicks a website frame of the browser of the cloud mobile phone, the current website frame of the cloud mobile phone obtains a focus, and the website frames of the other cloud mobile phones also obtain the focus. The text that the user chooses to paste into the edit box of one cloud handset will also paste into the same edit box of the other cloud handsets. The implementation mode can reduce the operation of the client and improve the efficiency of the cloud mobile phone. Especially, if a plurality of cloud mobile phones are in the same physical machine, the text can be sent to the physical machine only once, so that information interaction between the client and the physical machine is reduced, time delay is reduced, and processing speed is increased.
With further reference to fig. 3, a flow 300 of one embodiment of a client-to-cloud handset copy-paste method applied to a physical machine of a cloud handset is shown. The process 300 of the method for copying and pasting from the client to the cloud mobile phone includes the following steps:
step 301, receiving a text to be pasted from a client.
In this embodiment, an electronic device (for example, a physical machine shown in fig. 1) on which the copy and paste method from the client to the cloud mobile phone operates may receive the text to be pasted from the client in a wired or wireless manner. The text to be pasted corresponds to the target text of step 203. And data packaging is carried out in the process of sending the text to be pasted by the client, wherein the data package comprises the address of the target cloud mobile phone (the address of the virtual machine). A special program (e.g., remote-play) may be run on the physical machine to receive the text to be pasted.
Step 302, sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone.
In this embodiment, one physical machine has a plurality of virtual machines, and the received data packet includes not only the text to be pasted but also the addresses of the virtual machines. And the physical machine sends the text to be pasted according to the address of the virtual machine. The text to be pasted can be sent to the virtual machine by common interprocess communication, such as shared memory.
Step 303, the virtual machine writes the text to be pasted into the clipboard of the virtual machine.
In this embodiment, the virtual machine runs a receiving program, and the receiving program writes the received text to be pasted into the clipboard of the virtual machine. The clipboard of the virtual machine may only store the text content of the latest clipboard, or may store the past text content, for example, the text received each time may be stored in the clipboard in chronological order, which is convenient for text editing in the virtual machine.
At step 304, the virtual machine pastes the contents of the clipboard of the virtual machine into the edit box that obtained the focus.
In this embodiment, the text to be pasted received this time is directly pasted into the edit box with the focus. Pasting operation is not needed on the cloud mobile phone side. If the user selects to synchronously operate a plurality of cloud mobile phones at the client, each cloud mobile phone can receive the same text to be pasted and paste the same text to the same position. Optionally, the user may also select non-recent text from the clipboard of the virtual machine to paste.
In some optional implementation manners of this embodiment, sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone includes: and sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone through a Unix Domain Socket. The Unix Domain Socket is the optimization of the network Socket and is suitable for the condition that a server side and a client side are on the same machine. Compared with the original network Socket, the method only needs to copy data among processes, does not need to process protocols, calculate checksums, maintain sequence numbers, add and delete network packet headers and send confirmation messages, and is more efficient and faster.
With continuing reference to fig. 4a-4c, fig. 4a-4c are schematic diagrams of an application scenario of the copy and paste method from the client to the cloud mobile phone according to the present embodiment. In an application scenario, a user copies a website at a client for managing a cloud mobile phone. The website is saved by the client to the client's clipboard. Then, the user opens the cloud mobile phone management software of the client, and selects a target cloud mobile phone to be pasted, as shown in fig. 4 a. The left side of fig. 4a lists the cloud mobile phones that the client can manage, and the user selects MH05206 as the target cloud mobile phone. The user opens the browser of MH05206 as shown in fig. 4 b. The user clicks the website input box of the browser, namely the edit box obtains the focus. At this point, the clipboard option is displayed (box 1) and the user can click on the clipboard to display the clipboard contents (box 2). The user may select a text to be pasted (e.g., a website on the first line) from the most recent text contents as a target text, and then select to copy to the mobile phone (block 3). As shown in fig. 4c, the client will send a message including the website address to remote-play of the physical machine corresponding to MH05206 via http request. The remote-play is a program in the physical machine, and after receiving the clipboard content sent by the client, establishes a socket channel with the virtual machine through an unix domain socket, and then sends the clipboard text content to a business service of the virtual machine. The virtual machine writes contents to a clipboard through ClipboardService (clipboard service). The virtual machine directly pastes the content into an edit box when the edit text (edit box) has acquired a focus and is in an input state through an input method management service, and the whole copy and paste process is completed.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of a client-to-cloud mobile phone copy and paste apparatus, where the apparatus embodiment corresponds to the method embodiment shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 5, the client-to-cloud mobile phone copy and paste apparatus 500 of the present embodiment includes: a storage unit 501, a detection unit 502 and a transmission unit 503. The storage unit 501 is configured to store the text in a clipboard of the client in response to detecting an operation of copying or cutting the text; a detecting unit 502 configured to display contents of a clipboard of a client in response to detecting that an edit box of a target cloud mobile phone takes a focus; a sending unit 503 configured to send, in response to detecting an operation of selecting a target text from a clipboard of a client to paste to the target cloud cell phone, the target text to the target cloud cell phone, so that the target cloud cell phone pastes the target text to an edit box of which a focus is obtained.
In this embodiment, specific processing of the storage unit 501, the detection unit 502, and the sending unit 503 of the client-to-cloud mobile phone copy and paste apparatus 500 may refer to step 201, step 202, and step 203 in the corresponding embodiment of fig. 2.
In some optional implementations of this embodiment, the sending unit 503 is further configured to: and sending the target text to a physical machine corresponding to the target cloud mobile phone through an http request.
In some optional implementations of the present embodiment, the apparatus 500 further comprises a batch processing unit (not shown in the figures) configured to: in response to detecting that a plurality of cloud handsets are operated synchronously, the target texts are respectively sent to the cloud handsets, so that each cloud handset pastes the target texts to an edit box of which the focus is obtained.
With further reference to fig. 6, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of a client-to-cloud mobile phone copy and paste apparatus, where the apparatus embodiment corresponds to the method embodiment shown in fig. 3, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 6, the client-to-cloud mobile phone copy and paste apparatus 600 of the present embodiment includes: a receiving unit 601, a transmitting unit 602, a writing unit 603, and a pasting unit 604. The receiving unit 601 is configured to receive a text to be pasted from a client; a sending unit 602 configured to send the text to be pasted to a virtual machine corresponding to a target cloud mobile phone; a writing unit 603 configured to write the text to be pasted to a clipboard of a virtual machine by the virtual machine; a pasting unit 604 configured to paste the contents of the clipboard of the virtual machine into the edit box of which the focus is obtained by the virtual machine.
In this embodiment, specific processing of the receiving unit 601, the sending unit 602, the writing unit 603, and the pasting unit 604 of the client-to-cloud mobile phone copy and paste apparatus 600 may refer to step 301, step 302, step 303, and step 304 in the corresponding embodiment of fig. 3.
In some optional implementations of this embodiment, the sending unit 602 is further configured to: and sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone through a Unix domain socket.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of flow 200 or 300.
A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of flows 200 or 300.
A computer program product comprising a computer program which, when executed by a processor, implements the method of flow 200 or 300.
FIG. 7 shows a schematic block diagram of an example electronic device 700 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the device 700 comprises a computing unit 701, which may perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 702 or a computer program loaded from a storage unit 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
A number of components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, modem, wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The computing unit 701 performs the various methods and processes described above, such as a client-to-cloud handset copy-and-paste method. For example, in some embodiments, the client-to-cloud-handset copy-paste method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the client-to-cloud-handset copy-paste method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured by any other suitable means (e.g., by way of firmware) to perform a client-to-cloud handset copy-paste method.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (10)

1. A method for copying and pasting a client to a cloud mobile phone comprises the following steps:
in response to detecting an operation of copying or cutting a text, storing the text in a clipboard of a client;
in response to detecting that an edit box of a target cloud mobile phone takes a focus, displaying the content of a clipboard of a client for a user to select a target text to be pasted, wherein the target text is at least one continuous or interval text in the clipboard, and the edit box comprises: a website frame of a browser or a keyword frame of a search engine;
in response to the operation that pasting to the target cloud mobile phone is confirmed after the target text is detected to be selected from a clipboard of a client, the target text is sent to the target cloud mobile phone, so that the target cloud mobile phone pastes the target text to an edit box with a focus;
in response to detecting that a plurality of cloud handsets are operated synchronously, the target text is sent to the cloud handsets respectively, so that each cloud handset pastes the target text to the same edit box.
2. The method of claim 1, wherein the sending the target text to the target cloud handset comprises:
and sending the target text to a physical machine corresponding to the target cloud mobile phone through an http request.
3. A method for copying and pasting a client to a cloud mobile phone comprises the following steps:
receiving a text to be pasted sent by a client according to the method of claim 1 or 2, wherein the text to be pasted is at least one continuous or interval text in a clipboard of the client;
sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone;
the virtual machine writes the text to be pasted into a clipboard of the virtual machine;
pasting the content of a clipboard of the virtual machine into an edit box of the obtained focus by the virtual machine, wherein the edit box comprises: a web address box of a browser or a keyword box of a search engine.
4. The method of claim 3, wherein the sending the text to be pasted to a virtual machine corresponding to a target cloud mobile phone comprises:
and sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone through a Unix domain socket.
5. A client-to-cloud mobile phone copy-paste device comprises:
a storage unit configured to store a text in a clipboard of a client in response to detecting an operation of copying or cutting the text;
the detection unit is configured to respond to the detection that an edit box of a target cloud mobile phone takes a focus, display the content of a clipboard of a client for a user to select a target text to be pasted, wherein the target text is at least one continuous or interval text in the clipboard, and the edit box comprises: a website frame of a browser or a keyword frame of a search engine;
a sending unit configured to send a target text to a target cloud mobile phone in response to detecting that an operation of pasting to the target cloud mobile phone is confirmed after the target text is selected from a clipboard of a client, so that the target cloud mobile phone pastes the target text to an edit box in which a focus is obtained;
the batch processing unit is configured to respond to the detection of synchronous operation of a plurality of cloud mobile phones, and respectively send the target texts to the cloud mobile phones so that each cloud mobile phone pastes the target texts to the same editing frame.
6. The apparatus of claim 5, wherein the transmitting unit is further configured to:
and sending the target text to a physical machine corresponding to the target cloud mobile phone through an http request.
7. A client-to-cloud mobile phone copy-paste device comprises:
the receiving unit is configured to receive a text to be pasted sent by the client according to the method of claim 1 or 2, wherein the text to be pasted is at least one continuous or interval text in a clipboard of the client;
the sending unit is configured to send the text to be pasted to a virtual machine corresponding to a target cloud mobile phone;
a writing unit configured to write the text to be pasted into a clipboard of a virtual machine by the virtual machine;
a pasting unit configured to paste contents of a clipboard of a virtual machine into an edit box that obtains a focus, the edit box including: a web address box of a browser or a keyword box of a search engine.
8. The apparatus of claim 7, wherein the transmitting unit is further configured to:
and sending the text to be pasted to a virtual machine corresponding to the target cloud mobile phone through a Unix domain socket.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202110942071.3A 2021-08-17 2021-08-17 Copying and pasting method and device from client to cloud mobile phone Active CN113656198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110942071.3A CN113656198B (en) 2021-08-17 2021-08-17 Copying and pasting method and device from client to cloud mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110942071.3A CN113656198B (en) 2021-08-17 2021-08-17 Copying and pasting method and device from client to cloud mobile phone

Publications (2)

Publication Number Publication Date
CN113656198A CN113656198A (en) 2021-11-16
CN113656198B true CN113656198B (en) 2023-01-17

Family

ID=78491449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110942071.3A Active CN113656198B (en) 2021-08-17 2021-08-17 Copying and pasting method and device from client to cloud mobile phone

Country Status (1)

Country Link
CN (1) CN113656198B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338713A (en) * 2021-12-29 2022-04-12 奇安信科技集团股份有限公司 Mobile phone data transmission method and device, storage medium and computer equipment
CN116860483A (en) * 2023-07-20 2023-10-10 合芯科技有限公司 Data pruning method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105323272A (en) * 2014-06-25 2016-02-10 中兴通讯股份有限公司 Method, terminal and system for managing clipboard
CN105378659A (en) * 2013-06-14 2016-03-02 托加里奥有限责任公司 Method and system for enabling access of client device to remote desktop
CN112269627A (en) * 2020-09-21 2021-01-26 西安万像电子科技有限公司 Data processing method, device and system
CN112306612A (en) * 2020-11-03 2021-02-02 西安万像电子科技有限公司 Document content copying method, device, storage medium and processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105378659A (en) * 2013-06-14 2016-03-02 托加里奥有限责任公司 Method and system for enabling access of client device to remote desktop
CN105323272A (en) * 2014-06-25 2016-02-10 中兴通讯股份有限公司 Method, terminal and system for managing clipboard
CN112269627A (en) * 2020-09-21 2021-01-26 西安万像电子科技有限公司 Data processing method, device and system
CN112306612A (en) * 2020-11-03 2021-02-02 西安万像电子科技有限公司 Document content copying method, device, storage medium and processor

Also Published As

Publication number Publication date
CN113656198A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN113656198B (en) Copying and pasting method and device from client to cloud mobile phone
US10838972B2 (en) Storing service items in association with views
CN113722124B (en) Content processing method, device, equipment and storage medium of cloud mobile phone
CA3061623A1 (en) File sending in instant messaging applications
KR20220091441A (en) Data synchronization method and device, electronic device, storage media, and computer program
CN113778644B (en) Task processing method, device, equipment and storage medium
CN113572833B (en) Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN111178052A (en) Method and device for constructing robot process automation application
CN114398023A (en) File generation method and page configuration method and device
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN113626113A (en) Page rendering method and device
CN114449040B (en) Configuration issuing method and device based on cloud platform
EP3951687A2 (en) Business content output method, apparatus, storage medium and program product
CN114741158A (en) Page switching method, device, equipment and storage medium
US10097613B2 (en) Systems and methods for enhancing performance of resource state polling
CN115016955A (en) Method and device for sharing information among multiple applications
US10372436B2 (en) Systems and methods for maintaining operating consistency for multiple users during firmware updates
CN110221746B (en) Information interaction method, device, medium and computing equipment
CN113656731A (en) Advertisement page processing method and device, electronic equipment and storage medium
CN113905040A (en) File transmission method, device, system, equipment and storage medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN112860762A (en) Method and apparatus for detecting time period overlap
CN111176982A (en) Test interface generation method and device
CN115840604B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN114528444B (en) Graph data processing method and device, electronic equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240229

Address after: Room 290, First Floor, No. 2429 Xingang East Road, Haizhu District, Guangzhou City, Guangdong Province, 510330

Patentee after: Guangzhou Duling Technology Co.,Ltd.

Country or region after: China

Address before: 2 / F, baidu building, 10 Shangdi 10th Street, Haidian District, Beijing 100085

Patentee before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right