CN112948144A - Data processing method and device, electronic equipment and storage medium - Google Patents

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

Info

Publication number
CN112948144A
CN112948144A CN202110259301.6A CN202110259301A CN112948144A CN 112948144 A CN112948144 A CN 112948144A CN 202110259301 A CN202110259301 A CN 202110259301A CN 112948144 A CN112948144 A CN 112948144A
Authority
CN
China
Prior art keywords
numbers
computing application
computing
displaying
application
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
CN202110259301.6A
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110259301.6A priority Critical patent/CN112948144A/en
Publication of CN112948144A publication Critical patent/CN112948144A/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)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a data processing method, a data processing device, an electronic device and a storage medium. The data processing method comprises the following steps: reading data stored in the clipboard when the computing application runs; when the data comprises numbers, extracting and displaying the numbers at a preset position of an interface of the computing application; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter. The method improves the calculation efficiency, simplifies the use operation of the calculation application and improves the use experience of the user.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In the data information era, various industries need support of various data, and operations such as execution of related services are performed through the data, so that the visible data plays a vital role in various application fields. In a specific application scenario, some processing needs to be performed on data according to actual application requirements, so as to meet corresponding use requirements.
The manner of processing the data includes many, such as calculation, etc. When data is calculated, calculation needs to be performed by a related calculation tool (for example, a computer application APP), but with the increase of usage demands, higher requirements are also placed on the data processing capability, the convenience of use and the like of the related calculation tool.
Disclosure of Invention
The disclosure provides a data processing method, a data processing device, an electronic device and a storage medium.
In a first aspect of the embodiments of the present disclosure, a data processing method is provided, including: reading data stored in the clipboard when the computing application runs; when the data comprises numbers, extracting and displaying the numbers at a preset position of an interface of the computing application; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter.
In one embodiment, the method further comprises: detecting a selection operation acting on the number; determining the number on which the selection operation acts as the calculation parameter.
In one embodiment, the extracting and displaying the number at a preset position of an interface of the computing application includes at least one of: displaying the number on an application interface of the computing application; displaying the number within a floating window; and displaying the number in an input field of the input method.
In one embodiment, the method further comprises: after detecting the selection operation on the number in the floating window, inputting the selected number into a first area of the calculation application for displaying parameters.
In one embodiment, the extracting and displaying the number at a preset position of an interface of the computing application includes: when the number of the numbers exceeds a preset value, displaying the numbers with the preset number according to the arrangement sequence of the numbers; or when the number of the numbers exceeds a preset value, the numbers are displayed in a paging mode.
In one embodiment, the method further comprises: when the number is not included in the data and the computing application is detected, displaying the number that was last obtained by the computing application from the clipboard.
In one embodiment, the reading data stored in the clipboard when the computing application is running comprises: and reading the data stored in the clipboard when the computing application is started or switched to the foreground.
In a second aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including: the reading module is used for reading the data stored in the clipboard when the computing application runs; the processing module is used for extracting and displaying the number at a preset position of an interface of the computing application when the data comprises the number; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter.
In a third aspect of the embodiments of the present disclosure, there is provided an electronic device, including:
a processor and a memory for storing executable instructions operable on the processor, wherein: when the processor is used for executing the executable instructions, the executable instructions execute the method of any one of the above embodiments.
In a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions implement the method according to any of the embodiments described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
1) after reading the data stored in the clipboard, it is identified whether the data contains a number, and when the data contains a number, the contained number is transmitted to the computing application. According to the scheme, the numbers in the data stored in the clipboard are identified, contents except the numbers are filtered out, namely the numbers are independently processed and are independently transmitted to the computing application, so that the operation of repeatedly switching and checking the numbers between the computing application and other applications can be omitted, the computing application can conveniently perform corresponding calculation by using the numbers, the calculation efficiency can be improved, the use operation of the computing application is simplified, and the use experience of a user is improved.
2) The numbers transmitted to the computing application can be used for the computing application to perform computing operation as computing parameters, namely, after the numbers are transmitted to the computing application, the numbers transmitted to the computing application are used as the computing parameters of the computing application, the numbers can be directly operated to perform the computing operation, and the operation of manually inputting the numbers through a number area carried by the computing application is omitted. The use operation of the user is simplified, and the convenience of the user in using the computing application is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a flow diagram illustrating a data processing method in accordance with an exemplary embodiment;
FIG. 2 is a schematic flow diagram illustrating another data processing method in accordance with an exemplary embodiment;
FIG. 3 is a display diagram illustrating a displayed number according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a data processing apparatus according to an exemplary embodiment;
FIG. 5 is a schematic block diagram of another data processing apparatus, according to an example embodiment;
FIG. 6 is a schematic diagram illustrating another data processing method in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating a terminal device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Referring to fig. 1, a schematic flow chart of a data processing method according to an embodiment of the present disclosure is shown. The data processing method comprises the following steps:
and step S100, reading the data stored in the clipboard when the computing application runs.
Step S200, when the data contains numbers, extracting and displaying the numbers at a preset position of an interface of the computing application; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter.
At least the method can be executed in the mobile terminal, namely, the execution body of the method at least comprises the mobile terminal. The mobile terminal can include a mobile phone, a tablet computer, a vehicle-mounted central control device, a wearable device, an intelligent device and the like, and the intelligent device can include an intelligent office device, an intelligent home device and the like.
In step S100, when the computing application is running, required data may be obtained through operations such as copying or cutting, and the data may be characters, numbers, or both characters and numbers. In general, after the data is obtained by operations such as copying or cutting, the information is stored in a clipboard, and the data is further processed by the clipboard. A clipboard is a storage space that temporarily buffers data that needs to be transferred between two different locations. The two different locations may belong to different locations of the same application or may be two locations belonging to different applications. For example, the data may be pasted between the same applications, pasted to another application from one application, or transmitted to another application.
After the clipboard stores the data, the data stored by the clipboard needs to be read before the data stored by the clipboard is utilized. By reading the data stored in the clipboard, the data can be further operated conveniently in the subsequent step, and a basis is provided for the calculation of the subsequent step.
In step S200, when the data stored in the clipboard includes a number, the number is extracted and transmitted to the computing application, the number is displayed at a preset position of an interface of the computing application, and the number displayed in the computing application can be used for the computing application to perform computing operations as computing parameters. There are many ways to extract numbers, and the computing application can directly extract numbers in the clipboard, and this is not a limitation. The manner of displaying the numbers may include various manners, for example, the numbers may be displayed on a display interface of a computing application, and the specific display manner, display position, and the like are not displayed here, as long as the display manner capable of displaying the numbers is within the protection scope of the present embodiment.
After displaying the numbers to the computing application, the computing application receives the numbers, which the computing application can use to perform computing operations. This may eliminate the need to repeatedly switch between the computing application and other applications to view the numbers so that the computing application can use the numbers to perform corresponding calculations.
The computing application may include an application having a computing function, and is not particularly limited, and may be, for example, a local calculator or an online calculator including a computing tool.
After the figures are extracted and displayed in the calculation application, the figures displayed in the calculation application are used as calculation parameters of the calculation application, the figures can be directly operated to carry out calculation operation, and the operation of manually inputting the figures through a figure area carried by the calculation application is omitted. Through the scheme, the calculation efficiency is improved, the use operation of the user is simplified, the convenience of the user in using the calculation application is improved, and the use experience of the user is further improved.
In one embodiment, before step S200, the method may further include: identifying whether a number is included in the data.
Since the technical solution of the present embodiment is directed to the computing application, the number used by the computing application performs the computing operation through the number, the technical solution of the present embodiment is directed to a case where the data stored in the clipboard includes the number.
After reading the data stored in the clipboard, it is identified whether the data stored in the clipboard contains a number. Since the data stored in the clipboard may contain letters, may contain numbers, or may contain both letters and numbers, there are cases where the data stored in the clipboard may not contain numbers, and it is therefore necessary to identify whether the data stored in the clipboard contains numbers. If it is recognized that the data stored in the clipboard does not contain numbers, no subsequent steps are performed, i.e., no transmission to the computing application.
The step is used for independently processing the numbers in the data stored in the clipboard, and in the case that the data stored in the clipboard contains the numbers, the numbers are independently identified and other data except the numbers are not processed, so that the processing amount of the data stored in the clipboard is reduced, and the subsequent steps can conveniently use the numbers for further operation.
In one embodiment, if it is determined that a number exists in the clipboard, the type of the number needs to be specifically determined. The type of the number may be determined according to the format of a single number, and the type of the number that can be extracted may be preset, and when it is determined that the type of the number in the clipboard matches the preset type of number, that is, when the number included in the clipboard is the number of the preset type, the number of the preset type will be extracted. Otherwise the numbers included in the clipboard are not extracted.
It may be a type of a number not to be extracted that is set in advance, and when it is determined that the type of the number in the clipboard matches the type of the number not to be extracted that is set in advance, that is, the number included in the clipboard is the number of the type not to be extracted that is set in advance, the number is not to be extracted.
For example, the predetermined type of unextracted digits is a type of special number string code, and includes a number string in a telephone number format, a number string in an identification number format, a number string in a courier single number format, a number string in a passport number format, a number string in a license plate format, and the like. When it is determined that the digits included in the data stored in the clipboard are digits that match the special digit string code, that is, when it is recognized that the digits are a digit string in the telephone number format, a digit string in the courier number format, a digit string in the passport number format, or the like, the digits are not extracted.
In an embodiment, the step S200 may further include:
after the clipboard contains the numbers, transmitting the numbers matched with the type of the computing application to the computing application according to the type of the computing application running in the foreground, and displaying the numbers matched with the type of the computing application at a preset position of an interface of the computing application.
For example, a tax calculating application, then transmits the number corresponding to the tax amount in the clipboard content to a calculator, which may include: personal tax calculator, real estate tax calculator, business tax calculator, etc.
Referring to fig. 2, a flow chart of another data processing method is shown. In another embodiment, based on the method shown in fig. 1, the data processing method further includes:
in step S300, a selection operation applied to a number is detected.
After displaying the numbers, further calculation can be performed by the numbers, and a selection operation of selecting a number is detected.
In step S400, the number on which the selection operation acts is determined as a calculation parameter.
After the selection operation acting on the number is detected, the number acted on by the selection operation can be determined according to the selection operation, and then the number acted on by the selection operation is used as the calculation parameter of the calculation application, and the calculation application can perform corresponding calculation by using the calculation parameter.
In this embodiment, after the numbers in the extracted clipboard are displayed in the computing application, a selection operation acting on the numbers is detected, and then the numbers on which the selection operation acts can be determined as the computing parameters. Therefore, convenience is provided for the use operation of a user, the required number can be obtained without calculating the switching between the application and other applications, the use operation is simplified, and the use convenience is improved. After the selection operation is detected, the number acted on by the selection operation is determined according to the selection operation, and the number acted on by the selection operation is determined as the number required to be used, namely the calculation parameter calculated by the calculation application.
In another embodiment, the step S200 of displaying the number at the preset position of the interface of the computing application includes at least one of the following A, B and C:
a: displaying the number on an application interface of the computing application.
The extracted numbers in the clipboard may be displayed through an application interface of the computing application, and the numbers may be displayed in a first area of the application interface of the computing application, the first area being: a display area for calculating parameters, calculating symbols and calculating results. Generally, the application interfaces of computing applications include: and a first area for displaying the input calculation parameters, the calculation symbols, the obtained calculation results and the like.
Referring to part (b) of fig. 3, which is a schematic diagram of an application interface of a local calculator, a part where 5, 523+12, 764+ ═ 18, 287 is located is a first area. The first field may also display the entered 0-9 calculation numbers and the entered "+", "-", "+" and "+" calculation symbols.
When the extracted numbers in the clipboard are displayed through the first area, the numbers do not affect the normal display of the calculation parameters input through the virtual keyboard light of the numbers, nor the normal display of the calculation symbols input through the virtual keyboard of the calculation symbols. That is, the numbers in the extracted clipboard, the numbers entered through the virtual keyboard of numbers, and the calculation symbols entered through the virtual keyboard of calculation symbols, etc. may be simultaneously displayed in the first region.
Since the first area and the virtual keyboard of the numerals are two areas independent of each other, the first area and the virtual keyboard of the calculation symbols are also two areas independent of each other. Therefore, when the extracted numbers in the clipboard are displayed through the first area, the display of the virtual keyboard of the calculation symbol is not influenced, and further the input of the calculation symbol through the virtual keyboard of the calculation symbol is not influenced. Likewise, the display of the virtual keyboard of numbers and thus the input of numbers via the virtual keyboard of numbers is not affected.
In this way, the number on which the selection operation acts can be determined as the calculation parameter of the calculation application through the numbers displayed in the first area, and meanwhile, the number can be input through the virtual keyboard of the number in the calculation application, and the calculation symbol can be input through the virtual keyboard of the calculation symbol in the calculation application. Therefore, the use convenience of the computing application is improved, the application function of the computing application is increased, and further more use requirements can be met.
Alternatively, the first and second electrodes may be,
the extracted numbers in the clipboard may also be displayed in a second area of an application interface of the computing application, the second area being: a virtual keyboard of numbers and a display area of a virtual keyboard of calculation symbols. A typical computing application includes a virtual keyboard of numbers through which the numbers to be utilized can be entered and a virtual keyboard of computing symbols through which the computing symbols to be utilized can be entered. In this embodiment, a display area of a virtual keyboard for displaying numbers and a virtual keyboard for calculating symbols in a computing application is used as the second area.
Referring to part (b) of fig. 3, the application interface diagram of the local calculator shows that the areas displaying the calculation numbers 0-9 are the display areas of the virtual keyboard of the numbers, and the display areas displaying the calculation symbols such as "+", "-", "+" and "+" are the display areas of the virtual keyboard of the calculation symbols.
The extracted numbers are displayed through the second area, so that the area of the first area can be saved, the information quantity displayed by the first area is reduced, and the display effect of the first area is improved. For example, the extracted numerals are displayed in the display area of the virtual keyboard of numerals in the second area, the extracted numerals acting on the display area of the virtual keyboard may be detected, and then the numerals on which the selection operation acts may be determined as the calculation parameters.
B: the numbers are displayed in a floating window.
The numbers in the extracted clipboard are displayed through a floating window established at an application interface of the computing application. The floating window may be a floating window located at a fixed position in an application interface of the computing application, or a floating window that can be dragged on the application interface of the computing application, or the like.
The floating window can also be hidden and expanded, when the extracted numbers do not need to be displayed through the floating window, the floating window can be hidden, when the extracted numbers are used, the floating window can be expanded, the extracted numbers are displayed after the floating window is expanded, and then the numbers can be used for calculation and other operations.
The floating window is a window superimposed on an application interface of the computing application, and the window may be a small window having a display area smaller than that of the full-screen window, that is, the display area of the window is smaller than that of the application interface of the computing application. Based on the drag operation, the floating window may change its display position on the display screen. Through the dragging property of the suspension window, different use requirements can be met, and the operability of a user is improved.
Reference 3 is a schematic display diagram showing numbers at preset positions of an interface of a computing application.
Fig. 3 illustrates a calculator as an example. Part (a) of fig. 3 is a schematic diagram of a memo in which data to be used, for example, 5523 yen puppet, 12764 yen wine house, 2541 yen convenience store, 30000 yen subway top-up, and 53420 yen crab dao are recorded. These data in the memo are copied through the clipboard and are copied into the clipboard. When the data in the clipboard is recognized to contain numbers, the contained numbers are output to a calculator, and the calculator displays the numbers. Part (b) of fig. 3 is a display diagram of an application interface of a calculator, in which a floating window is created, that is, a floating area in which five numbers 5523, 12764, 2541, 30000, and 53420 in a memo are displayed. The numbers are extracted and, after being transmitted to the calculator, the calculator displays the numbers through the floating window, and thus, the calculation operation can be performed through the numbers displayed through the floating window.
In specific application, the floating window can be hidden, for example, after a calculator is started, the floating window cannot be directly displayed, and the numbers in the extracted clipboard can be displayed by pulling down the transverse line mark at the top of the floating window and expanding the floating window. When these numbers are not needed, the floating window can be pulled up again, hidden, etc.
C: the number is displayed in an input field of the input method.
The computing application may also use an input method for the input of numbers, in which case the extracted numbers may be displayed by the input method. Specifically, the numbers may be displayed in an input field of the input method, or the numbers may be displayed in an input field of a candidate word of the input method, and when the numbers are used, the numbers may be input to the application for calculating the input value by the input method.
Specifically, the calculation application may extract the numbers in the clipboard, transmit the numbers to the input method, input the numbers to the calculation application through the input method, and display the numbers input to the calculation application in the first area. Therefore, the numbers are not displayed on an application interface of the computing application, the display effect of the first area and the display effect of the second area are not influenced, and the use of the virtual keyboard of the numbers and the use of the virtual keyboard of the computing symbols in the second area are not influenced.
In another embodiment, the method of data processing further comprises: upon detecting a selection operation on a number within the floating window, the selected number is entered into a first area of the computing application for displaying the parameter.
When the extracted numbers in the clipboard are displayed through the floating window, the numbers in the floating window can be selected. After detecting a selection operation on the numbers in the floating window, the numbers acted on by the selection operation can be determined, and the numbers acted on by the selection operation are the selected numbers. After the number is selected, the selected number may be entered into a first area and displayed in the first area as a calculation parameter for a calculation application.
For example, the number displayed in the floating window is gray before being unselected, the number is highlighted after being selected, and the number is displayed in the first area after being highlighted, indicating that the number is to be input to the computing application as a parameter that needs to be used for computing. When the highlighted number is deselected, the number is changed back to gray, and the number is not displayed in the first area, indicating that the number is deleted in the first area and is no longer used as a parameter for calculation.
In another embodiment, the displaying the number at the preset position of the interface of the computing application in step S200 further includes: and when the number of the digits exceeds a preset numerical value, displaying the digits with the preset numerical value according to the arrangement sequence of the digits.
When the extracted numbers are displayed through an application interface, a floating window or an input method of a computing application, if the number of the extracted numbers in the clipboard is excessive, namely exceeds a preset value, the numbers with the number of the preset value can be displayed smoothly according to the arrangement of the numbers. The remaining number exceeding the preset number may not be displayed.
In another embodiment, after one or more of the displayed numbers with the preset number of numbers are operated, the operated numbers can be deleted, and the numbers with the number equal to the operated numbers in the remaining undisplayed numbers are added to the display interface for display according to the arrangement sequence of the numbers.
For example, the number of preset numbers is 6, the total number of digits is 10, the number of displayed digits is 6, and the remaining 4 digits are not displayed. When two of the displayed 6 numbers are selected, the selected two numbers are deleted, the number of the displayed numbers is 4, and 2 of the rest 4 undisplayed numbers are added to the display interface according to the arrangement sequence for displaying.
Therefore, the rest of the undisplayed numbers can be automatically displayed, the numbers can be conveniently used for calculation, and the limitation caused by the fact that the undisplayed numbers cannot be used due to the fact that limited numbers are displayed is reduced.
In another embodiment, the displaying the number at the preset position of the interface of the computing application in step S200 further includes: and when the number of the numbers exceeds a preset value, displaying the numbers in a paging mode.
When the extracted numbers exceed a preset value, the numbers can be displayed in pages. The portion of the application interface of the computing application in which the first region displays the numbers may be divided into a plurality of pages, with the numbers being displayed in the plurality of pages. The number of single-page displays of the floating window is limited, and the numbers can be displayed in multiple pages by dividing the floating window into multiple pages. The input field of the input method can be displayed in a plurality of pages.
The multi-page display can be to slide up and down to switch different display pages, or to slide left and right to switch different display pages. The numbers are displayed in a paging mode, the numbers can be displayed completely when the number of the numbers is too large, selection can be carried out according to use requirements, the situation that the numbers cannot be displayed completely due to the fact that the number of the numbers is too large is reduced, and use experience of a user is improved.
In another embodiment, when the numbers are displayed in pages, the pages may also be automatically turned after the numbers of the currently displayed page have all been selected at least one time. After the numbers of the current display page are all selected at least one time, the numbers in the current display page are indicated to be operated and may not need to be used again. In this case, the currently displayed page can be automatically turned to the next displayed page, and calculation is performed through the numbers in the next displayed page. The operation of the user can be reduced through automatic page turning, the use experience of the user is improved, and the computing application is more intelligent.
In another embodiment, the data processing method further includes: after determining the number on which the selection operation acts as the calculation parameter, the number on which the selection operation acts is deleted.
After a selection operation acting on a digit is detected and the digit on which the selection operation acts is determined as a calculation parameter of a calculation application, the digit on which the selection operation acts may be deleted. This can reduce the number of number displays of the display section displaying the extracted number.
In another embodiment, the method may further include: a deletion operation applied to a number is detected, and the number to which the deletion operation is applied is deleted after the deletion operation is detected. The method can delete some unnecessary numbers, thereby reducing the display number of the numbers and further reducing the occurrence of the situation of selecting the unnecessary numbers.
In another embodiment, the data processing method may further include: when the number of the numbers exceeds a preset number, the numbers are not displayed.
When the number of extracted numbers exceeds a preset value, the numbers may not be displayed. In some cases, due to the excessive number of the numbers, the numbers may be subjected to some preset specific operations and the like in the background, such as addition of summation or multiplication of multiplication, and the like, and the operation result may be displayed after being obtained.
The scheme specifically comprises the following steps:
and popping up a calculation symbol dialog box, wherein the calculation symbol dialog box is used for prompting and inputting a calculation symbol executed on the number which is not displayed in the background.
An input operation to compute a symbol is received.
And according to the input calculation symbol, executing the operation corresponding to the calculation symbol on the digital not displayed in the background to obtain an operation result.
By the scheme, when the number of the digits is excessive, the operation results of the digits can be obtained according to the input corresponding calculation symbols, so that the operation on the digits is omitted, and the operation is more convenient.
In another embodiment, the data processing method may further include: and when the number of the numbers exceeds a preset value, displaying the numbers acquired by the computing application from the shear plate last time. Because the number of the numbers is too large and exceeds the number of the preset numerical values, the situation may be caused by the situation that the data copied to the shear plate is wrong and the like, and further the numbers in the shear plate are also in problem, the numbers obtained in the last punching and shearing plate of the computing application can be displayed.
In another embodiment, the data processing method further includes: when no number is included in the data and a computing application is detected, the number last acquired by the computing application from the clipboard is displayed.
Since the data copied into the clipboard in many cases does not include numbers, and may include only text, in such cases, the computing application displays the number last obtained from the clipboard when it detects that the computing application needs to use the data in the functional clipboard.
The display may be performed through a display area provided in an application interface of the computing application, may be a specific button, may be a display window provided, and the like. The number that the computing application last obtained from the clipboard may be presented via a button or display window, etc.
In another embodiment, reading data stored in the clipboard when the computing application is running includes: and reading the data stored in the clipboard when the computing application is started or switched to the foreground.
The device has multiple applications, so that multiple operations exist, and in order to improve the working efficiency of the applications, when the computing applications are started or switched to the foreground, the data stored in the clipboard are read, so that the computing applications can calculate by using the numbers in the data stored in the clipboard conveniently. When the computing application is not used, the stored data in the clipboard does not need to be read, and the waste of resources is reduced.
In another embodiment, a data processing apparatus is provided. Referring to fig. 4, a schematic diagram of a data processing apparatus is shown, the data processing apparatus including:
and the reading module 1 is used for reading the data stored in the clipboard when the computing application runs. For example, the data stored in the clipboard may be read when the computing application is launched or switched to the foreground.
The processing module 2 is used for extracting and displaying the numbers at the preset positions of the interface of the computing application when the data contain the numbers; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter.
Fig. 5 is a schematic diagram of another data processing apparatus. In another embodiment, the data processing apparatus further comprises:
a detection module 3 for detecting a selection operation acting on said number.
And the determining module 4 is used for determining the number acted on by the selection operation as the calculation parameter.
In another embodiment, the processing module comprises:
a first display unit to display the number on an application interface of the computing application.
And the second display unit is used for displaying the number in the floating window.
And the third display unit is used for displaying the number in an input field of the input method.
In another embodiment, the data processing apparatus further comprises:
a moving unit, configured to, after detecting the selection operation on the number within the floating window, move the selected number into a first area of the computing application for displaying a parameter.
In another embodiment, the processing module further comprises:
and the fourth display unit is used for displaying the numbers with the preset number according to the arrangement sequence of the numbers when the number of the numbers exceeds the preset number.
Alternatively, the first and second electrodes may be,
and the fifth display unit is used for displaying the numbers in a paging mode when the number of the numbers exceeds a preset numerical value.
In another embodiment, the data processing apparatus further comprises:
a sixth display unit, configured to display, when the number is not included in the data and the computing application is detected, the number that the computing application obtained from the clipboard last time.
In another embodiment, the reading module 1 is further configured to read the data stored in the clipboard when the computing application is started or switched to the foreground.
In another embodiment, there is also provided an electronic device including:
a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the method described in any of the above embodiments.
In another embodiment, there is also provided a non-transitory computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the method described in any of the above embodiments.
It should be noted that "first" and "second" in the embodiments of the present disclosure are merely for convenience of description and distinction, and have no other specific meaning.
In another embodiment, another data processing method is also provided. Referring to fig. 6, a schematic diagram of another data processing method is shown, the method including:
and step 10, reading the data stored in the clipboard when the computing application is opened or switched from a background to a foreground.
Step S20, the content in the clipboard is identified, and it is determined whether a number exists.
At step S30, if a number exists, one or more of the numbers are extracted.
And step S40, integrating and displaying the extracted numbers.
In step S50, an operation is detected, and the number on which the operation acts is determined as a calculation parameter.
Fig. 7 is a block diagram illustrating a terminal device according to an example embodiment. For example, the terminal device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 7, the terminal device may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal device, such as operations associated with presentation, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, contact data, phonebook data, messages, pictures, videos, etc. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to various components of the terminal device. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal device.
The multimedia component 808 includes a screen that provides an output interface between the terminal device and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. When the terminal device is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 814 includes one or more sensors for providing various aspects of state assessment for the terminal device. For example, sensor assembly 814 may detect the open/closed status of the terminal device, the relative positioning of components, such as the display and keypad of the terminal device, the change in position of the terminal device or a component of the terminal device, the presence or absence of user contact with the terminal device, the orientation or acceleration/deceleration of the terminal device, and the change in temperature of the terminal device. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the terminal device and other devices in a wired or wireless manner. The terminal device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A data processing method, comprising:
reading data stored in the clipboard when the computing application runs;
when the data comprises numbers, extracting and displaying the numbers at a preset position of an interface of the computing application; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter.
2. The data processing method of claim 1, wherein the method further comprises:
detecting a selection operation acting on the number;
determining the number on which the selection operation acts as the calculation parameter.
3. The data processing method of claim 1, wherein the extracting and displaying the number at a preset location of an interface of the computing application comprises at least one of:
displaying the number on an application interface of the computing application;
displaying the number within a floating window;
and displaying the number in an input field of the input method.
4. The data processing method of claim 3, wherein the method further comprises:
after detecting the selection operation on the number in the floating window, inputting the selected number into a first area of the calculation application for displaying parameters.
5. The data processing method of claim 1, wherein the extracting and displaying the number at a preset location of an interface of the computing application comprises:
when the number of the numbers exceeds a preset value, displaying the numbers with the preset number according to the arrangement sequence of the numbers;
alternatively, the first and second electrodes may be,
and when the number of the numbers exceeds a preset value, displaying the numbers in a paging way.
6. The data processing method of claim 1, wherein the method further comprises:
when the number is not included in the data and the computing application is detected, displaying the number that was last obtained by the computing application from the clipboard.
7. The data processing method of claim 1, wherein reading the data stored in the clipboard when the computing application is running comprises:
and reading the data stored in the clipboard when the computing application is started or switched to the foreground.
8. A data processing apparatus, comprising:
the reading module is used for reading the data stored in the clipboard when the computing application runs;
the processing module is used for extracting and displaying the number at a preset position of an interface of the computing application when the data comprises the number; wherein the displayed number is usable by the computing application to perform a computing operation as a computing parameter.
9. An electronic device, comprising:
a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions when the executable instructions are executed, and the executable instructions perform the method of any one of the preceding claims 1 to 7.
10. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, implement the method of any of claims 1 to 7.
CN202110259301.6A 2021-03-10 2021-03-10 Data processing method and device, electronic equipment and storage medium Pending CN112948144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110259301.6A CN112948144A (en) 2021-03-10 2021-03-10 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110259301.6A CN112948144A (en) 2021-03-10 2021-03-10 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112948144A true CN112948144A (en) 2021-06-11

Family

ID=76229106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110259301.6A Pending CN112948144A (en) 2021-03-10 2021-03-10 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112948144A (en)

Similar Documents

Publication Publication Date Title
KR101617461B1 (en) Method for outputting tts voice data in mobile terminal and mobile terminal thereof
US10942616B2 (en) Multimedia resource management method and apparatus, and storage medium
KR101873413B1 (en) Mobile terminal and control method for the mobile terminal
EP3098701B1 (en) Method and apparatus for managing terminal application
EP3454196B1 (en) Method and apparatus for editing object
KR101414766B1 (en) Mobile terminal and operation control method thereof
EP2693321A1 (en) Mobile terminal and control method thereof
JP2020516994A (en) Text editing method, device and electronic device
US11537265B2 (en) Method and apparatus for displaying object
RU2648616C2 (en) Font addition method and apparatus
CN106775202B (en) Information transmission method and device
CN110968364B (en) Method and device for adding shortcut plugins and intelligent device
CN107239351B (en) Pasting method and device
CN112035031B (en) Note generation method and device, electronic equipment and storage medium
CN104216973A (en) Data search method and data search device
CN111651216A (en) NFC card processing method and device and storage medium
US9098194B2 (en) Keypad of mobile terminal and display method thereof
KR20150009018A (en) Mobile terminal and control method for the mobile terminal
KR20140113155A (en) Mobile device and control method for the same
CN110085066B (en) Method and device for displaying reading information and electronic equipment
CN109491570B (en) Shorthand method, mobile terminal and storage medium
CN112181351A (en) Voice input method and device and electronic equipment
CN107885571B (en) Display page control method and device
CN112948144A (en) Data processing method and device, electronic equipment and storage medium
CN112882624B (en) Process management method and device, electronic equipment and storage medium

Legal Events

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