[go: up one dir, main page]

CN104462033B - The method and apparatus of edit operation is realized in equipment room - Google Patents

The method and apparatus of edit operation is realized in equipment room Download PDF

Info

Publication number
CN104462033B
CN104462033B CN201310421742.7A CN201310421742A CN104462033B CN 104462033 B CN104462033 B CN 104462033B CN 201310421742 A CN201310421742 A CN 201310421742A CN 104462033 B CN104462033 B CN 104462033B
Authority
CN
China
Prior art keywords
operation object
editing
instruction
clipboard
edit box
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
CN201310421742.7A
Other languages
Chinese (zh)
Other versions
CN104462033A (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.)
Beijing Samsung Telecommunications Technology Research Co Ltd
Samsung Electronics Co Ltd
Original Assignee
Beijing Samsung Telecommunications Technology Research Co Ltd
Samsung Electronics 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 Samsung Telecommunications Technology Research Co Ltd, Samsung Electronics Co Ltd filed Critical Beijing Samsung Telecommunications Technology Research Co Ltd
Priority to CN201310421742.7A priority Critical patent/CN104462033B/en
Priority to KR20140034238A priority patent/KR20150032152A/en
Priority to US14/487,697 priority patent/US20150082157A1/en
Publication of CN104462033A publication Critical patent/CN104462033A/en
Application granted granted Critical
Publication of CN104462033B publication Critical patent/CN104462033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)

Abstract

本申请公开了一种在设备间实现编辑操作的方法,包括:通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收操作对象;第二设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。本申请还公开了对应于上述方法的设备,以及另一种在设备间实现编辑操作的方法和设备。应用本申请公开的技术方案,能够在设备间实现编辑操作,并且方便快捷。

The present application discloses a method for implementing editing operations between devices, including: the second device receives the operation object from the first device through the communication connection between the first device and the second device; Perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box. The present application also discloses a device corresponding to the above method, and another method and device for implementing editing operations between devices. By applying the technical solution disclosed in this application, the editing operation can be realized between devices, and it is convenient and fast.

Description

在设备间实现编辑操作的方法及设备Method and device for realizing editing operation between devices

技术领域technical field

本申请涉及移动通信技术领域,特别涉及在设备间实现编辑操作的方法及设备。The present application relates to the technical field of mobile communication, in particular to a method and a device for implementing editing operations between devices.

背景技术Background technique

复制、粘贴、剪切技术是三种基本的编辑操作,被广泛应用于各种电子设备中。现有的复制、粘贴、剪切技术和设备之间的信息共享方法主要有以下几种:Copy, paste, and cut techniques are three basic editing operations that are widely used in various electronic devices. Existing copy, paste, cut technologies and information sharing methods between devices mainly include the following:

第一种方法:单机上(本地)的复制或粘贴或剪切方法The first method: copy or paste or cut method on a single machine (local)

缺点:只能在单一设备上进行操作,不能实现跨设备操作及信息共享。Disadvantages: It can only be operated on a single device, and cross-device operation and information sharing cannot be realized.

第二种方法:借助于服务器的云复制粘贴技术The second method: cloud copy and paste technology with the help of the server

该方式主要存在以下缺点:This method mainly has the following disadvantages:

1)需要中间设备——云服务器:首先需要将复制或粘贴的内容上传至云服务器;1) An intermediate device - cloud server is required: first, the copied or pasted content needs to be uploaded to the cloud server;

2)依赖数据网络:只有在打开数据网络的情况下,才能与云服务器交互并实现跨设备信息共享。2) Rely on the data network: Only when the data network is turned on, can it interact with the cloud server and realize cross-device information sharing.

3)不便于操作,不够方便快捷:云服务器需要首先获取终端用户的登录信息,才能执行复制或粘贴操作。跨设备操作及信息共享非常繁琐,例如:A设备的用户使用账号登录云服务器,将内容复制到云服务器,B设备的用户需要使用同样的账号登录云服务器,再将目标内容粘贴到B设备上。由于移动终端设备的隐私性,这种方法非常不方便。3) Inconvenient to operate, not convenient enough: the cloud server needs to first obtain the login information of the end user before performing the copy or paste operation. Cross-device operations and information sharing are very cumbersome. For example, the user of device A logs in to the cloud server with an account and copies the content to the cloud server. The user of device B needs to log in to the cloud server with the same account, and then paste the target content to device B. . Due to the privacy of mobile terminal equipment, this method is very inconvenient.

第三种方法:借助短信、彩信等方式传输信息,接收方收到信息后需要执行本地复制或粘贴操作。The third method: transmit information by means of SMS, MMS, etc., and the receiver needs to perform local copy or paste operation after receiving the information.

该方法的实现过程为:The implementation process of this method is:

1)用短信或彩信等方式接收信息;1) Receive information by SMS or MMS;

2)将目标内容复制到剪切板;2) Copy the target content to the clipboard;

3)定位到目标应用程序;3) locate the target application;

4)选中剪切板内容进行粘贴。4) Select the contents of the clipboard to paste.

该方法主要存在以下缺点:This method mainly has the following disadvantages:

1)需要发送短信、彩信等,执行效率低;1) It is necessary to send SMS, MMS, etc., and the execution efficiency is low;

2)不方便用户操作。2) It is inconvenient for users to operate.

第四种方法:双方都上网,借助于聊天工具传输信息,接收方收到信息后需要执行本地复制或粘贴操作。The fourth method: Both parties are online, and the information is transmitted by means of a chat tool. After receiving the information, the receiver needs to perform a local copy or paste operation.

该方法的实现过程为:The implementation process of this method is:

1)双方打开数据网络,登录聊天工具;1) Both parties open the data network and log in to the chat tool;

2)接收方接收信息;2) The recipient receives the information;

3)将目标内容复制到剪切板;3) Copy the target content to the clipboard;

4)定位到目标应用程序;4) locate the target application program;

5)选中剪切板内容进行粘贴。5) Select the contents of the clipboard to paste.

该方法主要存在以下缺点:This method mainly has the following disadvantages:

1)依赖数据网络;1) Rely on the data network;

2)不方便用户操作。2) It is inconvenient for users to operate.

发明内容Contents of the invention

本申请提供了几种在设备间实现编辑操作的方法和设备,以提高两个或多个设备间的编辑操作的便捷性。The present application provides several methods and devices for implementing editing operations between devices, so as to improve the convenience of editing operations between two or more devices.

本申请提供的一种在设备间实现编辑操作的方法,适用于编辑操作的接收方,包括以下步骤:A method for implementing an editing operation between devices provided by this application is suitable for the receiver of the editing operation, and includes the following steps:

通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收操作对象;through the communication connection between the first device and the second device, the second device receives the operation object from the first device;

第二设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The second device performs an editing operation on the operation object, where the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

较佳地,所述第二设备对所述操作对象进行编辑操作包括:Preferably, the editing operation performed by the second device on the operation object includes:

判断当前是否存在有焦点的编辑框,如果存在,将所述操作对象输入所述编辑框的光标所在位置;Judging whether there is currently an edit box with focus, and if so, inputting the operation object into the cursor position of the edit box;

否则,将所述操作对象保存到剪切板中,或者,判断所述操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将所述操作对象输入所述目标应用程序的编辑框中。Otherwise, save the operation object into the clipboard, or judge whether the operation object has an identifier for specifying the target application program, if so, open the corresponding target application program, and input the operation object into the in the edit box of the target application.

较佳地,该方法进一步包括:第二设备从第一设备接收编辑指令;Preferably, the method further includes: the second device receiving an editing instruction from the first device;

所述第二设备对所述操作对象进行编辑操作包括:所述第二设备根据所述编辑指令对所述操作对象进行相应的编辑操作。Performing an editing operation on the operation object by the second device includes: performing a corresponding editing operation on the operation object by the second device according to the editing instruction.

较佳地,如果所述编辑指令为复制到远端或剪切到远端,所述第二设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象保存到剪切板中,或将所述操作对象输入当前编辑框的光标所在位置;Preferably, if the editing instruction is copy to remote or cut to remote, performing a corresponding editing operation on the operation object by the second device according to the editing instruction includes: saving the operation object to In the clipboard, or input the operation object into the cursor position of the current edit box;

如果所述编辑指令为粘贴到远端,所述第二设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is to paste to the remote end, the second device performing a corresponding editing operation on the operation object according to the editing instruction includes: inputting the operation object into the cursor position of the current edit box, or inputting the operation object Save the operation object to the clipboard and input the operation object to the cursor position of the current edit box.

对应于上述适用于编辑操作的接收方的方法,本申请还提供了一种在设备间实现编辑操作的设备,包括:通信模块和指令识别模块,其中:Corresponding to the above-mentioned method applicable to the recipient of the editing operation, the present application also provides a device for implementing editing operations between devices, including: a communication module and an instruction recognition module, wherein:

所述通信模块,用于通过本设备与第一设备之间的通信连接,从第一设备接收操作对象;The communication module is configured to receive an operation object from the first device through the communication connection between the device and the first device;

所述指令识别模块,用于对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The instruction recognition module is configured to perform an editing operation on the operation object, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

对应于上述适用于编辑操作的接收方的方法,本申请还提供了一种适用于编辑操作的发起方的方法,包括以下步骤:Corresponding to the above-mentioned method applicable to the receiver of the edit operation, this application also provides a method applicable to the initiator of the edit operation, including the following steps:

第一设备检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;The first device detects the operation object selected by the user; the operation object is used to perform an editing operation, wherein the editing operation includes: saving the operation object into the clipboard, or/and inputting the operation object into the current Edit box;

通过第一设备与第二设备之间的通信连接,第一设备将所述操作对象发送给第二设备。Through the communication connection between the first device and the second device, the first device sends the operation object to the second device.

较佳地,所述第一设备检测用户选择的操作对象时,在剪切板、当前编辑框、文件夹或应用程序显示界面选择;Preferably, when the first device detects the operation object selected by the user, select it on the clipboard, current edit box, folder or application display interface;

所述操作对象包括文本类型的对象、图片类型的对象、音频类型的对象或视频类型的对象。The operation object includes a text type object, a picture type object, an audio type object or a video type object.

较佳地,该方法进一步包括:第一设备检测用户选择的编辑指令,所述编辑指令用于指示对所述操作对象进行编辑操作。Preferably, the method further includes: the first device detects an edit instruction selected by the user, and the edit instruction is used to instruct to perform an edit operation on the operation object.

较佳地,如果所述编辑指令为剪切到远端,该方法进一步包括:所述第一设备对所述操作对象进行剪切。Preferably, if the editing instruction is to cut to the remote end, the method further includes: the first device cuts the operation object.

对应于上述适用于编辑操作的发起方的方法,本申请还提供了一种在设备间实现编辑操作的设备,包括:检测模块和通信模块,其中:Corresponding to the above-mentioned method applicable to the initiator of the editing operation, the present application also provides a device for implementing the editing operation between devices, including: a detection module and a communication module, wherein:

所述检测模块,用于检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;The detection module is configured to detect an operation object selected by a user; the operation object is used to perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard, or/and saving the operation object Input the operation object into the current edit box;

所述通信模块,用于通过本设备与第二设备之间的通信连接,将所述操作对象发送给第二设备。The communication module is configured to send the operation object to the second device through the communication connection between the device and the second device.

由上述技术方案可见,本申请提供的上述在设备间实现编辑操作的方法和设备,通过检测用户选择的操作对象,并通过本设备与其他设备之间的通信连接将该操作对象发送给其他设备,能够实现将本设备中的操作对象发送给其他设备,由其他设备将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框等编辑操作,从而在不同的设备间实现了便捷的编辑操作。It can be seen from the above technical solution that the above-mentioned method and device for implementing editing operations between devices provided by the present application detect the operation object selected by the user and send the operation object to other devices through the communication connection between the device and other devices , it is possible to send the operation object in this device to other devices, and the other device saves the operation object to the clipboard, or/and enters the operation object into the current edit box and other editing operations, so that in different Convenient editing operations are realized between devices.

本申请还提供了一种在设备间实现编辑操作的方法,适用于编辑操作的发起方,包括以下步骤:The present application also provides a method for implementing an editing operation between devices, which is suitable for the initiator of the editing operation, and includes the following steps:

通过第一设备与第二设备之间的通信连接,第一设备向第二设备发送请求,并从第二设备接收对应的操作对象;Through the communication connection between the first device and the second device, the first device sends a request to the second device, and receives a corresponding operation object from the second device;

第一设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The first device performs an editing operation on the operation object, where the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

较佳地,第一设备对所述操作对象进行编辑操作包括:Preferably, the editing operation performed by the first device on the operation object includes:

判断当前是否存在有焦点的编辑框,如果存在,将所述操作对象输入所述编辑框的光标所在位置;Judging whether there is currently an edit box with focus, and if so, inputting the operation object into the cursor position of the edit box;

否则,将所述操作对象保存到剪切板中,或者,判断所述操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将所述操作对象输入所述目标应用程序的编辑框中。Otherwise, save the operation object into the clipboard, or judge whether the operation object has an identifier for specifying the target application program, if so, open the corresponding target application program, and input the operation object into the in the edit box of the target application.

较佳地,该方法进一步包括:第一设备检测用户选择的编辑指令;Preferably, the method further includes: the first device detecting the editing instruction selected by the user;

所述第一设备向第二设备发送请求包括:第一设备根据所述编辑指令向第二设备发送请求;The first device sending the request to the second device includes: the first device sending the request to the second device according to the editing instruction;

所述第一设备对所述操作对象进行编辑操作包括:第一设备根据所述编辑指令对所述操作对象进行相应的编辑操作。Performing an editing operation on the operation object by the first device includes: performing a corresponding editing operation on the operation object by the first device according to the editing instruction.

较佳地,所述第一设备根据所述编辑指令向第二设备发送请求包括:Preferably, the first device sending a request to the second device according to the editing instruction includes:

第一设备从第二设备获取操作对象列表,所述操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息;The first device acquires an operation object list from the second device, and the operation object list includes brief information of operation objects in the second device that can be edited by other devices;

第一设备检测用户在所述操作对象列表中选择的操作对象的简要信息;The first device detects the brief information of the operation object selected by the user in the operation object list;

第一设备向第二设备发送请求,请求获取用户所选择的简要信息对应的操作对象。The first device sends a request to the second device, requesting to acquire the operation object corresponding to the brief information selected by the user.

较佳地,所述第一设备根据所述编辑指令向第二设备发送请求包括:第一设备将用户所选择的编辑指令发送给第二设备;Preferably, the first device sending a request to the second device according to the editing instruction includes: the first device sending the editing instruction selected by the user to the second device;

第一设备从第二设备接收的操作对象为:第二设备将所述编辑指令通知用户之后,用户所选择的操作对象。The operation object received by the first device from the second device is: the operation object selected by the user after the second device notifies the user of the editing instruction.

较佳地,如果所述编辑指令为从远端复制或从远端剪切,所述第一设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象保存到剪切板中,或者将所述操作对象输入当前编辑框的光标所在位置;Preferably, if the editing instruction is to copy from the remote end or cut from the remote end, performing a corresponding editing operation on the operation object by the first device according to the editing instruction includes: saving the operation object to clipboard, or input the operation object into the cursor position of the current edit box;

如果所述编辑指令为从远端粘贴,所述第一设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is to be pasted from a remote end, the first device performing a corresponding editing operation on the operation object according to the editing instruction includes: inputting the operation object into the cursor position of the current edit box, or inputting the operation object Save the operation object to the clipboard and input the operation object to the cursor position of the current edit box.

对应于上述适用于编辑操作的发起端的方法,本申请还提供了一种在设备间实现编辑操作的设备,包括:通信模块和编辑模块,其中:Corresponding to the above-mentioned method applicable to the initiator of editing operations, the present application also provides a device for implementing editing operations between devices, including: a communication module and an editing module, wherein:

所述通信模块,用于通过本设备与第二设备之间的通信连接,向第二设备发送请求,并从第二设备接收对应的操作对象;The communication module is configured to send a request to the second device through the communication connection between the device and the second device, and receive a corresponding operation object from the second device;

所述编辑模块,用于对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The editing module is configured to perform an editing operation on the operation object, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

对应于上述适用于编辑操作的发起方的方法,本申请还提供了一种适用于编辑操作的接收方的方法,包括以下步骤:Corresponding to the above-mentioned method applicable to the initiator of the edit operation, the present application also provides a method applicable to the receiver of the edit operation, including the following steps:

通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收请求;The second device receives a request from the first device through the communication connection between the first device and the second device;

第二设备将第一设备所请求的操作对象发送给第一设备进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The second device sends the operation object requested by the first device to the first device to perform an editing operation, wherein the editing operation includes: saving the operation object into the clipboard, or/and inputting the operation object The current edit box.

较佳地,所述操作对象为对应于第一设备上的编辑指令的操作对象。Preferably, the operation object is an operation object corresponding to an editing instruction on the first device.

较佳地,所述第二设备从第一设备接收请求包括:第二设备将操作对象列表发送给第一设备,所述操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息;第二设备从第一设备接收请求,所述请求用于获取所述操作对象列表中的操作对象;Preferably, the second device receiving the request from the first device includes: the second device sends an operation object list to the first device, and the operation object list includes the operation objects in the second device that can be edited by other devices brief information; the second device receives a request from the first device, and the request is used to obtain an operation object in the operation object list;

所述第二设备将第一设备所请求的对应于第一设备上的编辑指令的操作对象发送给第一设备包括:第二设备将第一设备所请求的操作对象发送给第一设备。The sending, by the second device, the operation object corresponding to the editing instruction on the first device requested by the first device to the first device includes: the second device sending the operation object requested by the first device to the first device.

较佳地,所述第二设备从第一设备接收请求包括:第二设备从第一设备接收编辑指令;Preferably, the second device receiving the request from the first device includes: the second device receiving an editing instruction from the first device;

该方法进一步包括:第二设备根据所述编辑指令通知用户选择操作对象,并检测用户所选择的操作对象;The method further includes: the second device notifies the user to select an operation object according to the editing instruction, and detects the operation object selected by the user;

所述第二设备将第一设备所请求的对应于第一设备上的编辑指令的操作对象发送给第一设备包括:第二设备将检测到的用户所选择的操作对象发送给第一设备。The sending, by the second device, the operation object corresponding to the editing instruction on the first device requested by the first device to the first device includes: the second device sending the detected operation object selected by the user to the first device.

较佳地,如果所述编辑指令为从远端剪切,该方法进一步包括:Preferably, if the editing instruction is to cut from the far end, the method further includes:

所述第二设备授权所述第一设备对所述操作对象进行剪切操作,所述第二设备对所述操作对象进行剪切。The second device authorizes the first device to perform a cutting operation on the operation object, and the second device performs cutting on the operation object.

对应于上述适用于编辑操作的接收方的方法,本申请还提供了一种在设备间实现编辑操作的设备,包括:通信模块和指令识别模块,其中:Corresponding to the above-mentioned method applicable to the recipient of the editing operation, the present application also provides a device for implementing editing operations between devices, including: a communication module and an instruction recognition module, wherein:

所述通信模块,用于通过本设备与第一设备之间的通信连接,从第一设备接收请求;The communication module is configured to receive a request from the first device through the communication connection between the device and the first device;

所述指令识别模块,用于将第一设备所请求的操作对象通过所述通信模块发送给第一设备进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The instruction recognition module is configured to send the operation object requested by the first device to the first device through the communication module to perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard , or/and input the operation object into the current edit box.

由上述技术方案可见,本申请提供的上述在设备间实现编辑操作的方法和设备,通过本设备与其他设备之间的通信连接接收其他设备发送的操作对象,然后对操作对象进行相应的编辑操作,能够实现从其他设备获取操作对象,并在本设备端将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框等编辑操作,从而在不同的设备间实现了便捷的编辑操作。It can be seen from the above technical solution that the above-mentioned method and device for implementing editing operations between devices provided by this application receive the operation objects sent by other devices through the communication connection between this device and other devices, and then perform corresponding editing operations on the operation objects , can realize the acquisition of operation objects from other devices, and save the operation objects in the clipboard on the local device side, or/and input the operation objects into the current edit box and other editing operations, so as to realize the operation between different devices Convenient editing operations.

附图说明Description of drawings

图1为本申请在两个设备间进行编辑操作的示意图;Fig. 1 is the schematic diagram that this application carries out editing operation between two devices;

图2为本申请在多个设备间进行编辑操作的示意图;Fig. 2 is a schematic diagram of editing operations between multiple devices in the present application;

图3为本申请第一较佳在设备间实现编辑操作的方法示意图;FIG. 3 is a schematic diagram of the first preferred method of implementing editing operations between devices in the present application;

图4A为本申请第一较佳方法中的第一设备的组成结构示意图;Fig. 4A is a schematic diagram of the composition and structure of the first device in the first preferred method of the present application;

图4B为本申请第一较佳方法中的第二设备的组成结构示意图;Fig. 4B is a schematic diagram of the composition and structure of the second device in the first preferred method of the present application;

图5为本申请第二较佳在设备间实现编辑操作的方法示意图;FIG. 5 is a schematic diagram of a second preferred method for implementing editing operations between devices in the present application;

图6A为本申请第二较佳方法中的第一设备的组成结构示意图;FIG. 6A is a schematic diagram of the composition and structure of the first device in the second preferred method of the present application;

图6B为本申请第二较佳方法中的第二设备的组成结构示意图;Fig. 6B is a schematic diagram of the composition and structure of the second device in the second preferred method of the present application;

图7为本申请实施例一中一较佳设备的组成结构示意图;Figure 7 is a schematic diagram of the composition and structure of a preferred device in Embodiment 1 of the present application;

图8为本申请实施例二在两个设备间实现复制到远端的示意图;FIG. 8 is a schematic diagram of implementing replication to the remote end between two devices in Embodiment 2 of the present application;

图9为本申请实施例三在两个设备间实现从远端复制的示意图;FIG. 9 is a schematic diagram of remote copying between two devices in Embodiment 3 of the present application;

图10为本申请实施例四在两个设备间实现粘贴到远端的示意图;Fig. 10 is a schematic diagram of realizing pasting to the remote end between two devices according to Embodiment 4 of the present application;

图11为本申请实施例五在两个设备间实现从远端粘贴的示意图;Fig. 11 is a schematic diagram of realizing paste from the far end between two devices according to Embodiment 5 of the present application;

图12为本申请实施例六在两个设备间实现剪切到远端的示意图;Fig. 12 is a schematic diagram of realizing cutting to the distal end between two devices according to Embodiment 6 of the present application;

图13为本申请实施例七在两个设备间实现从远端剪切的示意图。Fig. 13 is a schematic diagram of realizing cutting from the distal end between two devices according to Embodiment 7 of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案及优点更加清楚明白,以下参照附图并举实施例,对本申请作进一步详细说明。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and examples.

本申请提供了一种利用Wi-Fi、蓝牙、NFC、声波等无线传输技术或有线传输技术实现两个或多个设备间的编辑操作的技术方案。图1为本申请在两个设备间进行编辑操作的示意图。图2为本申请在多个设备间进行编辑操作的示意图。本申请中,编辑操作的操作对象可以是各种格式的文本、图片、音视频等内容。The present application provides a technical solution for implementing editing operations between two or more devices by using wireless or wired transmission technologies such as Wi-Fi, Bluetooth, NFC, and sound waves. FIG. 1 is a schematic diagram of editing operations between two devices in the present application. FIG. 2 is a schematic diagram of editing operations between multiple devices in the present application. In this application, the operation objects of the editing operation may be texts, pictures, audio and video in various formats, and so on.

本申请中,可以用编辑指令指示对操作对象进行编辑操作,其中,所述编辑操作包括:将操作对象保存到剪切板中,或/和将操作对象输入当前编辑框。基于此,本申请提出几种较常用的编辑指令,包括:复制到远端、粘贴到远端、剪切到远端、从远端复制、从远端粘贴和从远端剪切。其中:In this application, an editing instruction may be used to instruct an editing operation on an operation object, wherein the editing operation includes: saving the operation object to a clipboard, or/and inputting the operation object into a current edit box. Based on this, this application proposes several commonly used editing instructions, including: copy to remote, paste to remote, cut to remote, copy from remote, paste from remote and cut from remote. in:

复制到远端、粘贴到远端和剪切到远端是将本设备端的操作对象发送给其他设备进行相应的编辑操作,即:将本设备端的操作对象发送给其他设备,由该其他设备将操作对象保存到该其他设备的剪切板中,或/和将操作对象输入该其他设备的当前编辑框中;Copy to remote, paste to remote and cut to remote are to send the operation object on this device to other devices for corresponding editing operations, that is: send the operation object on this device to other devices, and the other device will Save the operation object to the clipboard of the other device, or/and input the operation object into the current edit box of the other device;

而从远端复制、从远端粘贴和从远端剪切是从其他设备获取操作对象,并在本设备端进行相应的编辑操作,即:从其他设备获取操作对象,并将获取到的操作对象保存到本设备的剪切板中,或/和将操作对象输入本设备的当前编辑框中。However, copying from the remote end, pasting from the remote end, and cutting from the remote end are to obtain the operation object from other devices, and perform corresponding editing operations on the device side, that is: obtain the operation object from other devices, and use the obtained operation object Save the object to the clipboard of the device, or/and input the operation object into the current edit box of the device.

下面结合附图对上述两类编辑操作分别进行详细说明。The above two types of editing operations will be described in detail below in conjunction with the accompanying drawings.

图3为本申请第一较佳在设备间实现编辑操作的方法示意图,该方法包括:Fig. 3 is a schematic diagram of the first preferred method of implementing editing operations between devices in the present application, the method comprising:

步骤301:第一设备检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。Step 301: The first device detects the operation object selected by the user; the operation object is used to perform an editing operation, wherein the editing operation includes: saving the operation object to the clipboard, or/and saving the operation object Object input to the current edit box.

这里,可以从剪切板、当前编辑框、文件夹或应用程序显示界面中选择操作对象。例如:可以在网页、电子书等各种环境下选择操作对象。Here, the operation object can be selected from the clipboard, current edit box, folder or application display interface. For example: operation objects can be selected in various environments such as web pages and e-books.

本步骤中,第一设备可以进一步检测用户选择的编辑指令,编辑指令用于指示对操作对象进行编辑操作。较佳地,所述编辑指令可以包括以下指令中的至少一个:复制到远端、粘贴到远端、剪切到远端。In this step, the first device may further detect an edit instruction selected by the user, where the edit instruction is used to instruct to perform an edit operation on the operation object. Preferably, the editing instruction may include at least one of the following instructions: copy to remote, paste to remote, and cut to remote.

步骤302:通过第一设备与第二设备之间的通信连接,第一设备将所述操作对象发送给第二设备。Step 302: Through the communication connection between the first device and the second device, the first device sends the operation object to the second device.

如果在步骤301中第一设备检测到了编辑指令,那么,本步骤中,第一设备可以进一步将编辑指令也发送给第二设备。If the editing instruction is detected by the first device in step 301, then, in this step, the first device may further send the editing instruction to the second device.

本申请各实施例中,设备之间的通信连接可以包括多种方式,例如,无线连接,有线连接,其中,无线连接可以是基于蓝牙、WI-FI,NFC等各种无线通信方式,此处不再一一列举。In each embodiment of the present application, the communication connection between devices may include multiple methods, for example, wireless connection, wired connection, wherein the wireless connection may be based on various wireless communication methods such as Bluetooth, WI-FI, NFC, etc., here No longer list them one by one.

在具体实现时,第一设备可以在检测到用户的编辑指令后,与第二设备建立通信连接,并将操作对象和编辑指令发送给第二设备。如果第一设备和第二设备之间已经存在通信连接,第一设备也可以通过两个设备间已有的通信连接将操作对象和编辑指令发送给第二设备。During specific implementation, the first device may establish a communication connection with the second device after detecting the user's editing instruction, and send the operation object and the editing instruction to the second device. If there is already a communication connection between the first device and the second device, the first device may also send the operation object and the editing instruction to the second device through the existing communication connection between the two devices.

这里,如果编辑指令为剪切到远端,那么,第一设备需要进一步对该操作对象进行剪切。Here, if the editing instruction is to cut to the remote end, then the first device needs to further cut the operation object.

步骤303:第二设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。Step 303: The second device performs an editing operation on the operation object, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

第二设备收到操作对象后,可以按照默认的编辑操作方式对操作对象进行处理,也可以按照随机选择的编辑操作方式对操作对象进行处理,其中,编辑操作方式可以包括将操作对象保存到剪切板中,或/和将操作对象输入当前编辑框。After receiving the operation object, the second device may process the operation object according to the default editing operation mode, or may process the operation object according to a randomly selected editing operation mode, wherein the editing operation mode may include saving the operation object to a clipboard. In the cutting board, or/and input the operation object into the current edit box.

第二设备收到操作对象后,还可以按照以下检测焦点的方式对操作对象进行处理:After the second device receives the operation object, it can also process the operation object in the following way of detecting focus:

首先判断当前是否存在有焦点的编辑框,如果存在,则将操作对象输入该编辑框的光标所在位置;First judge whether there is currently an edit box with focus, and if so, input the operation object to the cursor position of the edit box;

否则,可以将该操作对象保存到剪切板中,进一步地,还可以通知用户有操作对象被保存到剪切板中,后续再根据用户的指令执行相应的操作,或者,可以判断该操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将该操作对象输入目标应用程序的编辑框中(该过程一般包括打开目标应用程序的步骤)。例如:假设操作对象对应的目标应用程序被标识为短信,那么,收到操作对象后可以新建短信,并将操作对象的内容输入短信编辑框中。又例如:假设操作对象为URL地址,且对应的目标应用程序被标识为浏览器,则打开浏览器,将操作对象输入浏览器的地址栏并打开相应的网页。Otherwise, the operation object can be saved to the clipboard, and further, the user can be notified that the operation object is saved in the clipboard, and then the corresponding operation can be performed according to the user's instruction, or the operation object can be judged Whether there is an identifier for specifying the target application, if so, open the corresponding target application, and input the operation object into the edit box of the target application (this process generally includes the step of opening the target application). For example, assuming that the target application program corresponding to the operation object is identified as a text message, then, after receiving the operation object, a new text message can be created, and the content of the operation object can be input into the text message edit box. Another example: assume that the operation object is a URL address, and the corresponding target application program is identified as a browser, then open the browser, input the operation object into the address bar of the browser and open the corresponding webpage.

如果第二设备从第一设备还接收到了编辑指令,那么,本步骤中,第二设备可以根据该编辑指令对操作对象进行相应的编辑操作。If the second device also receives an editing instruction from the first device, then in this step, the second device may perform a corresponding editing operation on the operation object according to the editing instruction.

以编辑指令复制到远端、粘贴到远端、剪切到远端为例,根据用户在第一设备所选择的不同的编辑指令,第二设备对操作对象执行的操作也可以不相同,具体而言:Take editing commands copy to remote, paste to remote, and cut to remote as examples. According to the different editing commands selected by the user on the first device, the operations performed by the second device on the operation object may also be different. In terms of:

如果编辑指令为复制到远端或剪切到远端,那么,第二设备收到操作对象后,可以根据该编辑指令将该操作对象保存到剪切板中,进一步地,还可以通知用户有操作对象被保存到剪切板中,后续,可以根据用户的指令执行相应的操作;或者,可以将所述操作对象输入当前编辑框的光标所在位置;If the editing instruction is to copy to the remote end or cut to the remote end, then, after the second device receives the operation object, it can save the operation object in the clipboard according to the editing instruction, and further, it can also notify the user that there is The operation object is saved to the clipboard, and subsequently, the corresponding operation can be performed according to the user's instruction; or, the operation object can be input into the cursor position of the current edit box;

如果编辑指令为粘贴到远端,那么,第二设备可以将操作对象输入当前编辑框的光标所在位置,或将操作对象保存到剪切板并将操作对象输入当前编辑框的光标所在位置。If the editing instruction is to paste to the remote end, then the second device can input the operation object to the cursor position of the current edit box, or save the operation object to the clipboard and input the operation object to the cursor position of the current edit box.

图3所示方法中,既包含了编辑操作发起方的操作,也包含了编辑操作接收方的操作,下面分别从单侧描述编辑操作发起方和接收方所执行的操作:The method shown in Figure 3 includes both the operations of the edit operation initiator and the edit operation receiver. The following describes the operations performed by the edit operation initiator and receiver from one side:

对于编辑操作的发起方,即第一设备,执行的操作包括:第一设备检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;通过第一设备与第二设备之间的通信连接,第一设备将所述操作对象发送给第二设备。For the initiator of the editing operation, that is, the first device, the operations performed include: the first device detects the operation object selected by the user; the operation object is used to perform the editing operation, wherein the editing operation includes: converting the operation object Save to the clipboard, or/and input the operation object into the current edit box; through the communication connection between the first device and the second device, the first device sends the operation object to the second device.

对于编辑操作的接收方,即第二设备,执行的操作包括:通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收操作对象;第二设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。For the recipient of the editing operation, that is, the second device, the operations performed include: the second device receives the operation object from the first device through the communication connection between the first device and the second device; Perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

对应于上述方法中的第一设备,本申请公开了一种如图4A所示的在设备间实现编辑操作的设备,该设备至少包括检测模块410和通信模块420,其中:Corresponding to the first device in the above method, the present application discloses a device for implementing editing operations between devices as shown in FIG. 4A , the device includes at least a detection module 410 and a communication module 420, wherein:

检测模块410,用于检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;The detection module 410 is configured to detect the operation object selected by the user; the operation object is used to perform an editing operation, wherein the editing operation includes: saving the operation object into the clipboard, or/and saving the operation object Object input to the current edit box;

通信模块420,用于通过本设备与第二设备之间的通信连接,将所述操作对象发送给第二设备。The communication module 420 is configured to send the operation object to the second device through the communication connection between the device and the second device.

较佳地,所述检测模块410在检测用户选择的操作对象时,在剪切板、当前编辑框、文件夹或应用程序显示界面选择;所述操作对象包括文本类型的对象、图片类型的对象、音频类型的对象或视频类型的对象。Preferably, when the detection module 410 detects the operation object selected by the user, it is selected in the clipboard, the current edit box, the folder or the application display interface; the operation object includes a text type object, an image type object , an object of type Audio, or an object of type Video.

较佳地,所述检测模块进一步用于检测用户选择的编辑指令,所述编辑指令用于指示对所述操作对象进行编辑操作;Preferably, the detection module is further used to detect an editing instruction selected by a user, and the editing instruction is used to instruct to perform an editing operation on the operation object;

所述通信模块进一步用于将所述编辑指令发送给第二设备。The communication module is further configured to send the editing instruction to the second device.

如果所述编辑指令为剪切到远端,所述第一设备中进一步包括编辑模块,用于对所述操作对象进行剪切。If the editing instruction is to cut to the remote end, the first device further includes an editing module configured to cut the operation object.

对应于上述方法中的第二设备,本申请公开了一种如图4B所示的在设备间实现编辑操作的设备,该设备至少包括通信模块430和指令识别模块440,其中:Corresponding to the second device in the above method, this application discloses a device for implementing editing operations between devices as shown in FIG. 4B , the device includes at least a communication module 430 and an instruction recognition module 440, wherein:

通信模块430,用于通过本设备与第一设备之间的通信连接,从第一设备接收操作对象;A communication module 430, configured to receive an operation object from the first device through the communication connection between the device and the first device;

指令识别模块440,用于对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The instruction recognition module 440 is configured to perform an editing operation on the operation object, wherein the editing operation includes: saving the operation object to a clipboard, or/and inputting the operation object into a current edit box.

较佳地,所述指令识别模块440还用于判断当前是否存在有焦点的编辑框,如果存在,将所述操作对象输入所述编辑框的光标所在位置;否则,将所述操作对象保存到剪切板中,或者,判断所述操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将所述操作对象输入所述目标应用程序的编辑框中。Preferably, the instruction recognition module 440 is also used to judge whether there is currently an edit box with focus, and if so, input the operation object into the cursor position of the edit box; otherwise, save the operation object to Alternatively, determine whether the operation object has an identifier for specifying the target application program, if so, open the corresponding target application program, and input the operation object into the edit box of the target application program.

较佳地,所述通信模块,进一步用于从第一设备接收编辑指令;Preferably, the communication module is further configured to receive editing instructions from the first device;

所述指令识别模块,进一步用于根据所述编辑指令对所述操作对象进行相应的编辑操作。The instruction recognition module is further configured to perform a corresponding editing operation on the operation object according to the editing instruction.

较佳地,如果所述编辑指令为复制到远端或剪切到远端,所述指令识别模块用于将所述操作对象保存到剪切板中,或将所述操作对象输入当前编辑框的光标所在位置;Preferably, if the editing instruction is to copy to the remote end or cut to the remote end, the instruction recognition module is used to save the operation object into the clipboard, or input the operation object into the current edit box The position of the cursor;

如果所述编辑指令为粘贴到远端,所述指令识别模块用于将所述操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is to paste to the remote end, the instruction recognition module is used to input the operation object into the cursor position of the current edit box, or save the operation object to the clipboard and input the operation object The cursor position of the current edit box.

图5为本申请第二较佳在设备间实现编辑操作的方法示意图,该方法包括:Fig. 5 is a schematic diagram of the second preferred method of implementing editing operations between devices in the present application, the method comprising:

步骤501:第一设备检测用户选择的编辑指令。Step 501: The first device detects the editing instruction selected by the user.

本步骤为可选步骤,本方法也可以直接从步骤502开始执行。This step is optional, and this method can also be executed directly from step 502.

较佳地,编辑指令可以包括以下指令中的至少一个:从远端复制、从远端粘贴、从远端剪切。可以在剪切板中发起从远端复制或从远端剪切的编辑指令,可以从某应用程序的编辑框发起从远端粘贴的编辑指令。对于从远端剪切,第一设备需获得第二设备的授权,才能对第二设备中的操作对象进行剪切操作。Preferably, the editing instruction may include at least one of the following instructions: copy from remote, paste from remote, and cut from remote. The editing command of copying or cutting from the remote end can be initiated in the clipboard, and the editing command of pasting from the remote end can be initiated from the edit box of an application program. For cutting from the remote end, the first device needs to obtain the authorization of the second device before it can perform the cutting operation on the operation object in the second device.

步骤502:通过第一设备与第二设备之间的通信连接,第一设备向第二设备发送请求,并从第二设备接收对应的操作对象。Step 502: Through the communication connection between the first device and the second device, the first device sends a request to the second device, and receives a corresponding operation object from the second device.

如果在步骤501中第一设备检测到了用户选择的编辑指令,那么,本步骤中,第一设备根据所述编辑指令向第二设备发送请求。If in step 501 the first device detects the editing instruction selected by the user, then in this step, the first device sends a request to the second device according to the editing instruction.

在本步骤之前,需要确定操作对象,为此,本申请提供了两种较佳的实现方式。Before this step, the operation object needs to be determined. For this, the present application provides two preferred implementation manners.

第一种较佳的实现方式:The first better implementation method:

第一设备从第二设备获取操作对象列表,该操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息;实际应用中,该操作对象列表可以为第二设备的剪切板;The first device obtains the operation object list from the second device, and the operation object list contains brief information on the operation objects in the second device that can be edited by other devices; plate;

第一设备检测用户在所述操作对象列表中选择的操作对象的简要信息;The first device detects the brief information of the operation object selected by the user in the operation object list;

通过第一设备与第二设备之间的通信连接,第一设备向第二设备请求获取用户所选择的简要信息对应的操作对象。Through the communication connection between the first device and the second device, the first device requests the second device to acquire the operation object corresponding to the brief information selected by the user.

该方式下,第二设备可以预先设置剪切板中对外开放的内容,由此得到第二设备的操作对象列表。操作对象列表中仅包含操作对象的简要信息,例如:对于文字内容可以是前10个字,对于图片可以是压缩后的图片,从而可以减少设备间的传输量,提高传输效率。In this way, the second device can preset the content in the clipboard that is open to the outside world, thereby obtaining the operation object list of the second device. The operation object list only contains the brief information of the operation object, for example, the first 10 characters for the text content, and the compressed image for the picture, so as to reduce the transmission amount between devices and improve the transmission efficiency.

第二种较佳的实现方式:The second better implementation method:

通过第一设备与第二设备之间的通信连接,第一设备将用户所选择的编辑指令发送给第二设备;Through the communication connection between the first device and the second device, the first device sends the editing instruction selected by the user to the second device;

第二设备通知用户选择操作对象,并在检测到用户选择的操作对象时,将用户所选择的操作对象发送给第一设备。The second device notifies the user to select the operation object, and when detecting the operation object selected by the user, sends the operation object selected by the user to the first device.

这种方式下,第二设备收到第一设备发送的编辑指令后,可以弹出剪切板,并由用户进行操作对象的选择。可以使用拖拽的方式,选择加确定的方式等进行操作对象的选择。In this way, after receiving the editing instruction sent by the first device, the second device can pop up the clipboard, and the user can select the operation object. The operation object can be selected by dragging, selecting and confirming.

如步骤302,第一设备可以在检测到用户的编辑指令后,与第二设备建立通信连接,并基于该通信连接与第二设备进行交互;也可以是基于第一设备与第二设备之间已有的通信连接,与第二设备进行交互。As in step 302, the first device may establish a communication connection with the second device after detecting the user's editing instruction, and interact with the second device based on the communication connection; Existing communication connection to interact with the second device.

步骤503:第一设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。Step 503: The first device performs an editing operation on the operation object, wherein the editing operation includes: saving the operation object to a clipboard, or/and inputting the operation object into a current edit box.

该步骤中,第一设备对操作对象进行编辑操作的处理原理,可以参考上述步骤303中第二设备对操作对象进行编辑操作的处理原理,例如,该第一设备可以按照默认的编辑操作方式对操作对象进行处理,也可以按照随机选择的编辑操作方式对操作对象进行处理,还可以按照检测焦点的方式对操作对象进行处理,此处不再详述。In this step, the processing principle of the editing operation performed by the first device on the operation object can refer to the processing principle of the editing operation performed by the second device on the operation object in step 303 above. The operation object is processed, and the operation object may also be processed according to a randomly selected editing operation mode, or the operation object may be processed according to a focus detection mode, which will not be described in detail here.

如果在步骤501中第一设备检测到了用户选择的编辑指令,那么,在本步骤中,第一设备可以根据该编辑指令对所述操作对象进行相应的编辑操作。If in step 501 the first device detects an editing instruction selected by the user, then in this step, the first device may perform a corresponding editing operation on the operation object according to the editing instruction.

本步骤中,根据用户所选择的不同的编辑指令,第一设备对操作对象执行的操作也不相同,具体而言:In this step, according to different editing instructions selected by the user, the first device performs different operations on the operation object, specifically:

如果编辑指令为从远端复制或从远端剪切,那么,第一设备收到操作对象后,将操作对象保存到剪切板中,进一步地,可以通知用户剪切板中增加了新的操作对象,后续,可以根据用户的指令执行相应的操作;或者,也可以将操作对象输入当前编辑框的光标所在位置;If the editing instruction is to copy from the remote end or cut from the remote end, then, after the first device receives the operation object, it saves the operation object in the clipboard, and further, it can notify the user that a new one has been added to the clipboard. The operation object, and subsequently, the corresponding operation can be performed according to the user's instruction; or, the operation object can also be entered into the cursor position of the current edit box;

如果编辑指令为从远端粘贴,第一设备收到操作对象后,将操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is to paste from the remote end, after the first device receives the operation object, it will input the operation object into the cursor position of the current edit box, or save the operation object to the clipboard and input the operation object into the current edit box. The cursor position of the box.

图5所示方法中,既包含了编辑操作发起方的操作,也包含了编辑操作接收方的操作,下面分别从单侧描述编辑操作发起方和接收方所执行的操作:The method shown in Figure 5 includes both the operations of the edit operation initiator and the edit operation receiver. The following describes the operations performed by the edit operation initiator and receiver from one side:

对于编辑操作的发起方,即第一设备,执行的操作包括:通过第一设备与第二设备之间的通信连接,第一设备向第二设备发送请求,并从第二设备接收对应的操作对象;第一设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。For the initiator of the editing operation, that is, the first device, the operations performed include: through the communication connection between the first device and the second device, the first device sends a request to the second device, and receives the corresponding operation from the second device An object; the first device performs an editing operation on the operation object, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

对于编辑操作的接收方,即第二设备,执行的操作包括:通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收请求;第二设备将第一设备所请求的操作对象发送给第一设备进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。For the recipient of the editing operation, that is, the second device, the operations performed include: the second device receives a request from the first device through the communication connection between the first device and the second device; The operation object is sent to the first device to perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

对应于图5所示方法中的第一设备,本申请公开了一种如图6A所示的在设备间实现编辑操作的设备,该设备至少包括:通信模块620和编辑模块630,其中:Corresponding to the first device in the method shown in FIG. 5 , this application discloses a device for implementing editing operations between devices as shown in FIG. 6A , the device at least includes: a communication module 620 and an editing module 630, wherein:

通信模块620,用于通过本设备与第二设备之间的通信连接,向第二设备发送请求,并从第二设备接收对应的操作对象;The communication module 620 is configured to send a request to the second device through the communication connection between the device and the second device, and receive a corresponding operation object from the second device;

编辑模块630,用于对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The editing module 630 is configured to perform an editing operation on the operation object, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box.

较佳地,编辑模块630还用于判断当前是否存在有焦点的编辑框,如果存在,将所述操作对象输入所述编辑框的光标所在位置;否则,将所述操作对象保存到剪切板中,或者,判断所述操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将所述操作对象输入所述目标应用程序的编辑框中。Preferably, the editing module 630 is also used to judge whether there is currently an edit box with focus, and if so, input the operation object into the cursor position of the edit box; otherwise, save the operation object to the clipboard Alternatively, determine whether the operation object has an identifier for specifying the target application program, and if so, open the corresponding target application program, and input the operation object into the edit box of the target application program.

较佳地,图6A所示设备中还可以进一步包括检测模块610;Preferably, the device shown in FIG. 6A may further include a detection module 610;

所述检测模块,用于检测用户选择的编辑指令;The detection module is used to detect the editing instruction selected by the user;

所述通信模块,还用于根据所述编辑指令向第二设备发送请求;The communication module is further configured to send a request to the second device according to the editing instruction;

所述编辑模块,还用于根据所述编辑指令对所述操作对象进行相应的编辑操作。The editing module is further configured to perform a corresponding editing operation on the operation object according to the editing instruction.

较佳地,所述通信模块用于从第二设备获取操作对象列表,所述操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息;Preferably, the communication module is used to obtain an operation object list from the second device, and the operation object list includes brief information of operation objects in the second device that can be edited by other devices;

所述检测模块,用于检测用户在所述操作对象列表中选择的操作对象的简要信息;The detection module is configured to detect the brief information of the operation object selected by the user in the operation object list;

所述通信模块,还用于向第二设备发送请求,请求获取用户所选择的简要信息对应的操作对象。The communication module is further configured to send a request to the second device, requesting to obtain the operation object corresponding to the brief information selected by the user.

较佳地,所述通信模块用于将用户所选择的编辑指令发送给第二设备,并接收第二设备将所述编辑指令通知用户之后,用户所选择的操作对象。Preferably, the communication module is configured to send the edit instruction selected by the user to the second device, and receive the operation object selected by the user after the second device notifies the user of the edit instruction.

较佳地,如果所述编辑指令为从远端复制或从远端剪切,所述编辑模块630用于将所述操作对象保存到剪切板中,或者将所述操作对象输入当前编辑框的光标所在位置;Preferably, if the editing instruction is to copy from the remote end or cut from the remote end, the editing module 630 is configured to save the operation object into the clipboard, or input the operation object into the current edit box The position of the cursor;

如果所述编辑指令为从远端粘贴,所述编辑模块630用于将所述操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is pasted from a remote end, the editing module 630 is configured to input the operation object into the cursor position of the current edit box, or save the operation object to the clipboard and input the operation object The cursor position of the current edit box.

对应于图5所示方法中的第二设备,本申请公开了一种如图6B所示的在设备间实现编辑操作的设备,该设备至少包括通信模块640和指令识别模块650,其中:Corresponding to the second device in the method shown in FIG. 5 , this application discloses a device for implementing editing operations between devices as shown in FIG. 6B , the device at least includes a communication module 640 and an instruction recognition module 650, wherein:

所述通信模块,用于通过本设备与第一设备之间的通信连接,从第一设备接收请求;The communication module is configured to receive a request from the first device through the communication connection between the device and the first device;

所述指令识别模块,用于将第一设备所请求的操作对象通过所述通信模块发送给第一设备进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The instruction recognition module is configured to send the operation object requested by the first device to the first device through the communication module to perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard , or/and input the operation object into the current edit box.

较佳地,所述操作对象为对应于第一设备上的编辑指令的操作对象。Preferably, the operation object is an operation object corresponding to an editing instruction on the first device.

较佳地,所述通信模块用于将操作对象列表发送给第一设备,所述操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息,并从第一设备接收请求,所述请求用于获取所述操作对象列表中的操作对象,并用于将第一设备所请求的操作对象发送给第一设备。Preferably, the communication module is configured to send an operation object list to the first device, the operation object list includes brief information of operation objects in the second device that can be edited by other devices, and receives a request from the first device , the request is used to obtain the operation object in the operation object list, and is used to send the operation object requested by the first device to the first device.

较佳地,所述通信模块用于从第一设备接收编辑指令;Preferably, the communication module is used to receive editing instructions from the first device;

所述指令识别模块用于根据所述编辑指令通知用户选择操作对象,并检测用户所选择的操作对象;The instruction recognition module is used to notify the user to select an operation object according to the editing instruction, and detect the operation object selected by the user;

所述通信模块还用于将检测到的用户所选择的操作对象发送给第一设备。The communication module is further configured to send the detected operation object selected by the user to the first device.

较佳地,如果所述编辑指令为从远端剪切,所述第二设备中进一步包括授权模块和编辑模块,所述授权模块用于授权所述第一设备对所述操作对象进行剪切操作,所述编辑模块用于对所述操作对象进行剪切。Preferably, if the editing instruction is to cut from the remote end, the second device further includes an authorization module and an editing module, and the authorization module is used to authorize the first device to cut the operation object operation, the editing module is used to cut the operation object.

本申请提供的技术可以实施在系统层面,也可以应用在输入法中,例如,用户下载了输入法就可以支持该功能。The technology provided by this application can be implemented at the system level, and can also be applied in the input method, for example, the user can support this function after downloading the input method.

下面通过几个较佳实施例对本申请技术方案进行进一步详细说明。The technical solution of the present application will be further described in detail through several preferred embodiments below.

实施例一:Embodiment one:

图7为本申请实施例一中一较佳设备的组成结构示意图。该设备700包括:剪切板模块710、编辑框模块720、界面通知模块730、输入模块740、指令识别模块750、对象管理模块760和通信模块770,各模块的功能分别说明如下:FIG. 7 is a schematic diagram of the composition and structure of a preferred device in Embodiment 1 of the present application. The device 700 includes: a clipboard module 710, an edit box module 720, an interface notification module 730, an input module 740, an instruction recognition module 750, an object management module 760, and a communication module 770. The functions of each module are described as follows:

剪切板模块710:用于存储设备中已复制的数据内容,此数据既可对内进行数据粘贴又可对外进行数据共享。对内数据粘贴指在单一设备中,剪切板的内容可以在多个应用程序之间粘贴。对外数据共享指:此设备剪切板的内容可以复制或输入其他设备的剪切板或编辑框模块区域中。Clipboard module 710: used to store copied data content in the device, this data can be pasted internally and shared externally. Internal data paste means that in a single device, the contents of the clipboard can be pasted between multiple applications. External data sharing means: the content of the clipboard of this device can be copied or imported into the clipboard or edit box module area of other devices.

编辑框模块720:为光标所在的编辑区域,可以接受文字及图片等其它信息输入的模块。Edit box module 720: the editing area where the cursor is located, a module that can accept input of other information such as text and pictures.

界面通知模块730:后台数据发送或接收完毕后,提示用户的模块。Interface notification module 730: a module that prompts the user after the background data is sent or received.

输入模块740:负责将接收到的数据输入到编辑框模块中。Input module 740: responsible for inputting the received data into the edit box module.

指令识别模块750:用于识别远程编辑指令,包括:1)复制到远端;2)从远端复制;3)粘贴到远端;4)从远端粘贴;5)剪切到远端;6)从远端剪切。Instruction identification module 750: used to identify remote editing instructions, including: 1) copy to remote; 2) copy from remote; 3) paste to remote; 4) paste from remote; 5) cut to remote; 6) Cut from the distal end.

对象管理模块760:用于管理远端设备。Object management module 760: for managing remote devices.

通信模块770:基于无线协议发送内容到远端设备;或者基于无线协议接收内容到本设备。此处,通信模块770可以是有线连接方式。Communication module 770: Send content to the remote device based on the wireless protocol; or receive content to the local device based on the wireless protocol. Here, the communication module 770 may be wired.

本申请后续实施例的描述将基于实施例一中的设备组成结构进行说明。The description of the subsequent embodiments of the present application will be described based on the composition and structure of the device in the first embodiment.

实施例二:Embodiment two:

本实施例描述在两个设备间实现“复制到远端”的具体实施例方式。参见图8,本实施例由设备A向设备B发起复制到远端的指令,实现将设备A中的操作对象复制到设备B中。该实施例中,可以将设备A视为服务端,设备B视为客户端。下面分别描述服务端和客户端的行为。This embodiment describes a specific implementation manner of implementing "copy to remote" between two devices. Referring to FIG. 8 , in this embodiment, device A initiates a command to copy to the remote end from device B, so as to copy the operation object in device A to device B. In this embodiment, device A may be regarded as a server, and device B may be regarded as a client. The following describes the behavior of the server and client respectively.

服务端A(也可称为发起端或发送端):用户可以选择编辑框模块的内容或者是剪切板模块的内容作为目标内容(即如前所述的操作对象),用户确定复制到远端,指令识别模块接收指令后,通知对象管理模块与远端设备(即设备B)建立连接,连接建立好后,编辑框模块或剪切板模块将目标内容发送到通信模块进行发送。Server A (also referred to as the initiator or sender): the user can select the content of the edit box module or the content of the clipboard module as the target content (that is, the operation object as mentioned above), and the user determines to copy to the remote After receiving the instruction, the instruction recognition module notifies the object management module to establish a connection with the remote device (that is, device B). After the connection is established, the edit box module or clipboard module sends the target content to the communication module for transmission.

客户端B(也可称为接收端):通信模块接收到数据后,通知本端的剪切板模块进行数据保存,剪切板数据保存完毕后,界面通知模块通知用户接收到数据。Client B (also called the receiving end): After the communication module receives the data, it notifies the local clipboard module to save the data. After the clipboard data is saved, the interface notification module notifies the user of the received data.

实施例三:Embodiment three:

本实施例描述在两个设备间实现“从远端复制”的具体实施例方式。参见图9,本实施例由设备A向设备B发起从远端复制的指令,实现将设备B中的操作对象复制到设备A。该实施例中,可以将设备B视为服务端,设备A视为客户端。下面分别描述服务端和客户端的行为。This embodiment describes a specific implementation manner of realizing "remote copy" between two devices. Referring to FIG. 9 , in this embodiment, device A initiates a remote copy instruction to device B, so as to copy the operation object in device B to device A. In this embodiment, device B may be regarded as a server, and device A may be regarded as a client. The following describes the behavior of the server and client respectively.

服务端B:考虑到数据安全性问题,B端可以设置剪切板中对外开放的内容,即可以被复制到远端的内容。Server B: Considering data security issues, B can set the content in the clipboard that is open to the outside world, that is, the content that can be copied to the remote end.

客户端A:在剪切板模块中,用户选择从远端复制,指令识别模块接收指令后,通知对象管理模块与远端设备建立连接。Client A: In the clipboard module, the user chooses to copy from the remote end, and the instruction recognition module notifies the object management module to establish a connection with the remote device after receiving the instruction.

此后A和B之间的数据交换可分为两种模式:Thereafter, the data exchange between A and B can be divided into two modes:

模式一:数据连接建立后,A接收B端可开放内容的简略信息,为减少传输量,提高传输效率,此处B可以仅将部分内容传输给A而并非实际全部内容。例如:对于文字内容可以是前10个字,对于图片可以是压缩后的图片。A接收到这些简略信息后在A端展示。用户在A端选择目标内容,指令识别模块接收指令后,通知B的通信模块发送完整数据到A,A的通信模块接收来自B的数据后,自动保存到A的剪切板模块。Mode 1: After the data connection is established, A receives the brief information about the content that B can open. In order to reduce the transmission volume and improve the transmission efficiency, B can only transmit part of the content to A instead of the actual content. For example: for the text content, it can be the first 10 words, and for the picture, it can be the compressed picture. After receiving the brief information, A displays it on the A side. The user selects the target content on the A side. After receiving the instruction, the instruction recognition module notifies the communication module of B to send the complete data to A. After the communication module of A receives the data from B, it automatically saves it to the clipboard module of A.

模式二:数据连接建立后,B端的剪切板自动弹出,用户从B端进行目标内容确定,形式可以是拖拽方式或选择加确定方式等,指令识别模块识别指令后,通知通信模块将目标内容发送给A。A的接收模块接收到内容后,自动存入A端剪切板。Mode 2: After the data connection is established, the clipboard on the B-side will pop up automatically, and the user can determine the target content from the B-side, in the form of dragging or selecting and confirming, etc. After the command recognition module recognizes the command, it notifies the communication module to set the target content The content is sent to A. After the receiving module of A receives the content, it is automatically stored in the clipboard of A.

实施例四:Embodiment four:

本实施例描述在两个设备间实现“粘贴到远端”的具体实施例方式。参见图10,本实施例由设备A向设备B发起粘贴到远端的指令,实现将设备A中的操作对象输入设备B。该实施例中,可以将设备A视为服务端,设备B视为客户端。下面分别描述服务端和客户端的行为。This embodiment describes a specific embodiment of implementing "paste to remote" between two devices. Referring to FIG. 10 , in this embodiment, device A initiates an instruction to paste to the remote end from device B, so as to input the operation object in device A into device B. In this embodiment, device A may be regarded as a server, and device B may be regarded as a client. The following describes the behavior of the server and client respectively.

服务端A:用户可以选择编辑框模块的内容或者是剪切板模块的内容作为目标内容,用户确定粘贴到远端,指令识别模块接收指令后,通知对象管理模块与远端设备建立连接,连接建立好后,通信模块从编辑框模块或剪切板模块中获取目标内容进行传输。Server A: The user can select the content of the edit box module or the content of the clipboard module as the target content, and the user confirms to paste it to the remote end. After receiving the instruction, the instruction recognition module notifies the object management module to establish a connection with the remote device. After the establishment, the communication module obtains the target content from the edit box module or the clipboard module for transmission.

客户端B:通信模块接收到数据后,系统判断当前是否存在有焦点的编辑框,如果存在,输入模块负责将接收到的数据输入编辑框中。Client B: After the communication module receives the data, the system judges whether there is currently a focused edit box, and if so, the input module is responsible for inputting the received data into the edit box.

如果不存在有焦点的编辑框,可以有两种较佳的方案进行处理:If there is no focused edit box, there are two better solutions:

1、剪切板模块进行数据保存,剪切板数据保存完毕后,界面通知模块通知用户接收到数据。1. The clipboard module saves the data. After the clipboard data is saved, the interface notification module notifies the user that the data has been received.

2、判断接收到的数据是否存在标识指明目标应用程序,如果有,插入内容到目的地,例如:此数据如果标识为短信,则输入新建的短信中;如果为URL地址,则输入浏览器的地址栏并打开网页,否则,将内容保存到剪切板中。。2. Determine whether the received data has an identifier indicating the target application program. If so, insert the content to the destination. For example: if the data is identified as a text message, enter it into the newly created text message; if it is a URL address, enter the browser's address bar and open the web page, otherwise, save the content to the clipboard. .

实施例五:Embodiment five:

本实施例描述在两个设备间实现“从远端粘贴”的具体实施例方式。参见图11,本实施例由设备A向设备B发起从远端粘贴的指令,实现将设备B中的操作对象输入设备A。该实施例中,可以将设备B视为服务端,设备A视为客户端。下面分别描述服务端和客户端的行为。This embodiment describes a specific implementation manner of realizing "paste from a remote end" between two devices. Referring to FIG. 11 , in this embodiment, device A initiates an instruction to paste from the remote end to device B, so as to input the operation object in device B into device A. In this embodiment, device B may be regarded as a server, and device A may be regarded as a client. The following describes the behavior of the server and client respectively.

服务端B:考虑到数据安全性问题,B端可以设置剪切板中对外开放的内容。Server B: Considering data security issues, B can set the content open to the outside world in the clipboard.

客户端A:在编辑框模块中,用户选择从远端粘贴,指令识别模块接收指令后,通知对象管理模块与远端设备建立连接。Client A: In the edit box module, the user chooses to paste from the remote end, and the instruction recognition module notifies the object management module to establish a connection with the remote device after receiving the instruction.

此后A和B之间的数据交换可分为两种模式:Thereafter, the data exchange between A and B can be divided into two modes:

模式一:数据连接建立后,A接收B端可开放内容的简略信息,为减少传输量,提高传输效率,此处B可以仅将部分内容传输给A而并非实际全部内容。例如:对于文字内容可以是前10个字,对于图片可以是压缩后的图片。A接收到这些简略信息后在A端展示。用户在A端选择目标,指令识别模块通知B的通信模块发送完整数据到A,A的接收模块接收来自B的数据后,输入模块插入内容到编辑框光标所在位置。Mode 1: After the data connection is established, A receives the brief information about the content that B can open. In order to reduce the transmission volume and improve the transmission efficiency, B can only transmit part of the content to A instead of the actual content. For example: for the text content, it can be the first 10 words, and for the picture, it can be the compressed picture. After receiving the brief information, A displays it on the A side. The user selects the target on A, and the instruction recognition module notifies the communication module of B to send the complete data to A. After the receiving module of A receives the data from B, the input module inserts the content to the cursor position of the edit box.

模式二:数据连接建立后,B端的剪切板自动弹出,用户从B端进行目标内容确定,形式可以是拖拽方式或选择加确定方式等,指令识别模块识通知传输模块将目标内容发送给A。A的通信模块接收到内容后,输入模块插入内容到编辑框光标所在位置。Mode 2: After the data connection is established, the clipboard on the B-side will pop up automatically, and the user can determine the target content from the B-side, in the form of dragging or selecting and confirming, etc., and the instruction recognition module will notify the transmission module to send the target content to a. After the communication module of A receives the content, the input module inserts the content to the cursor position of the edit box.

实施例六:Embodiment six:

本实施例描述在两个设备间实现“剪切到远端”的具体实施例方式。参见图12,本实施例由设备A向设备B发起复制到远端的指令,实现将设备A中的操作对象复制到设备B中。该实施例中,可以将设备A视为服务端,设备B视为客户端。下面分别描述服务端和客户端的行为。This embodiment describes a specific implementation manner of realizing "cutting to the far end" between two devices. Referring to FIG. 12 , in this embodiment, device A initiates a command to copy to the remote end from device B, so as to copy the operation object in device A to device B. In this embodiment, device A may be regarded as a server, and device B may be regarded as a client. The following describes the behavior of the server and client respectively.

服务端A(也可称为发起端或发送端):用户可以选择编辑框模块的内容或者是剪切板模块的内容作为目标内容(即如前所述的操作对象),用户确定剪切到远端,指令识别模块接收指令后,通知对象管理模块与远端设备(即设备B)建立连接,连接建立好后,编辑框模块和剪切板模块将目标内容发送到通信模块进行发送。Server A (also referred to as the initiator or sender): the user can select the content of the edit box module or the content of the clipboard module as the target content (that is, the operation object as mentioned above), and the user decides to cut to At the remote end, after the instruction recognition module receives the instruction, it notifies the object management module to establish a connection with the remote device (that is, device B). After the connection is established, the edit box module and the clipboard module send the target content to the communication module for transmission.

客户端B(也可称为接收端):通信模块接收到数据后,通知本端的剪切板模块进行数据保存,剪切板数据保存完毕后,界面通知模块通知用户接收到数据。Client B (also called the receiving end): After the communication module receives the data, it notifies the local clipboard module to save the data. After the clipboard data is saved, the interface notification module notifies the user of the received data.

实施例七:Embodiment seven:

本实施例描述在两个设备间实现“从远端剪切”的具体实施例方式。参见图13,本实施例由设备A向设备B发起从远端剪切的指令,实现将设备B中的操作对象复制到设备A。该实施例中,可以将设备B视为服务端,设备A视为客户端。下面分别描述服务端和客户端的行为。This embodiment describes a specific implementation manner of realizing "cutting from the far end" between two devices. Referring to FIG. 13 , in this embodiment, device A initiates an instruction to cut from the remote end to device B, so as to copy the operation object in device B to device A. In this embodiment, device B may be regarded as a server, and device A may be regarded as a client. The following describes the behavior of the server and client respectively.

服务端B:考虑到数据安全性问题,B端可以设置剪切板中对外开放的内容,即可以被剪切到远端的内容,并对其他设备进行授权。Server B: Considering data security issues, B can set the content in the clipboard that is open to the outside world, that is, the content that can be cut to the remote end, and authorize other devices.

客户端A:在剪切板模块中,用户选择从远端剪切,指令识别模块接收指令后,通知对象管理模块与远端设备建立连接。如果B没有授权A剪切其剪切板中的开放内容,那么,B通知A无有效内容或超出授权范围,如果B授权A剪切其剪切板中的开放内容,此后A和B之间的数据交换可分为两种模式:Client A: In the clipboard module, the user chooses to cut from the remote end, and the instruction recognition module notifies the object management module to establish a connection with the remote device after receiving the instruction. If B does not authorize A to cut the open content in its clipboard, then B notifies A that there is no valid content or exceeds the scope of authorization. If B authorizes A to cut the open content in its clipboard, thereafter between A and B The data exchange can be divided into two modes:

模式一:数据连接建立后,A接收B端可开放内容的简略信息,为减少传输量,提高传输效率,此处B可以仅将部分内容传输给A而并非实际全部内容。例如:对于文字内容可以是前10个字,对于图片可以是压缩后的图片。A接收到这些简略信息后在A端展示。用户在A端选择目标内容,指令识别模块接收指令后,通知B的通信模块发送完整数据到A,A的通信模块接收来自B的数据后,自动保存到A的剪切板模块。Mode 1: After the data connection is established, A receives the brief information of the content that B can open. In order to reduce the transmission volume and improve the transmission efficiency, B can only transmit part of the content to A instead of the actual content. For example: for the text content, it can be the first 10 words, and for the picture, it can be the compressed picture. After receiving the brief information, A displays it on the A side. The user selects the target content on the A side, and the instruction recognition module notifies the communication module of B to send the complete data to A after receiving the instruction, and the communication module of A receives the data from B, and automatically saves it to the clipboard module of A.

模式二:数据连接建立后,B端的剪切板自动弹出,用户从B端进行目标内容确定,形式可以是拖拽方式或选择加确定方式等,指令识别模块识别指令后,通知通信模块将目标内容发送给A。A的接收模块接收到内容后,自动存入A端剪切板。Mode 2: After the data connection is established, the clipboard on the B-side will pop up automatically, and the user can determine the target content from the B-side in the form of dragging or selecting and confirming. The content is sent to A. After the receiving module of A receives the content, it is automatically stored in the clipboard of A.

本申请技术方案能够获得以下有益效果:The technical solution of the present application can obtain the following beneficial effects:

1)方便操作,两个设备或多个设备之间可以实现相互复制或粘贴或剪切等编辑操作;1) Easy to operate, editing operations such as copying, pasting or cutting can be realized between two devices or multiple devices;

2)能够保护用户隐私,剪切板中对外开发的内容可以设置;2) It can protect user privacy, and the content developed externally in the clipboard can be set;

3)不需要中间服务器,不需要生产中间文件;3) No intermediate server is required, no intermediate files need to be produced;

4)不产生费用,不依赖数据网络。4) There is no cost and no dependence on the data network.

以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred embodiment of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application should be included in the application. within the scope of protection.

Claims (19)

1.一种在设备间实现编辑操作的方法,其特征在于,包括:1. A method for implementing editing operations between devices, comprising: 通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收操作对象;第二设备对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;Through the communication connection between the first device and the second device, the second device receives the operation object from the first device; the second device performs an editing operation on the operation object, wherein the editing operation includes: converting the operation object Save to the clipboard, or/and input the operation object into the current edit box; 第二设备从第一设备接收编辑指令;the second device receives an editing instruction from the first device; 所述第二设备对所述操作对象进行编辑操作包括:所述第二设备根据所述编辑指令对所述操作对象进行相应的编辑操作。Performing an editing operation on the operation object by the second device includes: performing a corresponding editing operation on the operation object by the second device according to the editing instruction. 2.根据权利要求1所述的方法,其特征在于,所述第二设备对所述操作对象进行编辑操作包括:2. The method according to claim 1, wherein the editing operation performed by the second device on the operation object comprises: 判断当前是否存在有焦点的编辑框,如果存在,将所述操作对象输入所述编辑框的光标所在位置;Judging whether there is currently an edit box with focus, and if so, inputting the operation object into the cursor position of the edit box; 否则,将所述操作对象保存到剪切板中,或者,判断所述操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将所述操作对象输入所述目标应用程序的编辑框中。Otherwise, save the operation object into the clipboard, or judge whether the operation object has an identifier for specifying the target application program, if so, open the corresponding target application program, and input the operation object into the in the edit box of the target application. 3.根据权利要求1或2所述的方法,其特征在于:3. The method according to claim 1 or 2, characterized in that: 如果所述编辑指令为复制到远端或剪切到远端,所述第二设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象保存到剪切板中,或将所述操作对象输入当前编辑框的光标所在位置;If the editing instruction is to copy to the remote end or cut to the remote end, the second device performing a corresponding editing operation on the operation object according to the editing instruction includes: saving the operation object into a clipboard , or input the operation object into the cursor position of the current edit box; 如果所述编辑指令为粘贴到远端,所述第二设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is to paste to the remote end, the second device performing a corresponding editing operation on the operation object according to the editing instruction includes: inputting the operation object into the cursor position of the current edit box, or inputting the operation object Save the operation object to the clipboard and input the operation object to the cursor position of the current edit box. 4.一种在设备间实现编辑操作的设备,其特征在于,包括:通信模块和指令识别模块,其中:4. A device for implementing editing operations between devices, comprising: a communication module and an instruction recognition module, wherein: 所述通信模块,用于通过本设备与第一设备之间的通信连接,从第一设备接收操作对象,并用于从第一设备接收编辑指令;The communication module is configured to receive an operation object from the first device through a communication connection between the device and the first device, and to receive an editing instruction from the first device; 所述指令识别模块,用于对所述操作对象进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框,并用于根据所述编辑指令对所述操作对象进行相应的编辑操作。The instruction recognition module is configured to perform an editing operation on the operation object, wherein the editing operation includes: saving the operation object into a clipboard, or/and inputting the operation object into a current edit box, And it is used to perform a corresponding editing operation on the operation object according to the editing instruction. 5.一种在设备间实现编辑操作的方法,其特征在于,包括:5. A method for implementing editing operations between devices, comprising: 第一设备检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;The first device detects the operation object selected by the user; the operation object is used to perform an editing operation, wherein the editing operation includes: saving the operation object into the clipboard, or/and inputting the operation object into the current Edit box; 第一设备检测用户选择的编辑指令,所述编辑指令用于指示对所述操作对象进行编辑操作;The first device detects an edit instruction selected by the user, where the edit instruction is used to instruct to perform an edit operation on the operation object; 通过第一设备与第二设备之间的通信连接,第一设备将所述操作对象发送给第二设备。Through the communication connection between the first device and the second device, the first device sends the operation object to the second device. 6.根据权利要求5所述的方法,其特征在于:6. The method according to claim 5, characterized in that: 所述第一设备检测用户选择的操作对象时,在剪切板、当前编辑框、文件夹或应用程序显示界面选择;When the first device detects the operation object selected by the user, select it on the clipboard, current edit box, folder or application display interface; 所述操作对象包括文本类型的对象、图片类型的对象、音频类型的对象或视频类型的对象。The operation object includes a text type object, a picture type object, an audio type object or a video type object. 7.根据权利要求5或6所述的方法,其特征在于:7. The method according to claim 5 or 6, characterized in that: 如果所述编辑指令为剪切到远端,该方法进一步包括:所述第一设备对所述操作对象进行剪切。If the editing instruction is to cut to the remote end, the method further includes: the first device cuts the operation object. 8.一种在设备间实现编辑操作的设备,其特征在于,包括:检测模块和通信模块,其中:8. A device for implementing editing operations between devices, comprising: a detection module and a communication module, wherein: 所述检测模块,用于检测用户选择的操作对象;所述操作对象用于进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;并用于检测用户选择的编辑指令,所述编辑指令用于指示对所述操作对象进行编辑操作The detection module is configured to detect an operation object selected by a user; the operation object is used to perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard, or/and saving the operation object The operation object is input into the current edit box; and it is used to detect the edit instruction selected by the user, and the edit instruction is used to instruct the operation object to be edited 所述通信模块,用于通过本设备与第二设备之间的通信连接,将所述操作对象和编辑指令发送给第二设备。The communication module is configured to send the operation object and editing instructions to the second device through the communication connection between the device and the second device. 9.一种在设备间实现编辑操作的方法,其特征在于,包括:9. A method for implementing editing operations between devices, comprising: 第一设备检测用户选择的编辑指令;The first device detects an editing instruction selected by a user; 通过第一设备与第二设备之间的通信连接,第一设备根据所述编辑指令向第二设备发送请求,并从第二设备接收对应的操作对象;Through the communication connection between the first device and the second device, the first device sends a request to the second device according to the editing instruction, and receives a corresponding operation object from the second device; 第一设备根据所述编辑指令对所述操作对象进行相应的编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The first device performs a corresponding editing operation on the operation object according to the editing instruction, wherein the editing operation includes: saving the operation object in the clipboard, or/and inputting the operation object into the current editor frame. 10.根据权利要求9所述的方法,其特征在于,所述第一设备对所述操作对象进行编辑操作包括:10. The method according to claim 9, wherein the editing operation performed by the first device on the operation object comprises: 判断当前是否存在有焦点的编辑框,如果存在,将所述操作对象输入所述编辑框的光标所在位置;Judging whether there is currently an edit box with focus, and if so, inputting the operation object into the cursor position of the edit box; 否则,将所述操作对象保存到剪切板中,或者,判断所述操作对象是否有用于指明目标应用程序的标识,如果有,打开对应的目标应用程序,并将所述操作对象输入所述目标应用程序的编辑框中。Otherwise, save the operation object into the clipboard, or judge whether the operation object has an identifier for specifying the target application program, if so, open the corresponding target application program, and input the operation object into the in the edit box of the target application. 11.根据权利要求9或10所述的方法,其特征在于,所述第一设备根据所述编辑指令向第二设备发送请求包括:11. The method according to claim 9 or 10, wherein the first device sending a request to the second device according to the editing instruction comprises: 第一设备从第二设备获取操作对象列表,所述操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息;The first device acquires an operation object list from the second device, and the operation object list includes brief information of operation objects in the second device that can be edited by other devices; 第一设备检测用户在所述操作对象列表中选择的操作对象的简要信息;The first device detects the brief information of the operation object selected by the user in the operation object list; 第一设备向第二设备发送请求,请求获取用户所选择的简要信息对应的操作对象。The first device sends a request to the second device, requesting to acquire the operation object corresponding to the brief information selected by the user. 12.根据权利要求9或10所述的方法,其特征在于:12. The method according to claim 9 or 10, characterized in that: 所述第一设备根据所述编辑指令向第二设备发送请求包括:第一设备将用户所选择的编辑指令发送给第二设备;The first device sending a request to the second device according to the editing instruction includes: the first device sending the editing instruction selected by the user to the second device; 第一设备从第二设备接收的操作对象为:第二设备将所述编辑指令通知用户之后,用户所选择的操作对象。The operation object received by the first device from the second device is: the operation object selected by the user after the second device notifies the user of the editing instruction. 13.根据权利要求9或10所述的方法,其特征在于:13. The method according to claim 9 or 10, characterized in that: 如果所述编辑指令为从远端复制或从远端剪切,所述第一设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象保存到剪切板中,或者将所述操作对象输入当前编辑框的光标所在位置;If the editing instruction is to copy from the remote end or cut from the remote end, the first device performing a corresponding editing operation on the operation object according to the editing instruction includes: saving the operation object into a clipboard , or input the operation object into the cursor position of the current edit box; 如果所述编辑指令为从远端粘贴,所述第一设备根据所述编辑指令对所述操作对象进行相应的编辑操作包括:将所述操作对象输入当前编辑框的光标所在位置,或将所述操作对象保存到剪切板并将所述操作对象输入当前编辑框的光标所在位置。If the editing instruction is to be pasted from a remote end, the first device performing a corresponding editing operation on the operation object according to the editing instruction includes: inputting the operation object into the cursor position of the current edit box, or inputting the operation object Save the operation object to the clipboard and input the operation object to the cursor position of the current edit box. 14.一种在设备间实现编辑操作的设备,其特征在于,包括:检测模块、通信模块和编辑模块,其中:14. A device for implementing editing operations between devices, comprising: a detection module, a communication module, and an editing module, wherein: 所述检测模块,用于检测用户选择的编辑指令;The detection module is used to detect the editing instruction selected by the user; 所述通信模块,用于通过本设备与第二设备之间的通信连接,根据所述编辑指令向第二设备发送请求,并从第二设备接收对应的操作对象;The communication module is configured to send a request to the second device according to the editing instruction through the communication connection between the device and the second device, and receive a corresponding operation object from the second device; 所述编辑模块,用于根据所述编辑指令对所述操作对象进行相应的编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The editing module is configured to perform a corresponding editing operation on the operation object according to the editing instruction, wherein the editing operation includes: saving the operation object into a clipboard, or/and saving the operation object Object input to the current edit box. 15.一种在设备间实现编辑操作的方法,其特征在于,包括:15. A method for implementing editing operations between devices, comprising: 通过第一设备与第二设备之间的通信连接,第二设备从第一设备接收请求;The second device receives a request from the first device through the communication connection between the first device and the second device; 第二设备将第一设备所请求的操作对象发送给第一设备进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框;The second device sends the operation object requested by the first device to the first device to perform an editing operation, wherein the editing operation includes: saving the operation object into the clipboard, or/and inputting the operation object current edit box; 所述第二设备从第一设备接收请求包括:第二设备将操作对象列表发送给第一设备,所述操作对象列表中包含第二设备中可供其他设备编辑的操作对象的简要信息;第二设备从第一设备接收请求,所述请求用于获取所述操作对象列表中的操作对象;The second device receiving the request from the first device includes: the second device sends an operation object list to the first device, and the operation object list includes brief information of operation objects in the second device that can be edited by other devices; The second device receives a request from the first device, and the request is used to obtain an operation object in the operation object list; 所述第二设备将第一设备所请求的对应于第一设备上的编辑指令的操作对象发送给第一设备,包括:第二设备将第一设备所请求的操作对象发送给第一设备。The second device sending the operation object requested by the first device corresponding to the editing instruction on the first device to the first device includes: the second device sending the operation object requested by the first device to the first device. 16.根据权利要求15所述的方法,其特征在于:16. The method of claim 15, wherein: 所述操作对象为对应于第一设备上的编辑指令的操作对象。The operation object is an operation object corresponding to the editing instruction on the first device. 17.根据权利要求15或16所述的方法,其特征在于:17. The method according to claim 15 or 16, characterized in that: 所述第二设备从第一设备接收请求包括:第二设备从第一设备接收编辑指令;The second device receiving the request from the first device includes: the second device receiving an editing instruction from the first device; 该方法进一步包括:第二设备根据所述编辑指令通知用户选择操作对象,并检测用户所选择的操作对象;The method further includes: the second device notifies the user to select an operation object according to the editing instruction, and detects the operation object selected by the user; 所述第二设备将第一设备所请求的对应于第一设备上的编辑指令的操作对象发送给第一设备,包括:第二设备将检测到的用户所选择的操作对象发送给第一设备。The second device sending the operation object corresponding to the editing instruction on the first device requested by the first device to the first device includes: the second device sending the detected operation object selected by the user to the first device . 18.根据权利要求15或16所述的方法,其特征在于,如果所述编辑指令为从远端剪切,该方法进一步包括:18. The method according to claim 15 or 16, wherein if the editing instruction is to cut from the far end, the method further comprises: 所述第二设备授权所述第一设备对所述操作对象进行剪切操作,所述第二设备对所述操作对象进行剪切。The second device authorizes the first device to perform a cutting operation on the operation object, and the second device performs cutting on the operation object. 19.一种在设备间实现编辑操作的设备,其特征在于,包括:通信模块和指令识别模块,其中:19. A device for implementing editing operations between devices, comprising: a communication module and an instruction recognition module, wherein: 所述通信模块,用于通过本设备与第一设备之间的通信连接,从第一设备接收请求;并用于将操作对象列表发送给第一设备,所述操作对象列表中包含本设备中可供其他设备编辑的操作对象的简要信息,并从第一设备接收请求,所述请求用于获取所述操作对象列表中的操作对象,并用于将第一设备所请求的操作对象发送给第一设备;The communication module is used to receive a request from the first device through the communication connection between the device and the first device; The brief information of the operation object for other devices to edit, and receive a request from the first device, the request is used to obtain the operation object in the operation object list, and is used to send the operation object requested by the first device to the first equipment; 所述指令识别模块,用于将第一设备所请求的操作对象通过所述通信模块发送给第一设备进行编辑操作,其中,所述编辑操作包括:将所述操作对象保存到剪切板中,或/和将所述操作对象输入当前编辑框。The instruction recognition module is configured to send the operation object requested by the first device to the first device through the communication module to perform an editing operation, wherein the editing operation includes: saving the operation object into a clipboard , or/and input the operation object into the current edit box.
CN201310421742.7A 2013-09-16 2013-09-16 The method and apparatus of edit operation is realized in equipment room Active CN104462033B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310421742.7A CN104462033B (en) 2013-09-16 2013-09-16 The method and apparatus of edit operation is realized in equipment room
KR20140034238A KR20150032152A (en) 2013-09-16 2014-03-24 Method and apparatus for performing edit operations between electronic devices
US14/487,697 US20150082157A1 (en) 2013-09-16 2014-09-16 Method and device for realizing operations between devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310421742.7A CN104462033B (en) 2013-09-16 2013-09-16 The method and apparatus of edit operation is realized in equipment room

Publications (2)

Publication Number Publication Date
CN104462033A CN104462033A (en) 2015-03-25
CN104462033B true CN104462033B (en) 2018-09-28

Family

ID=52908105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310421742.7A Active CN104462033B (en) 2013-09-16 2013-09-16 The method and apparatus of edit operation is realized in equipment room

Country Status (2)

Country Link
KR (1) KR20150032152A (en)
CN (1) CN104462033B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106131299A (en) * 2016-06-15 2016-11-16 惠州Tcl移动通信有限公司 A kind of mobile terminal character method for transmission processing and mobile terminal
CN106202023A (en) * 2016-07-19 2016-12-07 珠海市魅族科技有限公司 A kind of information processing method and device
CN106357815A (en) * 2016-10-31 2017-01-25 北京小米移动软件有限公司 Remote operation method and device
CN107967184A (en) * 2017-11-30 2018-04-27 北京奇艺世纪科技有限公司 Method of attaching, device and electronic equipment are replicated in remote assistance
CN108965397A (en) * 2018-06-22 2018-12-07 中央电视台 Cloud video editing method and device, editing equipment and storage medium
CN108881472B (en) * 2018-07-09 2019-03-29 掌阅科技股份有限公司 The processing method of electronic book documentary, electronic equipment, storage medium
CN110737383B (en) * 2019-09-30 2021-06-18 广州视源电子科技股份有限公司 Element adding method and device and electronic equipment
CN113589998B (en) * 2020-04-30 2023-10-17 宏碁股份有限公司 Electronic device and data transmission method thereof
KR20230004028A (en) * 2021-06-30 2023-01-06 삼성전자주식회사 Control method and apparatus using the method
CN113676558A (en) * 2021-10-22 2021-11-19 江苏怀业信息技术股份有限公司 Data transmission method and device of cross-platform shear plate

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2012100064A4 (en) * 2012-01-21 2012-03-01 Szaks, Ivan Mr Local/Global Interconnected Copy Pasting

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7818458B2 (en) * 2007-12-03 2010-10-19 Microsoft Corporation Clipboard for application sharing
US8555187B2 (en) * 2010-02-16 2013-10-08 Google Inc. Server-based data sharing in computer applications using a clipboard
US20120096368A1 (en) * 2010-10-14 2012-04-19 Microsoft Corporation Cloud-based virtual clipboard

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2012100064A4 (en) * 2012-01-21 2012-03-01 Szaks, Ivan Mr Local/Global Interconnected Copy Pasting

Also Published As

Publication number Publication date
CN104462033A (en) 2015-03-25
KR20150032152A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104462033B (en) The method and apparatus of edit operation is realized in equipment room
EP2901661B1 (en) Terminal and method for transmitting and receiving data
EP2695047B1 (en) Document management system using printer emulation
JP6515207B2 (en) Internet access authentication method and client, and computer storage medium
JP5891559B2 (en) Instant messaging method, terminal, server and system
EP2901660B1 (en) Termininal interaction methods and related devices and systems
CN105814578B (en) Wireless communication of print content
JP2009524975A (en) Multimedia content transmission method and system in communication network
CN104683434B (en) Network system keeps connection method, communication means, electronic equipment, keeps Connection Service device, application server, program
WO2015180192A1 (en) Network connection method, hotspot terminal, and management terminal
CN104750372B (en) A kind of file sharing method and device
CA2862876A1 (en) Systems and methods for sharing data among multiple end user devices
JP2015228251A (en) Mobile device, communication method and recording medium
KR20150013860A (en) Clientless cloud computing
WO2015161786A1 (en) Remote control method, server, control device and system
CA2884322C (en) Mail processing method and system
TWI488510B (en) Information sharing method and system
CN102752364A (en) Data transmission method and device
TW201423430A (en) Method for data sharing, server and system
CN111970676A (en) WiFi hotspot access method, device, equipment and storage medium
CN114327340A (en) Control method and storage medium
CN101431724A (en) Method and equipment for sending messages
CN106357814B (en) A file processing method, proxy server and client
CN103530342B (en) Method and device for sharing data
WO2015131561A1 (en) Method and device for implementing short message forwarding as instant messaging

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant