CN112231111A - Data pasting method and device, electronic equipment and storage medium - Google Patents

Data pasting method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112231111A
CN112231111A CN201910637017.0A CN201910637017A CN112231111A CN 112231111 A CN112231111 A CN 112231111A CN 201910637017 A CN201910637017 A CN 201910637017A CN 112231111 A CN112231111 A CN 112231111A
Authority
CN
China
Prior art keywords
data
copied
preset
data information
list
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
Application number
CN201910637017.0A
Other languages
Chinese (zh)
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 Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office Software Co Ltd
Original Assignee
Beijing Kingsoft Office Software Inc
Zhuhai Kingsoft Office Software Co Ltd
Wuhan Kingsoft Office 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 Office Software Inc, Zhuhai Kingsoft Office Software Co Ltd, Wuhan Kingsoft Office Software Co Ltd filed Critical Beijing Kingsoft Office Software Inc
Priority to CN201910637017.0A priority Critical patent/CN112231111A/en
Publication of CN112231111A publication Critical patent/CN112231111A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a data pasting method and device, electronic equipment and a storage medium. The scheme is as follows: receiving a selection instruction of a user for selecting first data information in a preset data list, wherein the preset data list comprises data information corresponding to a plurality of copied data, each copied data is obtained by copying the data to be copied according to a copying request of the user for the data to be copied corresponding to the copied data, acquiring the first copied data corresponding to the first data information based on the selection instruction, and pasting the first copied data in a specified area of a target page if a pasting instruction is received. By the technical scheme provided by the embodiment of the invention, the times of data copying are effectively reduced, pasting operation is convenient for a user, the probability of errors in the copying and pasting process is reduced, and the data pasting efficiency is improved.

Description

Data pasting method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data pasting method, an electronic device, and a storage medium.
Background
At present, when data in a document or a webpage is copied and pasted, the copied data of each time can be automatically covered with the copied data of the last time, and when the repeatability of the data is high, the times of copying and pasting required by a user are increased, so that inconvenience is brought to the copying and pasting operation of the user. In addition, when a user frequently performs multiple copy and paste operations on different pages, that is, frequently copies a certain data from one page and pastes the copied data to another page, due to frequent switching of the pages, errors may occur in the copy and paste process, which affects the paste efficiency of the data.
Disclosure of Invention
The embodiment of the invention aims to provide a data pasting method, a data pasting device, electronic equipment and a storage medium, so that the data copying times are reduced, pasting operations are convenient for a user, the probability of errors in the copying and pasting process is reduced, and the data pasting efficiency is improved. The specific technical scheme is as follows:
the embodiment of the invention provides a data pasting method, which comprises the following steps:
receiving a selection instruction of a user for selecting first data information in a preset data list, wherein the preset data list comprises data information corresponding to a plurality of copied data, and each copied data is obtained by copying the data to be copied according to a copy request of the user for the data to be copied corresponding to the copied data;
acquiring first copy data corresponding to the first data information based on the selection instruction;
and if a paste instruction is received, pasting the first copied data in the specified area of the target page.
Optionally, the method further includes:
receiving a copying request of the user for first data to be copied;
copying the first data to be copied to obtain second copied data based on the copying request;
and adding second data information corresponding to the second copied data into the preset data list.
Optionally, before copying the first data to be copied to obtain second copied data based on the copy request, the method further includes:
detecting whether the preset data list comprises data information corresponding to the first data to be copied;
the step of copying the first data to be copied to obtain second copied data based on the copying request includes:
and if the data information corresponding to the first data to be copied is not included, copying the first data to be copied based on the copying request to obtain second copied data.
Optionally, before adding the second data information corresponding to the second copied data to the preset data list, the method further includes:
judging whether the number of the data information included in the preset data list is smaller than the first number threshold, wherein the first number threshold is the maximum number of the data information included in the preset data list;
if the number of the data information is not less than the first number threshold, detecting whether the data information included in the preset data list is allowed to be covered or not;
the step of adding the second data information corresponding to the second copied data to the preset data list includes:
and if the second data information is allowed to be covered, updating the third data information with the earliest storage time in the preset data list into the second data information corresponding to the second copied data.
Optionally, the method further includes:
detecting whether an adjusting instruction for the maximum number of data information included in the preset data list is received or not, wherein the adjusting instruction comprises a second number threshold;
if so, adjusting the maximum number of the data information included in the preset data list to be the second number threshold value based on the adjusting instruction.
Optionally, the method further includes:
detecting whether a clearing instruction for the data information included in the preset data list is received or not;
and if so, clearing the data information included in the preset data list according to the clearing instruction.
An embodiment of the present invention further provides a data pasting device, where the device includes:
the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a selection instruction of a user for selecting first data information in a preset data list, the preset data list comprises data information corresponding to a plurality of copied data, and each copied data is obtained by copying the data to be copied according to a copy request of the user for the data to be copied corresponding to the copied data;
the acquisition module is used for acquiring first copy data corresponding to the first data information based on the selection instruction;
and the pasting module is used for pasting the first copied data in the specified area of the target page if the paste instruction is received.
Optionally, the apparatus further comprises:
the second receiving module is used for receiving a copying request of the user for the first data to be copied;
the copying module is used for copying the first data to be copied to obtain second copied data based on the copying request;
and the adding module is used for adding second data information corresponding to the second copied data into the preset data list.
Optionally, the apparatus further comprises:
the first detection module is used for detecting whether the preset data list comprises data information corresponding to the first data to be copied;
the replication module is specifically configured to, when the detection result of the first detection module is negative, replicate the first to-be-replicated data based on the replication request to obtain second replication data.
Optionally, the apparatus further comprises:
a determining module, configured to determine whether a number of data information included in the preset data list is smaller than a first number threshold, where the first number threshold is a maximum number of data information included in the preset data list;
the second detection module is used for detecting whether the data information included in the preset data list is allowed to be covered or not when the judgment result of the judgment module is negative;
the adding module is specifically configured to, when the detection result of the second detecting module is yes, update third data information stored in the preset data list with the earliest storage time to second data information corresponding to the second replication data.
Optionally, the apparatus further comprises:
a third detecting module, configured to detect whether an adjustment instruction for a maximum number of data information included in the preset data list is received, where the adjustment instruction includes a second number threshold;
and the adjusting module is used for adjusting the maximum number of the data information included in the preset data list to be the second number threshold value based on the adjusting instruction when the detection result of the third detecting module is yes.
Optionally, the apparatus further comprises:
the fourth detection module is used for detecting whether a clearing instruction for the data information included in the preset data list is received or not;
and the clearing module is used for clearing the data information included in the preset data list according to the clearing instruction when the detection result of the fourth detection module is positive.
The embodiment of the invention also provides electronic equipment, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing any one of the steps of the data pasting method when executing the program stored in the memory.
The embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the data pasting method steps are implemented.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute any of the above data pasting methods.
The embodiment of the invention has the following beneficial effects:
the data pasting method, the data pasting device, the electronic device and the storage medium provided by the embodiment of the invention can receive a selection instruction for selecting first data information in a preset data list by a user, wherein the preset data list comprises a plurality of data information, each data information is determined according to copied data obtained by copying data to be copied corresponding to the data information, first copied data corresponding to the first data information is obtained based on the selection instruction, and if the pasting instruction is received, the first copied data is pasted in a specified area of a target page. According to the technical scheme provided by the embodiment of the invention, the preset data list comprises the data information corresponding to the copied data obtained by copying different data to be copied by a user, when the user needs to paste the copied data obtained by copying before, the user does not need to copy the data again, but can directly obtain the copied data to be pasted according to the data information included in the preset data list, so that the copied data is pasted in the specified area of the target page, the times of copying the data are effectively reduced, the pasting operation of the user is facilitated, the error probability in the copying and pasting process is reduced, and the pasting efficiency of the data is improved.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a current page of an electronic device according to an embodiment of the present invention;
fig. 2 is a first flowchart of a data pasting method according to an embodiment of the present invention;
fig. 3 is a second flowchart of a data pasting method according to an embodiment of the present invention;
fig. 4 is a third flowchart illustrating a data pasting method according to an embodiment of the present invention;
fig. 5 is a fourth flowchart illustrating a data pasting method according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of a fifth data pasting method according to an embodiment of the present invention;
fig. 7 is a sixth flowchart illustrating a data pasting method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data pasting apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, fig. 1 is a schematic view of a current page of an electronic device according to an embodiment of the present invention. Presented in the current page of the electronic device is a spreadsheet. The table files opened in this page have a file 102 with a file name of the workbook 3 and a file 103 with a file name of the workbook 5. Included in file 103 are 2 worksheets, worksheets 104 and 105, respectively. Shown in area 101 is a portion of the contents of a worksheet 104 of file 103. When a user copies part of data in the area 101, such as the physical group 1 and the biological group 3, and needs to paste the copied data into the file 102 or the work table 105, if the data in the file 102 or the work table 105 has high repeatability, the user may need to frequently copy, paste the data in the physical group 1 and the biological group 3, and switch between different pages, which greatly increases the probability of errors occurring in the data copying and pasting process, and affects the data pasting efficiency.
In order to solve the problems of high error rate and poor data pasting efficiency in the existing copying and pasting process, the embodiment of the invention provides a data pasting method. The method is applicable to any electronic equipment. The method includes the steps that a selection instruction for selecting first data information in a preset data list by a user can be received, the preset data list comprises a plurality of data information, each data information is determined according to copied data obtained by copying data to be copied corresponding to the data information, the first copied data corresponding to the first data information are obtained based on the selection instruction, and if a paste instruction is received, the first copied data are pasted in a designated area of a target page.
According to the method provided by the embodiment of the invention, the preset data list comprises the data information corresponding to the copied data obtained by copying different data to be copied by a user, when the user needs to paste the copied data obtained by copying before, the user does not need to copy the data again, but can directly obtain the copied data to be pasted according to the data information included in the preset data list, so that the copied data is pasted in the specified area of the target page, the times of copying the data are effectively reduced, the pasting operation of the user is facilitated, the error probability in the copying and pasting process is reduced, and the pasting efficiency of the data is improved.
The following examples illustrate the present invention.
As shown in fig. 2, fig. 2 is a first flowchart of a data pasting method according to an embodiment of the present invention. The method may include the following steps.
Step S201, receiving a selection instruction for a user to select first data information in a preset data list, where the preset data list includes data information corresponding to a plurality of copied data, and each copied data is obtained by copying data to be copied according to a copy request of the user for the data to be copied corresponding to the copied data.
In this step, the electronic device may display the preset data list on the current page. The user can select the data information corresponding to the copied data to be pasted from the preset data list according to the plurality of data information included in the displayed preset data list, and send a selection request to the electronic device. The electronic device receives the selection instruction. The preset data list comprises data information corresponding to a plurality of copied data, and each copied data is obtained by copying the to-be-copied data according to a copy request of a user to the to-be-copied data corresponding to the copied data. Here, the generation of the preset data list is not specifically described.
In an optional embodiment, in terms of the display process of the preset data list, when the data to be copied is copied, that is, when the copied data is obtained, the electronic device may add data information corresponding to the copied data to the preset data list, and display the preset data list in the current page, so that a user may perform a subsequent pasting operation according to the displayed preset data list. That is, after the data to be copied selected by the user is completely copied, the preset data list is displayed in the current page.
In another optional embodiment, for the display process of the preset data list, when the user needs to paste the copied data obtained by performing the previous copying operation, that is, when the user performs an operation action such as pressing a shortcut key for displaying the preset data list or clicking a display button of the preset data list, the electronic device may display the preset data list on the current page.
In an embodiment of the present invention, the current page is a current display page of the electronic device. The preset data list may be an independent page window, and the page window is used for displaying data information corresponding to the copy data stored in a preset storage space in the kernel of the electronic device.
In an optional embodiment, regarding the data information included in the preset data list, the representation form of the data information included in the preset data list may be different according to the size of the data amount corresponding to each copy data stored in the preset storage space.
In one embodiment, when the data amount of the copied data is small, for example, the copied data is the content of a certain cell in a spreadsheet, the electronic device may determine the copied data as the data information corresponding to the copied data. Taking fig. 1 as an example, the copied data is the content of the cell C2, i.e. the physical group 1, then the data information corresponding to the copied data may be the physical group 1.
In another embodiment, when the data amount of the copied data is large, for example, the copied data is text content of a certain page in a document, the electronic device may determine data information of the copied data according to a storage address, a data source, a thumbnail and the like corresponding to the copied data, and establish a corresponding relationship between the data information and corresponding copied data in a preset storage space. Still taking FIG. 1 as an example, if the copied data is a rectangular area formed by cell A1 through cell B100, wherein cell A1 is in the upper left corner of the rectangular area, and cell B100 is in the lower right corner of the rectangular area. The electronic device may determine, according to the copied data, a thumbnail corresponding to the rectangular area, and determine the thumbnail as data information corresponding to the copied data. Or, the electronic device may determine a storage address of the copied data in a preset storage space as the data information corresponding to the copied data.
Step S202, based on the selection instruction, acquiring first copy data corresponding to the first data information.
In this step, the electronic device may obtain, according to the received selection instruction and according to first data information selected from a user preset data list, first copy data corresponding to the first data information from the preset storage space.
In an optional embodiment, according to different presentation forms of the first data information, the electronic device may obtain the first copy data corresponding to the first data information in different manners. For example, when the data amount of the first copied data is small, at this time, the first data information in the preset data list is the first copied data. The electronic device may obtain the first copied data directly from the preset data list. For another example, when the data size of the first copied data is large, at this time, the first data information in the preset data list is a thumbnail corresponding to the first copied data. The electronic device may obtain the first copy data from the preset storage space according to a corresponding relationship between the thumbnail and the copy data in the preset storage space, that is, a corresponding relationship between the thumbnail and the first copy data. In the embodiment of the present invention, the acquisition of the first copied data is not particularly limited.
In step S203, if the paste instruction is received, the first copy data is pasted in the designated area of the target page.
In this step, the user can select an area as the designated area in the target page. When receiving a paste instruction for the first copied data sent by the user, the electronic device may paste the first copied data in the designated area selected by the user.
Taking an electronic device as an example of a computer, a user may control a cursor to select an area in a target page displayed on the computer as an instruction area by moving a mouse, such as an area where a search bar in a web page is located, an area where one or more cells in a spreadsheet are located, and the like. After the user selects the designated area in the target page, the computer can detect whether a paste instruction of the user for the first copied data is received in real time, for example, whether the user clicks a right button of a mouse to open a right button functional area and clicks a paste button in the right button functional area. When a paste instruction is received, that is, when it is detected that the user clicks the paste button, the electronic apparatus may paste the first copy data into the designated area selected by the user.
For the target page, in an embodiment, the target page may be a page where the first copy data is located. In another embodiment, the target page may also be a page other than the page where the first copy data is located. Taking the first copied data as the physical group 1 in the area 101 of fig. 1 as an example, the target page may be a page where the area 101 is located. The target page may be a page corresponding to the worksheet 105. The target page may also be other pages, such as a page corresponding to a word document or a web page. In the embodiment of the present invention, the target page and the designated area are not particularly limited.
In the embodiment of the present invention, in the process of copying and pasting data, the electronic device copies a page of the data, and pastes a page of the data, that is, the target page, which may be a page corresponding to common office software, such as a word Document, an Excel table, a PPT presentation, a Portable Document Format (PDF) Document, and other software pages; the target page may be a search page corresponding to a search engine, and the designated area is a search bar in the search page.
In an optional embodiment, before pasting the first copied data, the electronic device may further obtain a text format of the first copied data, and detect whether the text format of the first copied data is the same as a text format corresponding to the designated area of the target page. When the text format of the first copied data is the same as the text format corresponding to the designated area of the target page, the above step S203 is performed.
Specifically, after receiving the paste instruction, the electronic device may obtain a text format of the first copy data. The text format includes, but is not limited to, format, size, layout, etc. of the text. The electronic device may match the text format of the first copy data with the text format corresponding to the designated area in the target page, and detect whether the text format of the first copy data is the same as the text format corresponding to the designated area in the target page. When the text format of the first copy data is the same as the text format corresponding to the designated area of the target page, the electronic device may perform step S203 described above. Namely, the step of pasting the first copied data in the designated area of the target page is performed.
In an optional embodiment, when the text format of the first copied data is different from the text format corresponding to the designated area of the target page, the electronic device may paste the first copied data in the designated area according to the text format corresponding to the designated area of the target page.
In another alternative embodiment, when the text format of the first copied data is different from the text format corresponding to the designated area of the target page, the electronic device may prompt the user that an error occurs in pasting. For example, characters such as "paste failure", "format mismatch" and the like are displayed in the target page, and the user is prompted that the paste of the first copy data is in error.
In summary, according to the method provided by the embodiment of the present invention, the preset data list includes data information corresponding to the copied data obtained by copying different data to be copied by the user, and when the user needs to paste the copied data obtained by copying before, the user does not need to copy the data again, but can directly obtain the copied data to be pasted according to the data information included in the preset data list, so as to paste the copied data into the specified area of the target page, which effectively reduces the number of times of copying data, facilitates the user to perform a pasting operation, reduces the probability of errors occurring in the copying and pasting process, and improves the pasting efficiency of data.
In an optional embodiment, according to the data pasting method shown in fig. 2, an embodiment of the present invention further provides a data pasting method. As shown in fig. 3, fig. 3 is a second flowchart of the data pasting method according to the embodiment of the present invention. The method specifically comprises the following steps.
Step S301, receiving a copy request of a user for the first data to be copied.
In this step, when the user needs to copy data in a certain webpage or document, the user may select the data to be copied from the opened document or page as the first data to be copied, and send a copy request for the first data to be copied to the electronic device. The electronic device may receive a copy request. The first data to be copied may be any data included in a document or page that has been opened, and is not limited herein.
In this embodiment of the present invention, the document or the page where the first data to be copied is located may be a document or a web page already opened in the target page, or may also be a document or a web page already opened in another page, and is not limited specifically herein.
Step S302, based on the copy request, copying the first to-be-copied data to obtain second copied data.
In this step, the electronic device may copy the first data to be copied, that is, copy the data selected by the user in the opened document or page, to obtain the second copied data, according to the received copy request. The electronic device may store the second copied data obtained by copying into the preset storage space.
Step S303, adding the second data information corresponding to the second copied data to a preset data list.
In this step, the electronic device may determine, according to the second copied data obtained by copying, second data information corresponding to the second copied data, and add the second data information to the preset data list. Here, the second data information determination method is not specifically described.
Step S304, receiving a selection instruction for a user to select first data information in a preset data list, where the preset data list includes data information corresponding to a plurality of copied data, and each copied data is obtained by copying the to-be-copied data according to a copy request of the user to the to-be-copied data corresponding to the copied data.
In step S305, a copy data corresponding to the first data information is obtained based on the selection instruction.
In step S306, if the paste instruction is received, the first copy data is pasted in the designated area of the target page.
The above steps S304 to S306 are the same as the above steps S201 to S203.
In the embodiment of the present invention, the execution sequence of the above step S301 and step S304 is not particularly limited.
Through the data pasting method shown in fig. 2, for each piece of to-be-copied data selected by the user, the electronic device can copy the copied data and add the corresponding data information to the preset data list, so that the user can conveniently select the copied data corresponding to the appropriate data information to be pasted, and the copying times of each piece of to-be-copied data are reduced.
In an optional embodiment, according to the data pasting method shown in fig. 3, an embodiment of the present invention further provides a data pasting method, as shown in fig. 4, and fig. 4 is a third schematic flow diagram of the data pasting method provided in the embodiment of the present invention. The method comprises the following steps.
Step S401, receiving a copy request of a user for the first data to be copied.
Step S401 is the same as step S301.
Step S402, detecting whether the preset data list includes data information corresponding to the first data to be copied. If not, step S403 is executed.
In this step, after receiving the copy request, the electronic device may match the first data to be copied with each data information included in a preset data list, and determine whether the preset data list includes data information corresponding to the first data to be copied, that is, detect whether the preset storage space includes data information of the copied data corresponding to the first data to be copied.
In an optional embodiment, the electronic device may also detect whether the preset storage space includes copied data corresponding to the first data to be copied, and execute step S403 when the preset storage space does not include copied data corresponding to the first data to be copied.
In step S403, the first data to be copied is copied based on the copy request, so as to obtain second copy data.
In this step, when the preset data list does not include the data information corresponding to the first data to be copied, that is, when the preset storage space does not include the copied data corresponding to the first data to be copied, the electronic device may copy the first data to be copied based on the received copy request to obtain the second copied data, and store the second copied data.
In an optional embodiment, when the preset data list includes data information corresponding to the first data to be copied, the electronic device may determine that the copied data corresponding to the first data to be copied already exists in the preset storage space. At this time, the electronic apparatus may not copy the first data to be copied. Meanwhile, in order to improve the accuracy of the preset data list, the electronic device may update the storage time of the data information in the preset data list, which is matched with the first data to be copied, that is, update the storage time of the copied data corresponding to the first data to be copied in the preset storage space. For example, the electronic device may modify the storage time of the data information matching the first data to be copied to the time when the electronic device receives the copy request.
Take the data information matched with the first copied data in the preset data list as data 1 as an example. In the preset data list, the storage time corresponding to the data 1 is 10:30, that is, the copy data corresponding to the data 1 is stored in the preset storage space at 10:30, and the data 1 is added to the preset data list at 10: 30. At 12:00, the electronic device receives a copy request corresponding to the first copy data, and since the preset data list already includes data 1, that is, there is data information matching the first copy data already in the preset data list, the electronic device updates the storage time of the data 1 in the preset data list, that is, the storage time of the data 1 is updated from 10:30 to 12: 00.
In another optional embodiment, when the preset data list includes data information corresponding to the first data to be copied, the electronic device may prompt the user that the preset storage space already includes the first data to be copied. For example, the user is prompted with a text such as "the data already exists". Or, the electronic device may display the preset data list in the current page, and highlight the data information corresponding to the first data to be copied in the preset data list, so that the user can quickly determine that the copied data corresponding to the first data to be copied already exists, and the user can conveniently perform subsequent pasting operations.
Step S404, adding the second data information corresponding to the second copied data to a preset data list.
Step S405, receiving a selection instruction for a user to select first data information in a preset data list, where the preset data list includes data information corresponding to a plurality of copied data, and each copied data is obtained by copying the to-be-copied data according to a copy request of the user to the to-be-copied data corresponding to the copied data.
In step S406, based on the selection instruction, first copy data corresponding to the first data information is acquired.
In step S407, if the paste instruction is received, the first copy data is pasted in the designated area of the target page.
The above-described steps S404 to S407 are the same as the above-described steps S303 to S306.
Through the data pasting method shown in fig. 4, after receiving the copy request, the electronic device may detect whether the preset data list includes data information corresponding to the first data to be copied, and under the condition that the preset data list includes the data information corresponding to the first data to be copied, the electronic device does not perform the copy operation any more, so that the probability that the first copied data obtained by copying and the copied data stored in the preset storage space are repeated is reduced, that is, the probability that the same data is copied for multiple times is reduced, and the number of times of data copying is reduced.
In an optional embodiment, according to the data pasting method shown in fig. 2, an embodiment of the present invention further provides a data pasting method. As shown in fig. 5, fig. 5 is a fourth flowchart illustrating a data pasting method according to an embodiment of the present invention. The method comprises the following steps.
Step S501, a user' S copy request for the first data to be copied is received.
Step S502, copying the first to-be-copied data based on the copy request to obtain second copied data.
The above steps S501 to S502 are the same as the above steps S301 to S302.
In step S503, it is determined whether the number of data information included in the preset data list is smaller than a first number threshold, where the first number threshold is the maximum number of data information included in the preset data list. If not, go to step S504.
In this step, the electronic device may count the number of data information included in the preset data list, and compare the counted number with a first number threshold to determine whether the number is smaller than the first number threshold, that is, determine whether the number of data information included in the preset data list reaches the maximum number of data information included in the preset data list.
In step S504, it is detected whether to allow overwriting of data information included in the preset data list. If yes, go to step S505.
In this step, when the number of data information included in the preset data list is not less than the first number threshold, that is, the number of data information included in the preset data list is equal to the first number threshold, that is, the number of copied data stored in the preset storage space is equal to the first number threshold, the electronic device may detect whether overwriting of the data information included in the preset data list is allowed.
In an embodiment of the present invention, the number of data information included in the preset data list may not be greater than the first number threshold.
In an alternative embodiment, when the number of the data information included in the preset data list is smaller than the first number threshold, the electronic device may execute step S505, that is, add the second data information corresponding to the copied second copied data to the preset data list.
Step S505, adding the second data information corresponding to the second copied data to a preset data list.
In one embodiment, when the data information included in the preset data list is allowed to be overwritten, the electronic device may update the third copy data stored at the earliest time in the preset data list to the second data information corresponding to the second copy data.
In an alternative embodiment, when the data information included in the preset data list is not allowed to be overwritten, the electronic device may display a prompt message that the preset data list is full, that is, display a prompt message that the preset data list includes data information equal to the first number threshold. The user may determine that the preset data list is full after receiving the prompt message. At this time, the user may adjust the maximum amount of data information included in the preset data list, or manually delete data information included in the preset data list, or allow overwriting of data information in the preset data list, or the like.
Step S506, receiving a selection instruction for a user to select first data information in a preset data list, where the preset data list includes data information corresponding to a plurality of copied data, and each copied data is obtained by copying the to-be-copied data according to a copy request of the user to the to-be-copied data corresponding to the copied data.
Step S507, based on the selection instruction, obtains first copy data corresponding to the first data information.
In step S508, if the paste instruction is received, the first copy data is pasted in the designated area of the target page.
The above steps S506 to S508 and the above steps S304 to S306.
In the embodiment of the present invention, the execution sequence of the steps S501 and S506 is not particularly limited.
Through the data pasting method shown in fig. 5, when the number of the data information included in the preset data list reaches the first number threshold, the data information included in the preset data list can be allowed to be covered, so that the preset data list can include the data information corresponding to the latest copied data, a virtuous cycle is formed, the data information in the preset data list can be updated in time while the copying times are effectively reduced, and the data pasting efficiency is improved.
In an optional embodiment, according to the data pasting method shown in fig. 3, an embodiment of the present invention further provides a data pasting method. As shown in fig. 6, fig. 6 is a fifth flowchart illustrating a data pasting method according to an embodiment of the present invention. The method comprises the following steps.
Step S601, detecting whether an adjustment instruction for the maximum number of data information included in the preset data list is received, where the adjustment instruction includes a second number threshold. If yes, go to step S602. If not, go to step S603,
in this step, the user may send an adjustment instruction for adjusting the maximum amount of the data information included in the preset data list to the electronic device according to an actual requirement. The electronic device can detect whether the adjusting instruction is received in real time.
In an optional embodiment, when the user needs to adjust the maximum number of the data information included in the preset data list, for example, the user opens an adjustment window of the maximum data of the data information included in the preset data list through a shortcut key, and the electronic device may display the adjustment window in the current page, the electronic device may generate an adjustment instruction according to the number, that is, the second number threshold, selected by the user in the adjustment window.
In the embodiment of the present invention, the adjustment window may include a maximum number of a plurality of selectable data messages, a setting button for setting the maximum number by a user, and the like.
Step S602, based on the adjustment instruction, adjusts the maximum number of data information included in the preset data list to a second number threshold.
In this step, when the adjustment instruction is received, the electronic device may adjust the maximum number of the data information corresponding to the preset data list to the preset number threshold according to the received adjustment instruction.
For example, the current preset data list includes a maximum number of data information of 20, that is, the preset data list includes at most 20 data information. After the electronic device receives the adjustment instruction, if the second quantity threshold included in the adjustment instruction is 100, the electronic device may adjust the maximum quantity of the data information included in the preset data list from 20 to 100. At this time, the preset data list includes 100 pieces of data information at most.
Step S603, receiving a selection instruction for a user to select a first copy data in a preset data list, where the preset data list includes data information corresponding to multiple copy data, and each copy data is obtained by copying the to-be-copied data according to a copy request of the user to the to-be-copied data corresponding to the copy data.
In step S604, first copy data corresponding to the first data information is acquired based on the selection instruction.
In step S605, if the paste instruction is received, the first copy data is pasted in the designated area of the target page.
The above-described steps S603 to S605 are the same as the above-described steps S201 to S203.
In the embodiment of the present invention, the execution sequence of step S601 and step S603 is not particularly limited.
According to the data pasting method shown in fig. 6, a user can adjust the number of data information included in the preset data list according to actual requirements, so that the preset data list is managed more flexibly.
In an optional embodiment, according to the data pasting method shown in fig. 2, an embodiment of the present invention further provides a data pasting method. As shown in fig. 7, fig. 7 is a sixth flowchart illustrating a data pasting method according to an embodiment of the present invention. The method comprises the following steps.
Step S701 is to receive a selection instruction for a user to select first data information in a preset data list, where the preset data list includes data information corresponding to a plurality of copied data, and each copied data is obtained by copying the to-be-copied data according to a copy request of the user for the to-be-copied data corresponding to the copied data.
Step S702, based on the selection instruction, obtains first copy data corresponding to the first data information.
In step S703, if the paste instruction is received, the first copy data is pasted in the designated area of the target page.
The steps S701 to S703 are the same as the steps S201 to S203.
In step S704, it is detected whether a clear instruction for the data information included in the preset data list is received. If yes, go to step S705.
In this step, the user may clear part of or all of the data information included in the preset data list according to actual requirements. The user can select the data information needing to be cleared from the preset data list, generate a corresponding clearing instruction and send the clearing instruction to the electronic equipment. The electronic device may detect whether the purge instruction is received in real time.
In an alternative embodiment, the clearing instruction may be for all data information included in the preset data list.
In another alternative embodiment, the clearing instruction may also be for a part of the data information in the preset data list that needs to be cleared, which is selected by the user.
Step S705, clearing the data information included in the preset data list according to the clearing instruction.
In this step, when receiving the clearing instruction, the electronic device may clear part of or all of the data information included in the preset data list according to the clearing instruction.
In an embodiment, if the clearing instruction is for all data information included in the preset data list, the electronic device may clear all data information included in the preset data list.
In another embodiment, if the clearing instruction is for the partial data information that needs to be cleared and is selected by the user in the preset data list, the electronic device may clear the partial data information selected by the user and retain other data information.
In the embodiment of the present invention, when the data information included in the preset data list is cleared, the electronic device may synchronously clear the corresponding copied data in the preset storage space, so as to update the copied data included in the preset storage space in time.
In an alternative embodiment, if the clear instruction is not received, the electronic device may not process the data information included in the preset data list, that is, retain all the data information included in the preset data list.
Through the data pasting method shown in fig. 7, the electronic device can clear the data information included in the preset data list according to the user requirement, thereby ensuring the validity and timeliness of the data information included in the preset data list.
Based on the same inventive concept, according to the data pasting method provided by the embodiment of the invention, the embodiment of the invention also provides a data pasting device. As shown in fig. 8, fig. 8 is a schematic structural diagram of a data pasting device according to an embodiment of the present invention. The apparatus includes the following modules.
The first receiving module 801 is configured to receive a selection instruction for a user to select first data information in a preset data list, where the preset data list includes data information corresponding to multiple pieces of replication data, and each piece of replication data is obtained by replicating the to-be-replicated data according to a replication request of the user for the to-be-replicated data corresponding to the replication data.
An obtaining module 802, configured to obtain, based on the selection instruction, first copy data corresponding to the first data information.
The pasting module 803 is configured to, if the pasting instruction is received, paste the first copied data in the specified area of the target page.
Optionally, the data pasting device may further include:
and the second receiving module is used for receiving a copying request of the user for the first data to be copied.
And the copying module is used for copying the first data to be copied to obtain second copied data based on the copying request.
And the adding module is used for adding second data information corresponding to the second copied data into a preset data list.
Optionally, the data pasting device may further include:
the first detection module is used for detecting whether the preset data list comprises data information corresponding to the first data to be copied.
The replication module may be specifically configured to, when the detection result of the first detection module is negative, replicate the first data to be replicated based on the replication request to obtain second replication data.
Optionally, the apparatus may further include:
the judging module is used for judging whether the number of the data information included in the preset data list is smaller than a first number threshold, and the first number threshold is the maximum number of the data information included in the preset data list.
And the second detection module is used for detecting whether the data information included in the preset data list is allowed to be covered or not when the judgment result of the judgment module is negative.
The adding module may be specifically configured to update, when the detection result of the second detecting module is yes, third data information stored in the preset data list with the earliest storage time to second data information corresponding to the second duplicated data.
Optionally, the data pasting device may further include:
the third detection module is configured to detect whether an adjustment instruction for the maximum number of data information included in the preset data list is received, where the adjustment instruction includes a second number threshold.
And the adjusting module is used for adjusting the maximum number of the data information included in the preset data list to be a second number threshold value based on the adjusting instruction when the detection result of the third detecting module is yes.
Optionally, the data pasting device may include:
and the fourth detection module is used for detecting whether a clearing instruction of the data information included in the preset data list is received.
And the clearing module is used for clearing the data information included in the preset data list according to the clearing instruction when the detection result of the fourth detection module is positive.
According to the device provided by the embodiment of the invention, the preset data list comprises the data information corresponding to the copied data obtained by copying different data to be copied by a user, when the user needs to paste the copied data obtained by copying before, the user does not need to copy the data again, but can directly obtain the copied data to be pasted according to the data information included in the preset data list, so that the copied data is pasted in the specified area of the target page, the times of copying the data are effectively reduced, the pasting operation of the user is facilitated, the error probability in the copying and pasting process is reduced, and the data pasting efficiency is improved.
Based on the same inventive concept, according to the data pasting method provided by the above embodiment of the present invention, the embodiment of the present invention further provides an electronic device, as shown in fig. 9, including a processor 901, a communication interface 902, a memory 903 and a communication bus 904, where the processor 901, the communication interface 902 and the memory 903 complete mutual communication through the communication bus 904;
a memory 903 for storing computer programs;
the processor 901 is configured to implement the following steps when executing the program stored in the memory 903:
receiving a selection instruction of a user for selecting first data information in a preset data list, wherein the preset data list comprises data information corresponding to a plurality of copied data, and each copied data is obtained by copying the data to be copied according to a copy request of the user for the data to be copied corresponding to the copied data;
acquiring first copy data corresponding to the first data information based on the selection instruction;
and if the paste instruction is received, pasting the first copied data in the specified area of the target page.
According to the electronic equipment provided by the embodiment of the invention, the preset data list comprises the data information corresponding to the copied data obtained by copying different data to be copied by a user, when the user needs to paste the copied data obtained by copying before, the user does not need to copy the data again, but can directly obtain the copied data to be pasted according to the data information included in the preset data list, so that the copied data is pasted in the specified area of the target page, the times of copying the data are effectively reduced, the pasting operation of the user is facilitated, the error probability in the copying and pasting process is reduced, and the data pasting efficiency is improved.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Based on the same inventive concept, according to the data pasting method provided in the above embodiment of the present invention, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the data pasting methods described above.
Based on the same inventive concept, according to the data pasting method provided in the above embodiment of the present invention, an embodiment of the present invention further provides a computer program product containing instructions that, when run on a computer, cause the computer to execute any of the data pasting methods in the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for embodiments such as the apparatus, the electronic device, the computer storage readable medium, and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and for related matters, reference may be made to part of the description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (14)

1. A method of data pasting, the method comprising:
receiving a selection instruction of a user for selecting first data information in a preset data list, wherein the preset data list comprises data information corresponding to a plurality of copied data, and each copied data is obtained by copying the data to be copied according to a copy request of the user for the data to be copied corresponding to the copied data;
acquiring first copy data corresponding to the first data information based on the selection instruction;
and if a paste instruction is received, pasting the first copied data in the specified area of the target page.
2. The method of claim 1, further comprising:
receiving a copying request of the user for first data to be copied;
copying the first data to be copied to obtain second copied data based on the copying request;
and adding second data information corresponding to the second copied data into the preset data list.
3. The method according to claim 2, further comprising, before copying the first data to be copied to obtain second copied data based on the copy request:
detecting whether the preset data list comprises data information corresponding to the first data to be copied;
the step of copying the first data to be copied to obtain second copied data based on the copying request includes:
and if the data information corresponding to the first data to be copied is not included, copying the first data to be copied based on the copying request to obtain second copied data.
4. The method according to claim 3, further comprising, before adding the second data information corresponding to the second copied data to the preset data list:
judging whether the number of the data information included in the preset data list is smaller than the first number threshold, wherein the first number threshold is the maximum number of the data information included in the preset data list;
if the number of the data information is not less than the first number threshold, detecting whether the data information included in the preset data list is allowed to be covered or not;
the step of adding the second data information corresponding to the second copied data to the preset data list includes:
and if the second data information is allowed to be covered, updating the third data information with the earliest storage time in the preset data list into the second data information corresponding to the second copied data.
5. The method according to any one of claims 1-4, further comprising:
detecting whether an adjusting instruction for the maximum number of data information included in the preset data list is received or not, wherein the adjusting instruction comprises a second number threshold;
if so, adjusting the maximum number of the data information included in the preset data list to be the second number threshold value based on the adjusting instruction.
6. The method of claim 1, further comprising:
detecting whether a clearing instruction for the data information included in the preset data list is received or not;
and if so, clearing the data information included in the preset data list according to the clearing instruction.
7. A data pasting apparatus, characterized in that the apparatus comprises:
the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a selection instruction of a user for selecting first data information in a preset data list, the preset data list comprises data information corresponding to a plurality of copied data, and each copied data is obtained by copying the data to be copied according to a copy request of the user for the data to be copied corresponding to the copied data;
the acquisition module is used for acquiring first copy data corresponding to the first data information based on the selection instruction;
and the pasting module is used for pasting the first copied data in the specified area of the target page if the paste instruction is received.
8. The apparatus of claim 7, further comprising:
the second receiving module is used for receiving a copying request of the user for the first data to be copied;
the copying module is used for copying the first data to be copied to obtain second copied data based on the copying request;
and the adding module is used for adding second data information corresponding to the second copied data into the preset data list.
9. The apparatus of claim 8, further comprising:
the first detection module is used for detecting whether the preset data list comprises data information corresponding to the first data to be copied;
the replication module is specifically configured to, when the detection result of the first detection module is negative, replicate the first to-be-replicated data based on the replication request to obtain second replication data.
10. The apparatus of claim 9, further comprising:
a determining module, configured to determine whether a number of data information included in the preset data list is smaller than a first number threshold, where the first number threshold is a maximum number of data information included in the preset data list;
the second detection module is used for detecting whether the data information included in the preset data list is allowed to be covered or not when the judgment result of the judgment module is negative;
the adding module is specifically configured to, when the detection result of the second detecting module is yes, update third data information stored in the preset data list with the earliest storage time to second data information corresponding to the second replication data.
11. The apparatus of any of claims 7-10, further comprising:
a third detecting module, configured to detect whether an adjustment instruction for a maximum number of data information included in the preset data list is received, where the adjustment instruction includes a second number threshold;
and the adjusting module is used for adjusting the maximum number of the data information included in the preset data list to be the second number threshold value based on the adjusting instruction when the detection result of the third detecting module is yes.
12. The apparatus of claim 7, further comprising:
the fourth detection module is used for detecting whether a clearing instruction for the data information included in the preset data list is received or not;
and the clearing module is used for clearing the data information included in the preset data list according to the clearing instruction when the detection result of the fourth detection module is positive.
13. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
14. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN201910637017.0A 2019-07-15 2019-07-15 Data pasting method and device, electronic equipment and storage medium Pending CN112231111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910637017.0A CN112231111A (en) 2019-07-15 2019-07-15 Data pasting method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910637017.0A CN112231111A (en) 2019-07-15 2019-07-15 Data pasting method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112231111A true CN112231111A (en) 2021-01-15

Family

ID=74111175

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910637017.0A Pending CN112231111A (en) 2019-07-15 2019-07-15 Data pasting method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112231111A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783409A (en) * 2021-03-15 2021-05-11 联想(北京)有限公司 Control method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783409A (en) * 2021-03-15 2021-05-11 联想(北京)有限公司 Control method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN110851308A (en) Test method, test device, electronic equipment and storage medium
US9152542B2 (en) Automatic generation of test scripts
US11868710B2 (en) Method and apparatus for displaying a text string copied from a first application in a second application
CN101984422B (en) Fault-tolerant text query method and equipment
CN104360990A (en) Content editing method
IL227218A (en) Formatting data by example
CN104407787A (en) Terminal
CN109213978B (en) Method and device for merging cells, electronic equipment and readable storage medium
CN107451112B (en) Form tool data checking method, device, terminal equipment and storage medium
CN111414727A (en) Method and device for editing header and footer of PDF (Portable document Format) document and electronic equipment
CN109902269A (en) A kind of document display method, device, electronic equipment and readable storage medium storing program for executing
CN112231111A (en) Data pasting method and device, electronic equipment and storage medium
US20200026749A1 (en) Pdf extraction with text-based key
US10824803B2 (en) System and method for logical identification of differences between spreadsheets
CN115687603A (en) Presentation generation method and device, electronic equipment and storage medium
CN112000257A (en) Method and device for exporting key contents of document
US9305117B2 (en) String generation tool
CN111857934A (en) Page loading method and device, electronic equipment and storage medium
CN110109892B (en) Data migration method and device and electronic equipment
CN109101302B (en) File importing method and device, electronic equipment and storage medium
CN113689207B (en) Monovalent form switching method and device and electronic equipment
CN112328815B (en) Slide storage method and device
US20240020319A1 (en) Feedback collections based on topics of interest
CN112181240B (en) Information display method and device
CN112949266A (en) Electronic form processing method, processing device, electronic equipment and storage medium

Legal Events

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