CN107291564B - Information copying and pasting method and device and electronic equipment - Google Patents

Information copying and pasting method and device and electronic equipment Download PDF

Info

Publication number
CN107291564B
CN107291564B CN201710425944.7A CN201710425944A CN107291564B CN 107291564 B CN107291564 B CN 107291564B CN 201710425944 A CN201710425944 A CN 201710425944A CN 107291564 B CN107291564 B CN 107291564B
Authority
CN
China
Prior art keywords
information
pasting
target window
copying
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.)
Active
Application number
CN201710425944.7A
Other languages
Chinese (zh)
Other versions
CN107291564A (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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710425944.7A priority Critical patent/CN107291564B/en
Publication of CN107291564A publication Critical patent/CN107291564A/en
Application granted granted Critical
Publication of CN107291564B publication Critical patent/CN107291564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

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

Abstract

The invention provides an information copying and pasting method, an information copying and pasting device and electronic equipment, wherein the method comprises the following steps: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when the dragging operation of the target window is detected; when the fact that the dragging operation is stopped being executed on the target window is detected, selecting a target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window; the copied information is pasted to the target area. The method realizes that the copied information is displayed through the target window and pasted to the target area in the searched editable area, and solves the technical problems that the copied information cannot be displayed and the copy and paste cannot be carried out due to conventional copy and paste operations such as long press, double click and the like in the prior art.

Description

Information copying and pasting method and device and electronic equipment
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a copying and pasting method, a copying and pasting device and electronic equipment.
Background
When mobile terminals such as mobile phones and tablet computers are used in daily life, copying and pasting are often used. The conventional copy and paste process is to receive a copy operation of a user, store the copy information in a clipboard of the system, and then take out the information in the clipboard and paste the information in a target area.
However, since the system clipboard can store only one piece of information at most, it cannot provide the historical copy information of the user, so that the copy and paste operation is complicated and not smooth enough.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, a first objective of the present invention is to provide an information copy and paste method, so as to display copied information and paste it to a target area in a searched editable area, and solve the technical problems in the prior art that the copied information cannot be displayed and that the copy and paste cannot be performed due to a conventional paste operation.
A second object of the present invention is to provide an information copying and pasting apparatus.
A third object of the invention is to propose an electronic device.
A fourth object of the invention is to propose a non-transitory computer-readable storage medium.
A fifth object of the invention is to propose a computer program product.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides an information copying and pasting method, including: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when the dragging operation of the target window is detected; when the fact that the dragging operation is stopped being executed on the target window is detected, selecting a target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window; the copied information is pasted to the target area.
Optionally, as a first possible implementation manner of the first aspect, after receiving the copy instruction, the method further includes: generating a time stamp of the replication instruction; and storing the copied information carried in the copy instruction and the time stamp as a history copy record in a system clipboard database.
Optionally, as a second possible implementation manner of the first aspect, before displaying the target window in the page, the method further includes: and calling and redrawing a target window, wherein the target window comprises a region for displaying copied information and a control, and the control is used for referring to the historical copy record of the system clipboard database.
Optionally, as a third possible implementation manner of the first aspect, after the detection that the dragging operation is stopped being performed on the target window, the method further includes: and if the operation of referring to and selecting the history copy record through the control is detected, pasting the selected history copy record to the target area.
Optionally, as a fourth possible implementation manner of the first aspect, after the page searches for the editable area, the method further includes: and if the fact that the editable area is not searched in the page in the process of executing the dragging operation on the target window is detected, stopping displaying the target window.
Optionally, as a fifth possible implementation manner of the first aspect, pasting the copied information to the target area includes: calling an interface of a target area; and pasting the copied information to the target area in a format corresponding to the target area through the interface.
The information copying and pasting method comprises the steps of firstly receiving a copying instruction carrying copied information, then displaying a target window in a page, displaying the copied information in the target window, searching an editable area in the page when the dragging operation of the target window is detected, selecting a target area from the searched editable area according to the distance between the end position of the dragging operation and the target window when the dragging operation of the target window is stopped, and pasting the copied information to the target area. Therefore, the copied information is displayed through the target window and pasted to the target area in the searched editable area, and the technical problems that the copied information cannot be displayed and the copy and paste cannot be carried out due to conventional copy and paste operations such as long press, double click and the like in the prior art are solved.
In order to achieve the above object, a second embodiment of the present invention provides an information copying and pasting apparatus, including: the receiving module is used for receiving a copying instruction, and the copying instruction carries copied information; the display module is used for displaying a target window in a page, wherein the target window displays copied information; the searching module is used for searching the editable area on the page when the dragging operation of the target window is detected; the selection module is used for selecting a target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window when the dragging operation of the target window is detected to be stopped; and the pasting module is used for pasting the copied information to the target area.
Optionally, as a first possible implementation manner of the second aspect, the information copying and pasting device further includes: the generating module is used for generating a time stamp of the copying instruction; and the storage module is used for storing the copied information carried in the copying instruction and the timestamp as historical copying records into a system clipboard database.
Optionally, as a second possible implementation manner of the second aspect, the information copying and pasting device further includes: and the redrawing module is used for calling and redrawing the target window, wherein the target window comprises a region for displaying the copied information and a control, and the control is used for referring to the historical copy record of the system clipboard database.
Optionally, as a third possible implementation manner of the second aspect, the pasting module is further configured to, if an operation of referring to and selecting the historical copy record through the control is detected, paste the selected historical copy record to the target area.
Optionally, as a fourth possible implementation manner of the second aspect, the display module is further configured to stop displaying the target window if no editable area is searched in the page in the process of detecting that the drag operation is performed on the target window.
Optionally, as a fifth possible implementation manner of the second aspect, the pasting module includes: the calling unit is used for calling an interface of the target area; and the pasting unit is used for pasting the copied information to the target area in a format corresponding to the target area through the interface.
The information copying and pasting device of the embodiment of the invention displays the target window in the page by receiving the copying instruction carrying the copied information, the target window displays the copied information, when the dragging operation of the target window is detected, the editable area is searched in the page, when the dragging operation of the target window is detected to be stopped, the target area is selected from the searched editable area according to the distance between the ending position of the dragging operation and the target window, and the copied information is pasted to the target area. Therefore, the copied information is displayed through the target window and pasted to the target area in the searched editable area, and the technical problems that the copied information cannot be displayed and the copy and paste cannot be carried out due to conventional copy and paste operations such as long press, double click and the like in the prior art are solved.
To achieve the above object, an embodiment of a third aspect of the present invention provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, and is used for executing the information copying and pasting method of the first aspect.
In order to achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to execute an information copy-paste method, the method including: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when the dragging operation of the target window is detected; when the fact that the dragging operation is stopped being executed on the target window is detected, selecting a target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window; the copied information is pasted to the target area.
In order to achieve the above object, a fifth aspect of the present invention provides a computer program product, wherein when instructions of the computer program product are executed by a processor, the computer program product executes an information copy and paste method, and the method includes: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when the dragging operation of the target window is detected; when the fact that the dragging operation is stopped being executed on the target window is detected, selecting a target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window; the copied information is pasted to the target area.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart illustrating an information copying and pasting method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another information copying and pasting method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an interaction of a target window according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an information copying and pasting method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an information copying and pasting apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another information copying and pasting apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another information copying and pasting apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an embodiment of an electronic device according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
An information copying and pasting method, an information copying and pasting device, and an electronic device according to embodiments of the present invention are described below with reference to the accompanying drawings.
When mobile terminals such as mobile phones and tablet computers are used in daily life, copying and pasting are often used. The conventional copy and paste process is to receive a copy operation of a user, store the copy information in a clipboard of the system, and then take out the information in the clipboard and paste the information in a target area.
However, since the system clipboard can store only one piece of information at most, it cannot provide the user's history copy information, and cannot look up the history copy information, so that the copy and paste operation is complicated and not smooth enough.
Therefore, an embodiment of the present invention provides an information copying and pasting method, including: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when a target dragging operation on a target window is detected; when the fact that the dragging operation is stopped being executed on the target window is detected, selecting a target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window; the copied information is pasted to the target area.
Fig. 1 is a schematic flow chart of an information copying and pasting method according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
s101, receiving a copying instruction, wherein the copying instruction carries copied information.
For example, during the process of using the mobile terminal such as a mobile phone and a tablet computer, the user can select the content to be copied by long-time pressing operation. At this time, the application program executing the embodiment of the present invention may receive a copy instruction generated by the system clipboard, and the copy instruction carries copied information, such as text information.
S102, displaying a target window in the page, wherein the target window displays copied information.
In an embodiment of the invention, after receiving the copy instruction, the application displays the target window in the page, and displays the copied information in the target window.
The method and the device for displaying the copied information through the target window can enable a user to conveniently know whether the content which the user wants to copy is copied successfully or not, and meanwhile, the visibility is improved.
S103, when the dragging operation of the target window is detected, searching an editable area on the page.
The editable area is an area in which operations such as editing and pasting can be performed.
In an embodiment of the present invention, the user may move the target window through a drag operation to implement moving the copied message to the area to be pasted.
When detecting that the target window starts to be dragged, the mobile terminal system scans the interface of the editable area in the current activity and the position of the editable area in the page. And in the process of dragging the target window, the position of the target window in the page is dynamically adjusted.
And S104, when the fact that the target window stops executing the dragging operation is detected, selecting the target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window.
When the user removes the finger or the finger stops moving, the mobile terminal system can detect that the target window stops dragging, and at this time, according to the distance between the searched editable area and the position of the target window when the dragging operation is terminated, the editable area with the closest distance is selected as the target area.
S105, pasting the copied information to the target area.
After the target area is selected, an interface of the target area is called, that is, an interface of an editable area serving as the target area is called, so that the copied information is directly pasted to the target area through the interface according to a format corresponding to the target area.
For example, the copied information has 10 characters in total, and the target area can store 8 characters at most per line, and the copied information needs to be pasted to the target area in two lines. For another example, the target area is not allowed to have a special character "/", and when the special character exists in the copied information, the special character needs to be removed and then pasted to the target area.
The pasting method in the embodiment does not need to use a long-time pressing or double-click mode for pasting, so that the copying and pasting are more convenient and faster, and the copying and pasting efficiency is improved.
In addition, it should be noted that, before the pasting operation is performed, if a character already exists in the target area, the copied information is pasted from the end of the existing character.
In the information copying and pasting method of this embodiment, a copying instruction carrying copied information is received first, then a target window is displayed in a page, the target window displays the copied information, when a dragging operation on the target window is detected, an editable area is searched in the page, when a dragging operation on the target window is detected to be stopped, a target area is selected from the searched editable area according to a distance between an end position of the dragging operation and the target window, and the copied information is pasted to the target area. Therefore, the copied information is displayed through the target window and pasted to the target area in the searched editable area, and the technical problems that the copied information cannot be displayed and the copy and paste cannot be carried out due to conventional copy and paste operations such as long press, double click and the like in the prior art are solved.
To clearly illustrate the previous embodiment, this embodiment provides another information copying and pasting method, fig. 2 is a schematic flow chart of the another information copying and pasting method provided by the embodiment of the present invention, and as shown in fig. 2, the information copying and pasting method includes:
s201, receiving a copying instruction, wherein the copying instruction carries copied information.
For example, during the process of using the mobile terminal such as a mobile phone and a tablet computer, the user can select the content to be copied by long-time pressing operation. At this time, the application program executing the embodiment of the present invention may receive a copy instruction generated by the system clipboard, and the copy instruction carries copied information, such as text information.
S202, generating a time stamp of the copy instruction.
Wherein the time stamp indicates the time when the copy instruction was received.
After receiving the copy instruction, the application program generates a time stamp of the copy instruction to record the time of the copy operation, so that the copy information of the latest time can be conveniently taken out.
And S203, storing the copied information carried in the copy instruction and the timestamp as a history copy record in a system clipboard database.
In the embodiment of the present invention, a system clipboard database for storing copy information may be created in the system in advance, and a corresponding call interface and content field content may be provided.
After the time stamp of the copy instruction is generated, the copied information carried in the copy instruction and the time stamp of the copy instruction are used as historical copy records and stored in a system clipboard database.
When the user performs the copy and paste operation each time, the system clipboard stores the copied information and the corresponding timestamp into the system clipboard database, so that the user can look up the history of the copied information in the past.
And S204, calling and redrawing the target window.
After the system clipboard has saved the copy information and the corresponding timestamp to the system clipboard database, the system begins to invoke the target window.
In order to improve the visibility of the target window, the mobile terminal system can redraw the size and the position of the target window according to the size of a page or a screen, and redraw the background color, the display time and the file adaptation of the target window.
In this embodiment, the target window may include a control for referring to the historical copy record of the system clipboard database in addition to the area for displaying the copied information.
Fig. 3 is a schematic diagram of interaction of a target window according to an embodiment of the present invention. The target window shown in fig. 3 displays the copy information "Internet final", that is, "Internet final" is the content to be copied currently and "Historical Record" is the control in the target window, and when "Historical Record" is clicked, the Historical copy Record can be pulled down.
S205, displaying the target window containing the copied information in the page.
Specifically, the system clipboard database interface is called, and the copy information of the latest time is fetched from the content field of the system clipboard database and displayed in the target window area. And then the target window is displayed in the page. Therefore, the user can see the copied information through the target window in the page, and the visibility of the copied information is improved.
S206, when the dragging operation of the target window is detected, searching the page for an editable area.
When detecting that the target window starts to be dragged, the mobile terminal system scans the interface of the editable area in the current activity and the position of the editable area in the page. And in the process of dragging the target window, the position of the target window in the page is dynamically adjusted.
And if the system does not search the editable area in the page in the dragging process of the target window, stopping displaying the target window in the page.
And S207, when the fact that the dragging operation is stopped to be executed on the target window is detected, selecting the target area from the searched editable areas according to the distance between the end position of the dragging operation and the target window.
And S208, pasting the copied information to the target area.
Since steps S207 to S208 are similar to steps S104 to S105 in the above embodiment, they are not described again here.
And S209, if the operation of referring to and selecting the history copy record through the control is detected, pasting the selected history copy record to the target area.
In actual applications, the same content may be copied and pasted twice or more times. For example, a user inputs a song name of a song in a search engine and searches, and after specific information of the song is known, the song name in the search engine is copied and pasted into a search box of a music player for searching. Later, the user wants to share the song with the friend while chatting with the friend through the chatting software. At this time, after finishing the pasting operation of other contents, the user can conveniently and quickly finish the pasting operation of the song title in the chat interface editing frame through the history copy record and send the song title to the friend.
Specifically, after pasting the copied information to the target area, the user can refer to whether or not the content desired to be copied exists in the history copy record by clicking a control in the target window. When the historical copy record contains the content to be copied, the historical copy record is selected, the system detects the operation of consulting and selecting the historical copy record, the selected historical copy record is pasted to the target area, and finally the pasted content in the target area comprises the copied information and the selected historical copy record.
According to the copy and paste method in the implementation of the invention, the copied information is displayed in the target window and the control for looking up and selecting the historical copy record is used, so that the conventional copy and paste operation is replaced by an information interaction mode, the copy and paste operation is simpler and more convenient, and the convenience and visibility of copy and paste are improved.
In order to more clearly illustrate the above embodiment, the information copying and pasting method proposed by the present invention is described below with reference to fig. 4 by a specific embodiment.
As shown in fig. 4, the information copying and pasting method includes:
s401, the user copies the information.
When the user uses the mobile terminal, the user can copy the content to be copied by long pressing the copy button appeared. At this time, the system clipboard may generate a copy instruction according to the copy operation.
S402, storing the copy information in a system clipboard database.
And the system clipboard calls a system clipboard database interface, and stores the copying information and the time stamp of the copying instruction in a pre-established system clipboard database.
For illustrative purposes, the redrawing of the target window and the retrieval of the latest copy information from the system clipboard database occur simultaneously. In fig. 4, after step S402, this is represented by two branches.
And S403, redrawing the target window.
Specifically, the system redraws the target window, such as drawing the size of the target window, determining the position of the target window on the page, rendering the background color of the target window, drawing the draggable attribute of the target window, and the like.
When the target window is redrawn, steps S404 and S405 are executed simultaneously.
S404, data content is captured from the content field in the system clipboard database.
Specifically, the system clipboard database interface is called to capture data content from the content field in the system clipboard database. The captured data content comprises all past copy information and corresponding timestamps.
S405, the latest copy information is captured.
And capturing the latest copied information from the captured data content according to the time stamp.
S406, adding the copy information in the target window.
And adding the captured latest copy information into the redrawn target window.
S407, displaying the target window.
S408, judging whether the page has an editable interface.
In the process that the user drags the target window, the system can judge whether the interface of the editable area exists in the page or not by scanning the interface of the editable area in the current activity and the position of the editable area in the page at preset time intervals. For example, it may be scanned every 1 second for a total of 15 scans.
S409, the target window is displayed for 15 seconds and disappears.
If the interface of the editable area is still not found by scanning 15 times, the target window disappears.
And S410, reading the position of the editable area on the page.
In the scanning process, if the interface of the editable area is scanned, the position of the editable area on the page is read.
S411, dragging the target window to the upper part of the editable area.
If the user drags the target window above the editable area, of course, other directions are also possible, such as left side, right side, etc., the distance between the target window and the editable area is calculated.
And S412, calling an editable area interface, and pasting the copied information to the editable area.
If the distance between the target window and the editable area is smaller than a preset threshold value, such as 0.5 mm, the system calls the editable area interface, and directly pastes the copied information on the target window to the editable area according to the format corresponding to the editable area, so that a long-press or double-click mode is not needed during pasting, the copying and pasting operation is more convenient and faster, and the pasting efficiency is improved.
In order to implement the above embodiment, the present invention further provides an information copying and pasting apparatus.
Fig. 5 is a schematic structural diagram of an information copying and pasting apparatus according to an embodiment of the present invention.
As shown in fig. 5, the information copying and pasting apparatus includes: a receiving module 510, a display module 520, a search module 530, a selection module 540, and a paste module 550.
The receiving module 510 is configured to receive a copy instruction, where the copy instruction carries copied information.
The display module 520 is configured to display a target window in the page, wherein the target window displays the copied information.
The search module 530 is configured to search the page for an editable area when a drag operation on the target window is detected.
The selection module 540 is configured to, when it is detected that the drag operation is stopped to be performed on the target window, select the target region from the searched editable regions according to a distance between an end position of the drag operation and the target window.
The pasting module 550 is used for pasting the copied information to the target area.
As one possible implementation manner of the information copying and pasting apparatus of the present invention, as shown in fig. 6, the pasting module 550 includes: a calling unit 551 and a pasting unit 552.
The calling unit 551 is used for calling an interface of the target area.
The pasting unit 552 is configured to paste the copied information to the target area in a format corresponding to the target area through the interface.
It should be noted that the foregoing explanation of the embodiment of the information copying and pasting method is also applicable to the information copying and pasting apparatus of this embodiment, and is not repeated here.
Based on the above embodiments, the embodiments of the present invention further provide another possible implementation manner of the information copying and pasting apparatus. Fig. 7 is a schematic structural diagram of another information copying and pasting apparatus according to an embodiment of the present invention, where on the basis of the previous embodiment, the information copying and pasting apparatus further includes: a generating module 560, a storing module 570, and a redrawing module 580.
The generating module 560 is configured to generate a timestamp of the replication instruction.
The storage module 570 is configured to store the copied information and the timestamp carried in the copy instruction as a history copy record in the system clipboard database.
The redraw module 580 is used to invoke and redraw a target window, where the target window includes an area for displaying copied information and a control for referring to a historical copy record of the system clipboard database.
It should be noted that the foregoing explanation of the embodiment of the information copying and pasting method is also applicable to the information copying and pasting apparatus of this embodiment, and is not repeated here.
According to the information pasting device provided by the embodiment of the invention, the target window is displayed in the page by receiving the copying instruction carrying the copied information, the target window displays the copied information, the editable area is searched in the page when the dragging operation of the target window is detected, and the target area is selected from the searched editable area according to the distance between the ending position of the dragging operation and the target window and the copied information is pasted to the target area when the dragging operation of the target window is stopped. Therefore, the copied information is displayed through the target window and pasted to the target area in the searched editable area, and the technical problems that the copied information cannot be displayed and the copy and paste cannot be carried out due to conventional copy and paste operations such as long press, double click and the like in the prior art are solved.
Fig. 8 is a schematic structural diagram of an embodiment of an electronic device of the present invention, which may implement the flows of the embodiments shown in fig. 1, fig. 2, and fig. 4 of the present invention, and as shown in fig. 8, the electronic device may include: the electronic device comprises a shell 810, a processor 820, a memory 830, a circuit board 840 and a power supply circuit 850, wherein the circuit board 840 is arranged inside a space enclosed by the shell 810, and the processor 820 and the memory 830 are arranged on the circuit board 840; a power supply circuit 850 for supplying power to each circuit or device of the electronic apparatus; memory 830 is used to store executable program code; the processor 820 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 830, so as to execute the information copy and paste method according to any of the foregoing embodiments.
For the specific execution process of the above steps by the processor 820 and the further steps executed by the processor 820 by running the executable program code, reference may be made to the description of the embodiments shown in fig. 1, fig. 2, and fig. 4 of the present invention, which is not described herein again.
The electronic device exists in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) A server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
To achieve the above object, the present invention also proposes a non-transitory computer-readable storage medium, in which instructions are executed by a processor of an electronic device to enable the electronic device to perform an information copy-paste method, the method comprising: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when the target operation starting to be executed on the target window is detected; when the target operation is detected to be stopped being executed on the target window, selecting a target area from the searched editable areas according to the distance between the target window and the target window; the copied information is pasted to the target area.
In order to achieve the above object, the present invention further proposes a computer program product, wherein when instructions are executed by a processor, an information copy and paste method is performed, the method comprising: receiving a replication instruction, wherein the replication instruction carries replicated information; displaying a target window in the page, wherein the target window displays copied information; searching an editable area on a page when the target operation starting to be executed on the target window is detected; when the target operation is detected to be stopped being executed on the target window, selecting a target area from the searched editable areas according to the distance between the target window and the target window; the copied information is pasted to the target area.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (15)

1. An information copying and pasting method is characterized by comprising the following steps:
receiving a replication instruction, wherein the replication instruction carries replicated information;
displaying a target window in a page, wherein the target window displays copied information;
searching an editable area on the page when the dragging operation of the target window is detected;
when the dragging operation is detected to stop being executed on the target window, selecting a target area from the searched editable area according to the distance between the termination position of the dragging operation and the searched editable area;
pasting the copied information to the target area.
2. The information copying and pasting method of claim 1, wherein after receiving the copy command, the method further comprises:
generating a timestamp of the replication instruction;
and storing the copied information carried in the copying instruction and the timestamp as a historical copying record in a system clipboard database.
3. The information copying and pasting method according to claim 2, wherein before displaying the target window in the page, the method further comprises:
and calling and redrawing the target window, wherein the target window comprises a region for displaying copied information and a control, and the control is used for referring to the historical copy record of the system clipboard database.
4. The information copying and pasting method of claim 3, wherein after detecting that the dragging operation is stopped on the target window, the method further comprises:
and if the operation of referring to and selecting the historical copy record through the control is detected, pasting the selected historical copy record to the target area.
5. The information copying and pasting method according to any one of claims 1-4, wherein after the page searching for the editable area, further comprising:
and if the fact that the editable area is not searched in the page in the process of executing the dragging operation on the target window is detected, stopping displaying the target window.
6. The information copying and pasting method according to any one of claims 1 to 4, wherein pasting the copied information to the target area comprises:
calling an interface of the target area;
and pasting the copied information to the target area in a format corresponding to the target area through the interface.
7. An information copying and pasting apparatus, comprising:
the receiving module is used for receiving a copying instruction, and the copying instruction carries copied information;
the display module is used for displaying a target window in a page, wherein the target window displays copied information;
the searching module is used for searching an editable area on the page when the dragging operation of the target window is detected;
the selection module is used for selecting a target area from the searched editable area according to the distance between the termination position of the dragging operation and the searched editable area when the dragging operation is detected to be stopped to be executed on the target window;
and the pasting module is used for pasting the copied information to the target area.
8. The information copying and pasting device according to claim 7, further comprising:
the generating module is used for generating a time stamp of the copying instruction;
and the storage module is used for storing the copied information carried in the copying instruction and the timestamp as a historical copying record into a system clipboard database.
9. The information copying and pasting device according to claim 8, further comprising:
and the redrawing module is used for calling and redrawing the target window, wherein the target window comprises a region for displaying copied information and a control, and the control is used for referring to the historical copy record of the system clipboard database.
10. The information copying and pasting device according to claim 9, further comprising:
and the pasting module is also used for pasting the selected historical replication record to the target area if the operation of looking up and selecting the historical replication record through the control is detected.
11. The information copying and pasting apparatus as claimed in any one of claims 7 to 10, further comprising:
the display module is further configured to stop displaying the target window if no editable area is searched in the page in the process of detecting that the dragging operation is performed on the target window.
12. The information copying and pasting device according to any one of claims 7 to 10, wherein said pasting module comprises:
the calling unit is used for calling an interface of the target area;
and the pasting unit is used for pasting the copied information to the target area in a format corresponding to the target area through the interface.
13. An electronic device, comprising: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for executing the information copy and paste method of any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the information copy and paste method according to any one of claims 1 to 6.
15. A computer program product, wherein instructions, when executed by a processor, perform the information copy-and-paste method according to any of claims 1-6.
CN201710425944.7A 2017-06-08 2017-06-08 Information copying and pasting method and device and electronic equipment Active CN107291564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710425944.7A CN107291564B (en) 2017-06-08 2017-06-08 Information copying and pasting method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710425944.7A CN107291564B (en) 2017-06-08 2017-06-08 Information copying and pasting method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107291564A CN107291564A (en) 2017-10-24
CN107291564B true CN107291564B (en) 2020-06-26

Family

ID=60096842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710425944.7A Active CN107291564B (en) 2017-06-08 2017-06-08 Information copying and pasting method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107291564B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108803985B (en) * 2018-05-03 2021-03-02 网易(杭州)网络有限公司 Control data copying method and device
WO2020037520A1 (en) * 2018-08-21 2020-02-27 深圳市欢太科技有限公司 Method for rapidly copying and pasting text, terminal, and computer storage medium
CN111832267A (en) * 2019-03-28 2020-10-27 珠海金山办公软件有限公司 Cell pasting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617154A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Method and device for having control over content paste operation
CN104375980A (en) * 2014-11-18 2015-02-25 小米科技有限责任公司 Selection method and device for text content
CN104657038A (en) * 2015-02-06 2015-05-27 深圳市艾优尼科技有限公司 Method for processing content
CN106547442A (en) * 2015-09-18 2017-03-29 腾讯科技(深圳)有限公司 A kind of message treatment method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6954829B2 (en) * 2002-12-19 2005-10-11 Intel Corporation Non-speculative distributed conflict resolution for a cache coherency protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617154A (en) * 2013-11-29 2014-03-05 百度在线网络技术(北京)有限公司 Method and device for having control over content paste operation
CN104375980A (en) * 2014-11-18 2015-02-25 小米科技有限责任公司 Selection method and device for text content
CN104657038A (en) * 2015-02-06 2015-05-27 深圳市艾优尼科技有限公司 Method for processing content
CN106547442A (en) * 2015-09-18 2017-03-29 腾讯科技(深圳)有限公司 A kind of message treatment method and device

Also Published As

Publication number Publication date
CN107291564A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US10419823B2 (en) Method for controlling multimedia playing, apparatus thereof and storage medium
KR102113683B1 (en) Mobile apparatus providing preview by detecting rub gesture and control method thereof
KR102107491B1 (en) List scroll bar control method and mobile apparatus
EP2172837B1 (en) Touch input device and method for portable device
WO2017054623A1 (en) Method and device for starting application program, and electronic device
US9542949B2 (en) Satisfying specified intent(s) based on multimodal request(s)
EP2811388A2 (en) Portable terminal and user interface method in portable terminal
CN105812941A (en) Video playing method and device and electronic equipment
WO2022001341A1 (en) Application program tag generation method, application interface display method and device
CN108170342B (en) Application program interface display method and device, terminal and readable storage medium
CN107066188B (en) A kind of method and terminal sending screenshot picture
CN107291564B (en) Information copying and pasting method and device and electronic equipment
EP3033666A1 (en) Feedback for lasso selection
CN104166553A (en) Display method and electronic device
CN105302458A (en) Message display method and apparatus
US10409478B2 (en) Method, apparatus, and recording medium for scrapping content
CN112667118A (en) Method, apparatus and computer readable medium for displaying historical chat messages
CN108196675B (en) Interaction method and device for touch terminal and touch terminal
CN104503690A (en) Arrangement method and device for application icons
CN110968364A (en) Method and device for adding shortcut plug-in and intelligent equipment
JP2018508866A (en) Method and apparatus for displaying application page of mobile terminal
CN109460175B (en) Method and device for moving application icon, electronic terminal and medium
CN107728875A (en) A kind of switching method of functional mode, device and intelligent terminal
CN104978135A (en) Icon display method and device, and mobile terminal
CN111666023B (en) Interface display method and device, electronic equipment and readable storage medium

Legal Events

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