CN106201187A - A kind of Contents of clipboard processing method and mobile terminal - Google Patents
A kind of Contents of clipboard processing method and mobile terminal Download PDFInfo
- Publication number
- CN106201187A CN106201187A CN201610505397.9A CN201610505397A CN106201187A CN 106201187 A CN106201187 A CN 106201187A CN 201610505397 A CN201610505397 A CN 201610505397A CN 106201187 A CN106201187 A CN 106201187A
- Authority
- CN
- China
- Prior art keywords
- paste
- content
- instruction
- clipboard
- target
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本发明提供一种剪贴板内容处理方法及移动终端,涉及通信领域,以解决现有的复制粘贴功能中支持的复制粘贴方式无法满足用户的需求而造成的用户对移动终端的使用体验较差的问题。本发明的剪贴板内容处理方法,包括:在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断第一内容粘贴指令的类型;若第一内容粘贴指令为单一粘贴指令,获取并将第一目标剪贴板内容粘贴到粘贴界面的粘贴区域;若第一内容粘贴指令为交叉粘贴指令,在粘贴界面显示悬浮窗口,并在悬浮窗口中显示预定个数的第二目标剪贴板内容;接收用户的第二内容粘贴指令,并将一个或多个第二目标剪贴板内容分别粘贴到粘贴界面的粘贴区域。本发明主要用于移动终端中。
The present invention provides a clipboard content processing method and a mobile terminal, which relate to the field of communication, and are used to solve the problem that the user's use experience of the mobile terminal is poor due to the fact that the copy-paste mode supported in the existing copy-paste function cannot meet the needs of the user. question. The clipboard content processing method of the present invention includes: obtaining the user's first content pasting instruction on the pasting interface of the mobile terminal, and judging the type of the first content pasting instruction; if the first content pasting instruction is a single pasting instruction, obtaining and Paste the content of the first target clipboard to the paste area of the paste interface; if the first content paste instruction is a cross paste instruction, display a floating window on the paste interface, and display a predetermined number of second target clipboard contents in the floating window; receive The user's second content paste instruction, and respectively paste one or more second target clipboard contents into the pasting area of the pasting interface. The present invention is mainly used in mobile terminals.
Description
技术领域technical field
本发明实施例涉及通信领域,并且更具体地,涉及一种剪贴板内容处理方法及移动终端。Embodiments of the present invention relate to the communication field, and more specifically, relate to a clipboard content processing method and a mobile terminal.
背景技术Background technique
目前大多数智能移动终端均支持复制粘贴功能。通过该功能用户可以将例如一段文本(或其他形式的内容)等内容复制粘贴到移动终端中的目标位置。在此将用户想要复制粘贴的内容称为剪贴板内容。移动终端提供的复制粘贴功能可避免用户的手动输入操作。At present, most smart mobile terminals support the copy and paste function. Through this function, the user can copy and paste content such as a piece of text (or other forms of content) to a target location in the mobile terminal. Here, the content that the user wants to copy and paste is referred to as clipboard content. The copy and paste function provided by the mobile terminal can avoid the user's manual input operation.
随着技术的发展,现有移动终端提供的复制粘贴功能中不仅支持用户粘贴其最近复制的剪贴板内容,还支持交叉粘贴剪贴板内容。但是,在支持用户粘贴其最近复制的剪贴板内容的技术中,如果用户想要复制粘贴多个剪贴板内容,用户需要进行多次的复制粘贴操作。在支持用户交叉粘贴剪贴板内容的技术中,用户想要复制粘贴最近复制的剪贴板内容时需要多步操作。因而,上述两种复制粘贴方式均不能满足用户的需求,使得用户对移动终端的使用体验较差。With the development of technology, the copy-and-paste function provided by the existing mobile terminal not only supports the user to paste the contents of the clipboard copied recently, but also supports the cross-paste of the contents of the clipboard. However, in the technology that supports users to paste their recently copied clipboard contents, if the user wants to copy and paste multiple clipboard contents, the user needs to perform multiple copy and paste operations. In the technology that supports the user to cross-paste clipboard contents, multiple operations are required when the user wants to copy and paste the recently copied clipboard contents. Therefore, neither of the above two copying and pasting methods can meet the needs of the user, making the user's experience of using the mobile terminal poor.
发明内容Contents of the invention
本发明实施例提供一种剪贴板内容处理方法及移动终端,以解决现有的复制粘贴功能中支持的复制粘贴方式无法满足用户的需求而造成的用户对移动终端的使用体验较差的问题。Embodiments of the present invention provide a clipboard content processing method and a mobile terminal to solve the problem that the user experience of the mobile terminal is poor due to the fact that the copy-paste mode supported in the existing copy-paste function cannot meet the needs of the user.
第一方面,提供了一种剪贴板内容处理方法,应用于移动终端,所述方法包括:In a first aspect, a clipboard content processing method is provided, which is applied to a mobile terminal, and the method includes:
在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断所述第一内容粘贴指令的类型;Obtaining the user's first content pasting instruction on the pasting interface of the mobile terminal, and judging the type of the first content pasting instruction;
若所述第一内容粘贴指令为单一粘贴指令,获取第一目标剪贴板内容,并将所述第一目标剪贴板内容粘贴到所述粘贴界面的粘贴区域;其中所述第一目标剪贴板内容为所述用户已复制的剪贴板内容中复制时间与所述单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;If the first content paste instruction is a single paste instruction, obtain the first target clipboard content, and paste the first target clipboard content into the paste area of the paste interface; wherein the first target clipboard content Among the clipboard contents copied by the user, the clipboard contents have the shortest time interval between the copying time and the sending time of the single paste instruction;
若所述第一内容粘贴指令为交叉粘贴指令,在所述粘贴界面显示悬浮窗口,并在所述悬浮窗口中显示预定个数的第二目标剪贴板内容,其中所述第二目标剪贴板内容选自于所述用户已复制的剪贴板内容;If the first content paste instruction is a cross paste instruction, a floating window is displayed on the paste interface, and a predetermined number of second target clipboard contents are displayed in the floating window, wherein the second target clipboard contents selected from clipboard contents that said user has copied;
接收所述用户对一个或多个所述第二目标剪贴板内容发送的第二内容粘贴指令,并根据所述第二内容粘贴指令将所述一个或多个第二目标剪贴板内容分别粘贴到所述粘贴界面的粘贴区域。receiving a second content paste instruction sent by the user for one or more second target clipboard contents, and respectively pasting the one or more second target clipboard contents to the Paste area of the paste interface.
第二方面,本发明提供了一种移动终端,包括:In a second aspect, the present invention provides a mobile terminal, including:
指令处理模块,用于在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断所述第一内容粘贴指令的类型;An instruction processing module, configured to obtain the user's first content paste instruction on the paste interface of the mobile terminal, and determine the type of the first content paste instruction;
第一粘贴模块,用于若所述第一内容粘贴指令为单一粘贴指令,获取第一目标剪贴板内容,并将所述第一目标剪贴板内容粘贴到所述粘贴界面的粘贴区域;其中所述第一目标剪贴板内容为所述用户已复制的剪贴板内容中复制时间与所述单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;The first pasting module is configured to obtain the content of the first target clipboard if the first content paste command is a single paste command, and paste the content of the first target clipboard into the paste area of the paste interface; wherein The first target clipboard content is the clipboard content with the smallest time interval between the copying time and the sending time of the single paste instruction among the clipboard contents copied by the user;
第一显示模块,用于若所述第一内容粘贴指令为交叉粘贴指令,在所述粘贴界面显示悬浮窗口,并在所述悬浮窗口中显示预定个数的第二目标剪贴板内容,其中所述第二目标剪贴板内容选自于所述用户已复制的剪贴板内容;The first display module is configured to display a floating window on the paste interface if the first content paste instruction is a cross paste instruction, and display a predetermined number of second target clipboard contents in the floating window, wherein The second target clipboard content is selected from the clipboard content copied by the user;
第二粘贴模块,用于接收所述用户对一个或多个所述第二目标剪贴板内容发送的第二内容粘贴指令,并根据所述第二内容粘贴指令将所述一个或多个第二目标剪贴板内容分别粘贴到所述粘贴界面的粘贴区域。The second paste module is configured to receive a second content paste instruction sent by the user for one or more second target clipboard contents, and paste the one or more second target clipboard contents according to the second content paste instruction. The content of the target clipboard is respectively pasted into the pasting area of the pasting interface.
这样,本发明实施例中,在移动终端的粘贴界面可根据用户发送的第一内容粘贴指令的类型的不同实现不同的粘贴操作。当第一内容粘贴指令为单一粘贴指令时,可仅粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;当第一内容粘贴指令为交叉粘贴指令时,还可以实现交叉粘贴多条剪贴板内容。因而,利用本发明实施例的方案在用户进行复制粘贴时,不仅可以粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,而且还实现交叉粘贴多条剪贴板内容,从而丰富了移动终端中复制粘贴功能的实现方式,满足了用户对不同的复制粘贴方式的需求。从而,利用本发明实施例的方案提高了用户对移动终端的使用体验。In this way, in the embodiment of the present invention, different paste operations can be implemented on the paste interface of the mobile terminal according to the type of the first content paste instruction sent by the user. When the first content paste instruction is a single paste instruction, only the clipboard content with the minimum time interval between the issuing time of the single paste instruction can be pasted; when the first content paste instruction is a cross paste instruction, multiple cross paste can also be realized Clipboard content. Therefore, using the scheme of the embodiment of the present invention, when the user is copying and pasting, not only the clipboard content with the shortest time interval from the issuing time of a single paste command can be pasted, but also multiple clipboard contents can be pasted crosswise, thus enriching the mobile The implementation of the copy and paste function in the terminal satisfies the needs of users for different copy and paste methods. Therefore, using the solution of the embodiment of the present invention improves the user's experience of using the mobile terminal.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.
图1是本发明第一实施例的剪贴板内容处理方法的流程图;Fig. 1 is the flow chart of the clipboard content processing method of the first embodiment of the present invention;
图2是本发明第二实施例的剪贴板内容处理方法的流程图;Fig. 2 is the flow chart of the clipboard content processing method of the second embodiment of the present invention;
图3-图7为本发明第二实施例中移动终端的界面示意图;3-7 are schematic diagrams of interfaces of the mobile terminal in the second embodiment of the present invention;
图8是本发明第三实施例的移动终端的示意图之一;Fig. 8 is one of the schematic diagrams of the mobile terminal according to the third embodiment of the present invention;
图9是本发明第三实施例的移动终端的示意图之二;FIG. 9 is a second schematic diagram of a mobile terminal according to a third embodiment of the present invention;
图10是本发明第四实施例的移动终端的示意图。Fig. 10 is a schematic diagram of a mobile terminal according to a fourth embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
第一实施例first embodiment
如图1所示,本发明第一实施例的剪贴板内容处理方法,应用于移动终端,包括:As shown in Figure 1, the clipboard content processing method of the first embodiment of the present invention is applied to a mobile terminal, including:
步骤11、在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断第一内容粘贴指令的类型。Step 11. Obtain the user's first content pasting instruction on the pasting interface of the mobile terminal, and determine the type of the first content pasting instruction.
在实际应用中,用户可利用移动终端进行浏览网页、观看小说等操作。以用户正在浏览网页为例,在此将用户浏览当前网页时移动终端所呈现的界面称为第一界面。在第一界面内,用户可选择当前网页中的内容。此时,用户可通过长按或双击当前网页中的文字或图片等内容的方式向移动终端发送内容选择指令。根据用户的内容选择指令,移动终端可分析内容选择指令所对应的区域,进而获取用户选择的文字或图片,即获取剪贴板内容。In practical applications, users can use mobile terminals to browse web pages, watch novels and other operations. Taking the user browsing a webpage as an example, the interface presented by the mobile terminal when the user browses the current webpage is referred to as the first interface. In the first interface, the user can select content in the current webpage. At this point, the user can send a content selection instruction to the mobile terminal by long pressing or double-clicking on text or pictures in the current web page. According to the user's content selection instruction, the mobile terminal can analyze the area corresponding to the content selection instruction, and then obtain the text or picture selected by the user, that is, obtain the content of the clipboard.
当用户选择了剪贴板内容之后,在移动终端的第一界面内可弹出复制、收藏、分享等选项供用户选择。如果用户选择了复制选项,那么可认为用户向移动终端发送了对剪贴板内容的内容复制指令。此时,移动终端根据该内容复制指令复制该剪贴板内容。After the user selects the contents of the clipboard, options such as copy, favorite, and share may pop up in the first interface of the mobile terminal for the user to choose. If the user selects the copy option, it can be considered that the user has sent an instruction to copy the contents of the clipboard to the mobile terminal. At this time, the mobile terminal copies the clipboard content according to the content copy instruction.
当用户在第一界面选择了剪贴板内容并发送了内容复制指令后,用户可将该剪贴板内容粘贴到移动终端的目标位置,例如,用户可将该剪贴板内容粘贴到备忘录中。此时,用户可选择退出第一界面并打开备忘录这一应用程序,并选择粘贴剪贴板内容的目标位置。在此,将用户所选择的粘贴该剪贴板内容的目标位置所在的界面称为粘贴界面,例如粘贴界面可以是备忘录中新建的一个日志所在的界面。After the user selects the content of the clipboard on the first interface and sends a content copy instruction, the user can paste the content of the clipboard to a target location of the mobile terminal, for example, the user can paste the content of the clipboard into a memo. At this point, the user may choose to exit the first interface and open the application program of the memo, and select a target location for pasting the contents of the clipboard. Here, the interface where the target position of the clipboard content selected by the user is located is referred to as the paste interface, for example, the paste interface may be the interface where a newly created log in the memo is located.
在粘贴界面中,用户可通过对粘贴界面的预定区域进行一定的操作而向移动终端发送出第一内容粘贴指令。其中,用户可对该预定区域进行单击、按压、双击或长按等操作。当用户向该确定区域发出操作后,可获取用户对该预定区域的第一操作的类型。然后,在预设的操作类型和操作指令的第一对应关系中查找与用户的第一操作的类型对应的操作指令。当第一操作的类型为单击操作时,通过单击操作获得的第一内容粘贴指令为单一粘贴指令;当第一操作的类型为按压、双击或长按时,通过按压、双击或长按操作获得的第一内容粘贴指令为交叉粘贴指令。In the pasting interface, the user may send a first content pasting instruction to the mobile terminal by performing certain operations on a predetermined area of the pasting interface. Wherein, the user may perform operations such as clicking, pressing, double-clicking or long-pressing the predetermined area. After the user sends out an operation to the determined area, the type of the user's first operation on the predetermined area may be acquired. Then, the operation instruction corresponding to the type of the user's first operation is searched in the first correspondence between the preset operation type and the operation instruction. When the type of the first operation is a single-click operation, the first content paste instruction obtained through the single-click operation is a single paste instruction; The obtained first content paste instruction is a cross paste instruction.
其中单一粘贴指令与现有粘贴指令相同,当用户发送此种类型的指令时,粘贴用户已复制的剪贴板内容中复制时间与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,也即粘贴用户最近一次复制的剪贴板内容;交叉粘贴指令指的是可以根据该指令实现第二目标剪贴板内容的指令。The single paste command is the same as the existing paste command. When the user sends this type of command, paste the clipboard content that has the smallest time interval between the copy time and the time when the single paste command is issued, that is, Paste the contents of the clipboard copied last time by the user; the cross-paste instruction refers to an instruction that can realize the contents of the second target clipboard according to the instruction.
根据现有技术的内容,当用户在粘贴界面的粘贴区域点击空白处或者长按空白处时可显示粘贴等选项。其中,在本发明实施例中,粘贴界面的预定区域可以指的是粘贴界面的粘贴区域中的任意区域,例如该预定区域可以是粘贴选项对应的区域,也即在粘贴界面的粘贴区域中粘贴选项所位于的区域。According to the content of the prior art, when the user clicks on a blank space or long presses a blank space in the pasting area of the pasting interface, options such as pasting may be displayed. Wherein, in the embodiment of the present invention, the predetermined area of the paste interface may refer to any area in the paste area of the paste interface, for example, the predetermined area may be the area corresponding to the paste option, that is, paste The region in which the option is located.
如果用户对粘贴选项所位于的区域的按压压力值超过第一预设值,则可认为用户对粘贴选项所位于的区域进行了按压操作。如果在某个第一预定时间内用户对粘贴选项所位于的区域的点击次数为2以上,则可认为用户对粘贴选项所位于的区域进行了双击操作,否则认为用户对粘贴选项所位于的区域进行了单击操作。如果在某个第二预定时间内用户对粘贴选项所位于的区域的点击时间超过预设时间阈值,则可认为用户对粘贴选项所位于的区域进行了长按操作。其中第一预设值、第一预定时间、第二预定时间和预设时间阈值可根据经验设置。If the pressing pressure value of the user on the area where the pasting option is located exceeds the first preset value, it may be considered that the user has performed a pressing operation on the area where the pasting option is located. If the number of clicks on the area where the paste option is located by the user is more than 2 within a certain first predetermined time, it can be considered that the user has double-clicked the area where the paste option is located; A click operation was performed. If the click time of the user on the area where the paste option is located exceeds a preset time threshold within a certain second predetermined time, it may be considered that the user has performed a long press operation on the area where the paste option is located. Wherein the first preset value, the first predetermined time, the second predetermined time and the preset time threshold can be set according to experience.
不同的操作类型可对应不同的操作指令,因此,在本发明实施例中可建立如下表1的对应关系。Different operation types may correspond to different operation instructions. Therefore, in the embodiment of the present invention, the following table 1 correspondence may be established.
表1Table 1
由上表1可以看出,在本发明实施例中,当用户对粘贴选项所位于的区域进行了按压或双击或长按操作时,查找上表1可认为用户向移动终端发送了交叉粘贴指令。当用户对粘贴选项所位于的区域进行了单击操作时,查找上表1可认为用户向移动终端发送了单一粘贴指令。It can be seen from the above table 1 that in the embodiment of the present invention, when the user presses or double-clicks or long-presses the area where the paste option is located, looking up the above table 1 can be considered that the user has sent a cross-paste command to the mobile terminal . When the user clicks on the area where the paste option is located, looking up Table 1 above, it can be considered that the user has sent a single paste instruction to the mobile terminal.
步骤12、若第一内容粘贴指令为单一粘贴指令,获取第一目标剪贴板内容,并将第一目标剪贴板内容粘贴到粘贴界面的粘贴区域;其中第一目标剪贴板内容为用户已复制的剪贴板内容中复制时间与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容。Step 12. If the first content paste command is a single paste command, obtain the content of the first target clipboard, and paste the content of the first target clipboard into the pasting area of the paste interface; wherein the content of the first target clipboard is copied by the user. Among the clipboard contents, the time interval between the copying time and the issuing time of a single paste instruction is the smallest.
根据步骤11的判断结果,当第一内容粘贴指令为单一粘贴指令时,获取第一目标剪贴板内容,并将第一目标剪贴板内容粘贴到粘贴界面的粘贴区域,即目标位置。According to the judgment result of step 11, when the first content paste instruction is a single paste instruction, obtain the content of the first target clipboard, and paste the content of the first target clipboard to the paste area of the paste interface, that is, the target position.
通常情况下,其中第一目标剪贴板内容为用户已复制的剪贴板内容中复制时间与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,也即用户最近一次复制的剪贴板内容。该用户最近一次复制的剪贴板内容可以有一个也可以有多个。当该用户最近一次复制的剪贴板内容有多个时,可以任选一个该用户最近一次复制的剪贴板内容作为在此的第一目标剪贴板内容。Usually, the first target clipboard content is the clipboard content that has the shortest time interval between the copying time and the issuing time of a single paste command among the clipboard content that the user has copied, that is, the last clipboard content copied by the user. There can be one or more clipboard contents copied by the user last time. When there are multiple clipboard contents copied by the user last time, one of the clipboard contents copied last time by the user may be selected as the first target clipboard content here.
步骤13、若第一内容粘贴指令为交叉粘贴指令,在粘贴界面显示悬浮窗口,并在悬浮窗口中显示预定个数的第二目标剪贴板内容,其中第二目标剪贴板内容选自于用户已复制的剪贴板内容。Step 13. If the first content paste instruction is a cross paste instruction, a floating window is displayed on the paste interface, and a predetermined number of second target clipboard contents are displayed in the floating window, wherein the second target clipboard contents are selected from the Copied clipboard contents.
根据步骤11的判断结果,当第一内容粘贴指令为交叉粘贴指令时,首先,在粘贴界面显示悬浮窗口。其中该悬浮窗口可以是弹出层。然后,从用户已复制的剪贴板内容中获取预定个数的第二目标剪贴板内容。其中该预定个数可根据移动终端的内存大小或者用户的预先设置确定。最后,在悬浮窗口中按照预定顺序显示预定个数的第二目标剪贴板内容。According to the judgment result in step 11, when the first content paste instruction is a cross paste instruction, firstly, a floating window is displayed on the paste interface. Wherein the floating window may be a pop-up layer. Then, a predetermined number of second target clipboard contents are acquired from the clipboard contents copied by the user. The predetermined number can be determined according to the memory size of the mobile terminal or the user's preset settings. Finally, a predetermined number of second target clipboard contents are displayed in the floating window in a predetermined order.
具体的,在显示该预定个数的交叉剪贴板剪贴内容时,为了进一步提高用户的使用体验,在此可首先分别获取预定个数的第二目标剪贴板内容的复制时间,然后按照第二目标剪贴板内容的复制时间与交叉粘贴指令的发出时间的时间间隔由小到大的顺序显示预定个数的第二目标剪贴板内容。当然该预定个数的第二目标剪贴板内容的显示顺序也可以是其他顺序。Specifically, when displaying the predetermined number of cross-clipboard clipping contents, in order to further improve the user experience, the copying time of the predetermined number of second target clipboard contents can be respectively acquired here, and then according to the second target A predetermined number of second target clipboard contents are displayed in descending order of the time interval between the copying time of the clipboard content and the issuing time of the cross-paste instruction. Of course, the display order of the predetermined number of second target clipboard contents may also be other orders.
例如,假设该第二目标剪贴板内容有3个,分别为内容1,内容2,内容3。其中,按照第二目标剪贴板内容的复制时间与交叉粘贴指令的发出时间的时间间隔由小到大的顺序分别为内容1、内容3、内容2。那么在悬浮窗口中,可按照内容1、内容3、内容2的顺序进行显示。其中显示方式可以是横向排列也可以是纵向排列。以通常较为符合用户使用习惯的纵向排列为例,在悬浮窗口中,可将内容1显示在最上面,内容3显示在中间,而将内容2显示在最下面。For example, suppose that the second target clipboard has three contents, which are content 1, content 2 and content 3 respectively. Wherein, according to the time interval between the copying time of the content of the second target clipboard and the sending time of the cross-paste command from small to large, they are content 1, content 3 and content 2 respectively. Then, in the floating window, content 1, content 3, and content 2 can be displayed in order. The display mode can be arranged horizontally or vertically. Taking the vertical arrangement that is usually more in line with the user's usage habits as an example, in the floating window, content 1 can be displayed on the top, content 3 can be displayed in the middle, and content 2 can be displayed at the bottom.
步骤14、接收用户对一个或多个第二目标剪贴板内容发送的第二内容粘贴指令,并根据第二内容粘贴指令将一个或多个第二目标剪贴板内容分别粘贴到粘贴界面的粘贴区域。Step 14: Receive the second content paste instruction sent by the user to the content of one or more second target clipboards, and paste the content of one or more second target clipboards into the paste area of the paste interface according to the second content paste instruction .
在悬浮窗口中,用户仍可对该第二目标剪贴板内容进行操作,例如用户可对其进行单击操作等。当用户对第二目标剪贴板内容对应的区域进行操作后,可获取该操作的第二操作的类型。然后,在预设的操作类型和操作指令的第二对应关系中查找与用户的第二操作的类型对应的操作指令对应的操作指令,并将查找到的操作指令作为第二内容粘贴指令。例如,该第二对应关系可如表2所示。In the floating window, the user can still operate on the content of the second target clipboard, for example, the user can click on it. After the user operates the area corresponding to the content of the second target clipboard, the type of the second operation of the operation can be obtained. Then, search for an operation instruction corresponding to the operation instruction corresponding to the user's second operation type in the second correspondence between the preset operation type and the operation instruction, and use the found operation instruction as the second content pasting instruction. For example, the second corresponding relationship may be as shown in Table 2.
表2Table 2
由上可以看出,本发明实施例中,在移动终端的粘贴界面可根据用户发送的第一内容粘贴指令的类型的不同实现不同的粘贴操作。当第一内容粘贴指令为单一粘贴指令时,可仅粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;当第一内容粘贴指令为交叉粘贴指令时,还可以实现交叉粘贴多条剪贴板内容。因而,利用本发明实施例的方案在用户进行复制粘贴时,不仅可以粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,而且还实现交叉粘贴多条剪贴板内容,从而丰富了移动终端中复制粘贴功能的实现方式,满足了用户对不同的复制粘贴方式的需求。从而,利用本发明实施例的方案提高了用户对移动终端的使用体验。It can be seen from the above that in the embodiment of the present invention, different paste operations can be implemented on the paste interface of the mobile terminal according to the type of the first content paste instruction sent by the user. When the first content paste instruction is a single paste instruction, only the clipboard content with the minimum time interval between the issuing time of the single paste instruction can be pasted; when the first content paste instruction is a cross paste instruction, multiple cross paste can also be realized Clipboard content. Therefore, using the scheme of the embodiment of the present invention, when the user is copying and pasting, not only the clipboard content with the shortest time interval from the issuing time of a single paste command can be pasted, but also multiple clipboard contents can be pasted crosswise, thus enriching the mobile The implementation of the copy and paste function in the terminal satisfies the needs of users for different copy and paste methods. Therefore, using the solution of the embodiment of the present invention improves the user's experience of using the mobile terminal.
第二实施例second embodiment
如图2所示,本发明实施例二的剪贴板内容处理方法,应用于移动终端,方法包括:As shown in FIG. 2, the clipboard content processing method in Embodiment 2 of the present invention is applied to a mobile terminal, and the method includes:
步骤21、在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断第一内容粘贴指令的类型。Step 21: Obtain the user's first content pasting instruction on the pasting interface of the mobile terminal, and determine the type of the first content pasting instruction.
根据现有技术的内容,当用户在第二界面的粘贴区域点击空白处或者长按空白处时可显示粘贴等选项(如图3所示)。如前,用户对粘贴所位于的区域的操作类型包括按压、单击、双击、长按等。According to the content of the prior art, when the user clicks or long presses a blank space in the paste area of the second interface, options such as paste can be displayed (as shown in FIG. 3 ). As before, the type of operation performed by the user on the pasted area includes pressing, clicking, double-clicking, and long-pressing.
当用户对粘贴所位于的区域的操作为单击操作时,第一内容粘贴指令为单一粘贴指令,此时执行步骤22-23;当用户对粘贴所位于的区域的操作为长按操作时,第一内容粘贴指令为交叉粘贴指令时,执行步骤24-28。When the user's operation on the area where the paste is located is a click operation, the first content paste instruction is a single paste instruction, and steps 22-23 are performed at this time; when the user's operation on the area where the paste is located is a long press operation, When the first content paste instruction is a cross paste instruction, execute steps 24-28.
步骤22、获取用户最近一次复制的剪贴板内容。Step 22, obtaining the clipboard content copied by the user last time.
步骤23、将用户最近一次复制的剪贴板内容粘贴到粘贴界面的粘贴区域。Step 23: Paste the contents of the clipboard copied last time by the user into the pasting area of the pasting interface.
假设,用户最近一次复制的剪贴板内容为古诗两首。根据单一粘贴指令将古诗两首粘贴到目标位置(如图4所示)。Assume that the last clipboard content copied by the user is two ancient poems. Paste the two ancient poems to the target position according to a single paste instruction (as shown in Figure 4).
步骤24、在粘贴界面显示悬浮窗口。与此同时,在悬浮窗口显示关闭按钮(如图5所示,图中用×表示)。Step 24, displaying a floating window on the pasting interface. At the same time, a close button is displayed on the floating window (as shown in FIG. 5 , represented by X in the figure).
步骤25、从用户已复制的剪贴板内容中获取预定个数的第二目标剪贴板内容。Step 25. Obtain a predetermined number of second target clipboard contents from the clipboard contents copied by the user.
在此假设预定个数是3,获得的第二目标剪贴板内容分别为内容1,内容2,内容3。其中,按照第二目标剪贴板内容的复制时间与交叉粘贴指令的发出时间的时间间隔由小到大的顺序分别为内容1,内容3,内容2。Assume here that the predetermined number is 3, and the obtained second target clipboard contents are Content 1, Content 2, and Content 3 respectively. Wherein, according to the time interval between the copying time of the second target clipboard content and the issuing time of the cross-paste command from small to large, they are content 1, content 3 and content 2 respectively.
步骤26、在悬浮窗口显示第二目标剪贴板内容。Step 26, displaying the content of the second target clipboard in the floating window.
在此实施例中,根据步骤25,在悬浮窗口中按顺序显示内容1,内容3,内容2(如图6所示)。In this embodiment, according to step 25, content 1, content 3, and content 2 are sequentially displayed in the floating window (as shown in FIG. 6 ).
步骤27、获取用户对一个或多个第二目标剪贴板内容的第二操作的类型,从确定第二操作的类型对应的第二内容粘贴指令。Step 27: Obtain the type of the second operation performed by the user on one or more second target clipboard contents, and determine the second content paste instruction corresponding to the type of the second operation.
在此,假设用户对内容1所在的区域进行了单击操作,通过查找上表2可知该操作对应第二内容粘贴指令。Here, it is assumed that the user performs a click operation on the area where the content 1 is located. By looking up Table 2 above, it can be known that this operation corresponds to the second content paste instruction.
步骤28、根据该第二内容粘贴指令将一个或多个第二目标剪贴板内容分别粘贴到粘贴界面的粘贴区域。Step 28: Paste one or more second target clipboard contents into the paste area of the paste interface according to the second content paste instruction.
在此,根据第二内容粘贴指令将内容1粘贴到粘贴界面的粘贴区域,即目标位置(如图7所示)。当然,用户还可对内容3,内容2等进行上述操作。Here, the content 1 is pasted to the pasting area of the pasting interface, that is, the target position (as shown in FIG. 7 ), according to the second content pasting instruction. Of course, the user can also perform the above operations on content 3, content 2, and so on.
在上述步骤24-28的过程中,如果用户点击关闭按钮,接收用户通过点击关闭按钮发送的关闭指令,根据关闭指令关闭悬浮窗口。During the above steps 24-28, if the user clicks the close button, the close instruction sent by the user by clicking the close button is received, and the floating window is closed according to the close instruction.
在本发明实施例中,以上的复制粘贴操作还适用于剪切粘贴操作。In the embodiment of the present invention, the above copy and paste operation is also applicable to the cut and paste operation.
由上可以看出,本发明实施例中,在移动终端的粘贴界面可根据用户发送的第一内容粘贴指令的类型的不同实现不同的粘贴操作。当第一内容粘贴指令为单一粘贴指令时,可仅粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;当第一内容粘贴指令为交叉粘贴指令时,还可以实现交叉粘贴多条剪贴板内容。因而,利用本发明实施例的方案在用户进行复制粘贴时,不仅可以粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,而且还实现交叉粘贴多条剪贴板内容,从而丰富了移动终端中复制粘贴功能的实现方式,满足了用户对不同的复制粘贴方式的需求。从而,利用本发明实施例的方案提高了用户对移动终端的使用体验。It can be seen from the above that in the embodiment of the present invention, different paste operations can be implemented on the paste interface of the mobile terminal according to the type of the first content paste instruction sent by the user. When the first content paste instruction is a single paste instruction, only the clipboard content with the minimum time interval between the issuing time of the single paste instruction can be pasted; when the first content paste instruction is a cross paste instruction, multiple cross paste can also be realized Clipboard content. Therefore, using the scheme of the embodiment of the present invention, when the user is copying and pasting, not only the clipboard content with the shortest time interval from the issuing time of a single paste command can be pasted, but also multiple clipboard contents can be pasted crosswise, thus enriching the mobile The implementation of the copy and paste function in the terminal satisfies the needs of users for different copy and paste methods. Therefore, using the solution of the embodiment of the present invention improves the user's experience of using the mobile terminal.
第三实施例third embodiment
如图8所示,本发明第三实施例的移动终端包括:As shown in FIG. 8, the mobile terminal of the third embodiment of the present invention includes:
指令处理模块41,用于在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断第一内容粘贴指令的类型;第一粘贴模块42,用于若第一内容粘贴指令为单一粘贴指令,获取第一目标剪贴板内容,并将第一目标剪贴板内容粘贴到粘贴界面的粘贴区域;其中第一目标剪贴板内容为用户已复制的剪贴板内容中复制时间与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;第一显示模块43,用于若第一内容粘贴指令为交叉粘贴指令,在粘贴界面显示悬浮窗口,并在悬浮窗口中显示预定个数的第二目标剪贴板内容,其中第二目标剪贴板内容选自于用户已复制的剪贴板内容;第二粘贴模块44,用于接收用户对一个或多个第二目标剪贴板内容发送的第二内容粘贴指令,并根据第二内容粘贴指令将一个或多个第二目标剪贴板内容分别粘贴到粘贴界面的粘贴区域。The instruction processing module 41 is used to obtain the first content paste instruction of the user on the paste interface of the mobile terminal, and judges the type of the first content paste instruction; the first paste module 42 is used to if the first content paste instruction is a single paste instruction , get the content of the first target clipboard, and paste the content of the first target clipboard into the pasting area of the paste interface; where the first target clipboard content is the copying time of the clipboard content copied by the user and the issuing time of a single paste command The clipboard content with the smallest time interval; the first display module 43 is used to display a floating window on the pasting interface if the first content pasting instruction is a cross pasting instruction, and display a predetermined number of second target clipboards in the floating window Content, wherein the second target clipboard content is selected from the clipboard content copied by the user; the second paste module 44 is configured to receive the second content paste instruction sent by the user to one or more second target clipboard contents, and According to the second content paste instruction, one or more second target clipboard contents are respectively pasted into the pasting area of the pasting interface.
其中,第一粘贴模块42包括:第一操作类型获取子模块,用于获取用户对粘贴界面的预定区域的第一操作的类型;第一查找子模块,用于在预设的操作类型和操作指令的第一对应关系中查找与用户的第一操作的类型对应的操作指令;第一指令获取子模块,用于若第一操作的类型为单击操作,通过单击操作获得的第一内容粘贴指令为单一粘贴指令;若第一操作的类型为按压、双击或长按,通过按压、双击或长按操作获得的第一内容粘贴指令为交叉粘贴指令。Wherein, the first pasting module 42 includes: a first operation type obtaining submodule, used to obtain the type of the first operation of the user on a predetermined area of the pasting interface; Find the operation instruction corresponding to the type of the user's first operation in the first corresponding relationship of the instruction; the first instruction acquisition submodule is used for the first content obtained by the click operation if the type of the first operation is a click operation The paste instruction is a single paste instruction; if the type of the first operation is press, double click or long press, the first content paste instruction obtained by pressing, double click or long press is a cross paste instruction.
第一显示模块43可包括:第一显示子模块,用于若第一内容粘贴指令为交叉粘贴指令,在粘贴界面显示悬浮窗口;内容选择子模块,用于从用户已复制的剪贴板内容中获取预定个数的第二目标剪贴板内容;第二显示子模块,用于在悬浮窗口中按照预定顺序显示预定个数的第二目标剪贴板内容。The first display module 43 may include: a first display submodule, used to display a floating window on the paste interface if the first content paste instruction is a cross paste instruction; Obtaining a predetermined number of second target clipboard contents; a second display submodule configured to display a predetermined number of second target clipboard contents in a predetermined order in the floating window.
具体的,内容选择子模块包括:数量确定单元,用于根据移动终端的内存大小或者用户的预先设置,确定在悬浮窗口显示的剪贴板内容数量;内容选择单元,用于从用户已复制的剪贴板内容中获取与剪贴板内容数量相符的剪贴板内容作为第二目标剪贴板内容。第二显示子模块可包括:时间获取单元,用于分别获取预定个数的第二目标剪贴板内容的复制时间;显示单元,用于按照第二目标剪贴板内容的复制时间与交叉粘贴指令的发出时间的时间间隔由小到大的顺序显示预定个数的第二目标剪贴板内容。Specifically, the content selection submodule includes: a quantity determination unit, used to determine the number of clipboard contents displayed in the floating window according to the memory size of the mobile terminal or the user's preset; Obtain the clipboard content corresponding to the number of clipboard content from the content of the clipboard as the second target clipboard content. The second display submodule may include: a time acquisition unit, used to respectively acquire the copy time of a predetermined number of second target clipboard contents; a display unit, used to follow the copy time of the second target clipboard content and the cross-paste instruction A predetermined number of second target clipboard contents are displayed in descending order of the time intervals of the sending time.
其中,第二粘贴模块44可包括:第二操作类型获取子模块,用于获取用户对一个或多个第二目标剪贴板内容的第二操作的类型;第二查找子模块,用于在预设的操作类型和操作指令的第二对应关系中查找与用户的第二操作的类型对应的操作指令对应的操作指令,并将查找到的操作指令作为第二内容粘贴指令。Wherein, the second pasting module 44 may include: a second operation type obtaining submodule, used to obtain the type of the user's second operation on one or more second target clipboard contents; Find the operation instruction corresponding to the operation instruction corresponding to the user's second operation type in the second correspondence relationship between the set operation type and the operation instruction, and use the found operation instruction as the second content pasting instruction.
如图9所示,移动终端还包括:第三显示模块45,用于在悬浮窗口显示关闭按钮;窗口操作模块46,用于接收用户通过点击关闭按钮发送的关闭指令,根据关闭指令关闭悬浮窗口。As shown in Figure 9, the mobile terminal also includes: a third display module 45, which is used to display a close button on the floating window; a window operation module 46, which is used to receive the closing instruction sent by the user by clicking the closing button, and close the floating window according to the closing instruction .
第三实施例的移动终端能够实现图1至图7的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal in the third embodiment can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 to FIG. 7 , and details will not be repeated here to avoid repetition.
由上可以看出,本发明实施例中,在移动终端的粘贴界面可根据用户发送的第一内容粘贴指令的类型的不同实现不同的粘贴操作。若第一内容粘贴指令为单一粘贴指令,可仅粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;若第一内容粘贴指令为交叉粘贴指令,还可以实现交叉粘贴多条剪贴板内容。因而,利用本发明实施例的方案在用户进行复制粘贴时,不仅可以粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,而且还实现交叉粘贴多条剪贴板内容,从而丰富了移动终端中复制粘贴功能的实现方式,满足了用户对不同的复制粘贴方式的需求。从而,利用本发明实施例的方案提高了用户对移动终端的使用体验。It can be seen from the above that in the embodiment of the present invention, different paste operations can be implemented on the paste interface of the mobile terminal according to the type of the first content paste instruction sent by the user. If the first content paste instruction is a single paste instruction, only the clipboard content with the minimum time interval between the issuing time of the single paste instruction can be pasted; if the first content paste instruction is a cross paste instruction, cross paste of multiple clipboards can also be realized content. Therefore, using the scheme of the embodiment of the present invention, when the user is copying and pasting, not only the clipboard content with the shortest time interval from the issuing time of a single paste command can be pasted, but also multiple clipboard contents can be pasted crosswise, thus enriching the mobile The implementation of the copy and paste function in the terminal satisfies the needs of users for different copy and paste methods. Therefore, using the solution of the embodiment of the present invention improves the user's experience of using the mobile terminal.
第四实施例Fourth embodiment
图10是本发明第四实施例的移动终端的框图。图10所示的移动终端包括:至少一个处理器501、存储器502、至少一个网络接口504和其他用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统505。FIG. 10 is a block diagram of a mobile terminal of a fourth embodiment of the present invention. The mobile terminal shown in FIG. 10 includes: at least one processor 501 , a memory 502 , at least one network interface 504 and other user interfaces 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 505 in FIG. 10 for clarity of illustration.
其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.
可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRam bus RAM,DRRAM)。本文描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) And direct memory bus random access memory (DirectRam bus RAM, DRRAM). Memory 502 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 .
其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .
在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令,处理器501用于:In the embodiment of the present invention, by calling the program or instruction stored in the memory 502, specifically, the program or instruction stored in the application program 5022, the processor 501 is used to:
在移动终端的粘贴界面获取用户的第一内容粘贴指令,并判断第一内容粘贴指令的类型;Obtaining the user's first content pasting instruction on the pasting interface of the mobile terminal, and judging the type of the first content pasting instruction;
若第一内容粘贴指令为单一粘贴指令,获取第一目标剪贴板内容,并将第一目标剪贴板内容粘贴到粘贴界面的粘贴区域;其中第一目标剪贴板内容为用户已复制的剪贴板内容中复制时间与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;If the first content paste command is a single paste command, obtain the content of the first target clipboard, and paste the content of the first target clipboard into the paste area of the paste interface; wherein the content of the first target clipboard is the content of the clipboard copied by the user The clipboard content with the smallest time interval between the time of copying and the time of issuing a single paste command;
若第一内容粘贴指令为交叉粘贴指令,在粘贴界面显示悬浮窗口,并在悬浮窗口中显示预定个数的第二目标剪贴板内容,其中第二目标剪贴板内容选自于用户已复制的剪贴板内容;If the first content paste instruction is a cross paste instruction, a floating window is displayed on the paste interface, and a predetermined number of second target clipboard contents are displayed in the floating window, wherein the second target clipboard contents are selected from the clipboards copied by the user. board content;
接收用户对一个或多个第二目标剪贴板内容发送的第二内容粘贴指令,并根据第二内容粘贴指令将一个或多个第二目标剪贴板内容分别粘贴到粘贴界面的粘贴区域。receiving a second content paste instruction sent by the user for one or more second target clipboard contents, and respectively pasting the one or more second target clipboard contents into the paste area of the paste interface according to the second content paste instruction.
上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware.
可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Equipment (Programmable LogicDevice, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of this application, or in combination.
对于软件实现,可通过执行本文功能的模块(例如过程、函数等)来实现本文的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the techniques herein can be implemented through modules (eg, procedures, functions, etc.) that perform the functions herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.
可选地,处理器501还用于:获取用户对粘贴界面的预定区域的第一操作的类型;在预设的操作类型和操作指令的第一对应关系中查找与用户的第一操作的类型对应的操作指令;若第一操作的类型为单击操作,通过单击操作获得的第一内容粘贴指令为单一粘贴指令;若第一操作的类型为按压、双击或长按,通过按压、双击或长按操作获得的第一内容粘贴指令为交叉粘贴指令。Optionally, the processor 501 is further configured to: acquire the type of the user's first operation on the predetermined area of the pasting interface; search for the type of the user's first operation in the first corresponding relationship between the preset operation type and the operation instruction Corresponding operation instructions; if the type of the first operation is a single-click operation, the first content paste instruction obtained by the single-click operation is a single paste instruction; if the type of the first operation is press, double-click or long press, Or the first content paste instruction obtained by the long press operation is a cross paste instruction.
其中,粘贴界面的预定区域包括粘贴界面的粘贴按钮对应的区域,其中粘贴按钮通过点击粘贴界面的粘贴区域而显示。Wherein, the predetermined area of the paste interface includes the area corresponding to the paste button of the paste interface, wherein the paste button is displayed by clicking the paste area of the paste interface.
可选地,处理器501还用于:若第一内容粘贴指令为交叉粘贴指令,在粘贴界面显示悬浮窗口;从用户已复制的剪贴板内容中获取预定个数的第二目标剪贴板内容;在悬浮窗口中按照预定顺序显示预定个数的第二目标剪贴板内容。Optionally, the processor 501 is further configured to: if the first content paste instruction is a cross paste instruction, display a floating window on the paste interface; obtain a predetermined number of second target clipboard contents from the clipboard contents copied by the user; A predetermined number of second target clipboard contents are displayed in a predetermined order in the floating window.
可选地,处理器501还用于:分别获取预定个数的第二目标剪贴板内容的复制时间;按照第二目标剪贴板内容的复制时间与交叉粘贴指令的发出时间的时间间隔由小到大的顺序显示预定个数的第二目标剪贴板内容。Optionally, the processor 501 is further configured to: respectively acquire the copying time of a predetermined number of second target clipboard contents; A predetermined number of second target clipboard contents are displayed in the largest order.
其中,预定个数根据移动终端的内存大小或者用户的预先设置确定。Wherein, the predetermined number is determined according to the memory size of the mobile terminal or the user's preset settings.
可选地,处理器501还用于:获取用户对一个或多个第二目标剪贴板内容的第二操作的类型;在预设的操作类型和操作指令的第二对应关系中查找与用户的第二操作的类型对应的操作指令对应的操作指令,并将查找到的操作指令作为第二内容粘贴指令。Optionally, the processor 501 is further configured to: acquire the type of the second operation performed by the user on one or more second target clipboard contents; The operation instruction corresponding to the operation instruction corresponding to the type of the second operation is used as the second content pasting instruction.
可选地,作为另一个实施例,处理器501还用于:Optionally, as another embodiment, the processor 501 is further configured to:
在悬浮窗口显示关闭按钮;接收用户通过点击关闭按钮发送的关闭指令,根据关闭指令关闭悬浮窗口。Display a close button on the floating window; receive the close instruction sent by the user by clicking the close button, and close the floating window according to the close instruction.
移动终端50能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 50 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
由上可以看出,本发明实施例中,在移动终端的粘贴界面可根据用户发送的第一内容粘贴指令的类型的不同实现不同的粘贴操作。当第一内容粘贴指令为单一粘贴指令时,可仅粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容;当第一内容粘贴指令为交叉粘贴指令时,还可以实现交叉粘贴多条剪贴板内容。因而,利用本发明实施例的方案在用户进行复制粘贴时,不仅可以粘贴与单一粘贴指令的发出时间的时间间隔最小的剪贴板内容,而且还实现交叉粘贴多条剪贴板内容,从而丰富了移动终端中复制粘贴功能的实现方式,满足了用户对不同的复制粘贴方式的需求。从而,利用本发明实施例的方案提高了用户对移动终端的使用体验。It can be seen from the above that in the embodiment of the present invention, different paste operations can be implemented on the paste interface of the mobile terminal according to the type of the first content paste instruction sent by the user. When the first content paste instruction is a single paste instruction, only the clipboard content with the minimum time interval between the issuing time of the single paste instruction can be pasted; when the first content paste instruction is a cross paste instruction, multiple cross paste can also be realized Clipboard content. Therefore, using the scheme of the embodiment of the present invention, when the user is copying and pasting, not only the clipboard content with the shortest time interval from the issuing time of a single paste command can be pasted, but also multiple clipboard contents can be pasted crosswise, thus enriching the mobile The implementation of the copy and paste function in the terminal satisfies the needs of users for different copy and paste methods. Therefore, using the solution of the embodiment of the present invention improves the user's experience of using the mobile terminal.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.
以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover all Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610505397.9A CN106201187A (en) | 2016-06-28 | 2016-06-28 | A kind of Contents of clipboard processing method and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610505397.9A CN106201187A (en) | 2016-06-28 | 2016-06-28 | A kind of Contents of clipboard processing method and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106201187A true CN106201187A (en) | 2016-12-07 |
Family
ID=57462713
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610505397.9A Pending CN106201187A (en) | 2016-06-28 | 2016-06-28 | A kind of Contents of clipboard processing method and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106201187A (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106843559A (en) * | 2015-12-07 | 2017-06-13 | 广州市动景计算机科技有限公司 | User instruction is recognized and processing method, device |
| CN107291443A (en) * | 2017-05-05 | 2017-10-24 | 北京金山安全软件有限公司 | Information processing method and device and terminal equipment |
| CN107613137A (en) * | 2017-09-30 | 2018-01-19 | 珠海市魅族科技有限公司 | A kind of method for transferring information, device, terminal and readable storage medium storing program for executing |
| CN110008043A (en) * | 2019-04-09 | 2019-07-12 | 中国联合网络通信集团有限公司 | Paste method and paste system |
| CN110032457A (en) * | 2018-12-29 | 2019-07-19 | 阿里巴巴集团控股有限公司 | A kind of duplication method of attaching and device |
| CN110347321A (en) * | 2018-04-02 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of formation gathering method and device |
| CN112698763A (en) * | 2020-12-30 | 2021-04-23 | 惠州Tcl移动通信有限公司 | Content copying method, intelligent terminal and storage medium |
| CN113032068A (en) * | 2021-03-23 | 2021-06-25 | 维沃移动通信有限公司 | Display method and electronic device |
| WO2021136183A1 (en) * | 2019-12-31 | 2021-07-08 | 维沃移动通信有限公司 | Paste control method and electronic device |
| CN114968464A (en) * | 2018-12-14 | 2022-08-30 | Oppo广东移动通信有限公司 | Display method, device, terminal and storage medium for recent content |
| CN120335693A (en) * | 2024-01-10 | 2025-07-18 | 荣耀终端股份有限公司 | Cross-terminal interaction method, device, system and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102253927A (en) * | 2010-05-19 | 2011-11-23 | 深圳市金蝶中间件有限公司 | Copy and paste method and device |
| CN104657341A (en) * | 2015-02-06 | 2015-05-27 | 深圳市艾优尼科技有限公司 | Terminal |
-
2016
- 2016-06-28 CN CN201610505397.9A patent/CN106201187A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102253927A (en) * | 2010-05-19 | 2011-11-23 | 深圳市金蝶中间件有限公司 | Copy and paste method and device |
| CN104657341A (en) * | 2015-02-06 | 2015-05-27 | 深圳市艾优尼科技有限公司 | Terminal |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106843559A (en) * | 2015-12-07 | 2017-06-13 | 广州市动景计算机科技有限公司 | User instruction is recognized and processing method, device |
| CN107291443A (en) * | 2017-05-05 | 2017-10-24 | 北京金山安全软件有限公司 | Information processing method and device and terminal equipment |
| CN107613137A (en) * | 2017-09-30 | 2018-01-19 | 珠海市魅族科技有限公司 | A kind of method for transferring information, device, terminal and readable storage medium storing program for executing |
| CN110347321A (en) * | 2018-04-02 | 2019-10-18 | 阿里巴巴集团控股有限公司 | A kind of formation gathering method and device |
| CN114968464A (en) * | 2018-12-14 | 2022-08-30 | Oppo广东移动通信有限公司 | Display method, device, terminal and storage medium for recent content |
| CN110032457A (en) * | 2018-12-29 | 2019-07-19 | 阿里巴巴集团控股有限公司 | A kind of duplication method of attaching and device |
| CN110032457B (en) * | 2018-12-29 | 2023-05-30 | 创新先进技术有限公司 | Method and device for copying and pasting |
| CN110008043A (en) * | 2019-04-09 | 2019-07-12 | 中国联合网络通信集团有限公司 | Paste method and paste system |
| WO2021136183A1 (en) * | 2019-12-31 | 2021-07-08 | 维沃移动通信有限公司 | Paste control method and electronic device |
| CN112698763A (en) * | 2020-12-30 | 2021-04-23 | 惠州Tcl移动通信有限公司 | Content copying method, intelligent terminal and storage medium |
| CN113032068A (en) * | 2021-03-23 | 2021-06-25 | 维沃移动通信有限公司 | Display method and electronic device |
| CN120335693A (en) * | 2024-01-10 | 2025-07-18 | 荣耀终端股份有限公司 | Cross-terminal interaction method, device, system and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106201187A (en) | A kind of Contents of clipboard processing method and mobile terminal | |
| CN106055202B (en) | A kind of duplication method of attaching and mobile terminal | |
| US20200012411A1 (en) | Method for processing icons and mobile terminal | |
| US11113460B2 (en) | Multi-path copying and pasting method and mobile terminal | |
| US10228835B2 (en) | Method for displaying information, and terminal equipment | |
| CN109388463B (en) | Split screen display method of tablet personal computer application software, storage medium and tablet personal computer | |
| CN104915101A (en) | Method and apparatus for displaying pop-up | |
| CN107391012A (en) | A kind of information cuing method and mobile terminal | |
| CN106371827A (en) | Message display method and terminal | |
| CN105786294A (en) | Page access path return method and apparatus | |
| CN106919307A (en) | A kind of text clone method and mobile terminal | |
| CN106777380A (en) | Browser page display method, device and terminal | |
| CN106201741A (en) | A kind of content processing method and mobile terminal | |
| CN104808903A (en) | Text selection method and text selection device | |
| CN106648379B (en) | Select text filed method and device | |
| CN107590228A (en) | A kind of page content processing method and mobile terminal | |
| CN109040767B (en) | Live broadcast room loading method, system, server and storage medium | |
| CN106527884A (en) | Target object processing method and mobile terminal | |
| CN111199136B (en) | Methods, devices and equipment for displaying document content | |
| CN103870191A (en) | Method and electronic equipment for saving webpage | |
| CN106201295B (en) | Message copying method and device and intelligent terminal | |
| CN105094583A (en) | Quick operation method and apparatus for digital terminal with touch screen | |
| CN103336666A (en) | HID one-touch internet access method and HID using same | |
| CN105827822A (en) | File name display processing method and mobile terminal | |
| WO2026001352A1 (en) | Content filling interaction method, commodity information publishing method, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |