CN109308240B - Operation processing method and device and storage medium - Google Patents

Operation processing method and device and storage medium Download PDF

Info

Publication number
CN109308240B
CN109308240B CN201710618711.9A CN201710618711A CN109308240B CN 109308240 B CN109308240 B CN 109308240B CN 201710618711 A CN201710618711 A CN 201710618711A CN 109308240 B CN109308240 B CN 109308240B
Authority
CN
China
Prior art keywords
content
application program
target function
operating system
function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710618711.9A
Other languages
Chinese (zh)
Other versions
CN109308240A (en
Inventor
阮宜德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710618711.9A priority Critical patent/CN109308240B/en
Publication of CN109308240A publication Critical patent/CN109308240A/en
Application granted granted Critical
Publication of CN109308240B publication Critical patent/CN109308240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Abstract

The invention discloses an operation processing method and device and a storage medium; the method comprises the following steps: monitoring a data transfer service of an operating system in an application program to obtain the content of the selected operation in the operating process of the operating system; analyzing the content of each selected operation, and determining a target function dynamically adapted to the content of each selected operation in the operating system; calling the target function realized by an application program or a webpage program in the operating system, and transmitting the content to the target function; and forming a response result of the target function to the content based on the content transmitted to the target function.

Description

Operation processing method and device and storage medium
Technical Field
The present invention relates to communications technologies, and in particular, to an operation processing method and apparatus, and a storage medium.
Background
The internet, in particular, the mobile internet, has been developed, and the use of various applications, in particular, mobile Applications (APP) has become increasingly popular, however, there is still a limitation of simplification for the response of the user to the selection operation of the content in the related art.
For example, in various applications, when a user performs a selection operation on content therein, a prompt is usually given to perform several predetermined conventional functions such as copying, pasting, sharing, and the like, and with diversification of applications and increasing availability of functions, the limitation of the simple response mode to the selection operation on the user operation becomes increasingly prominent.
Disclosure of Invention
The embodiment of the invention provides an operation processing method and device and a storage medium, which can provide a targeted adaptation function for the selection operation of contents and improve the intelligent level of response of an application program to the selection operation.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides an operation processing method, which comprises the following steps:
monitoring a data transfer service of an operating system in an application program to obtain the content of the selected operation in the operating process of the operating system;
analyzing the content of each selected operation, and determining a target function dynamically adapted to the content of each selected operation in the operating system;
calling the target function realized by an application program or a webpage program in the operating system, and transmitting the content to the target function;
and forming a response result of the target function to the content based on the content transmitted to the target function.
An embodiment of the present invention further provides an operation processing apparatus, including:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for monitoring the data transfer service of an operating system and acquiring the content of selected operation in the operating process of the operating system;
a determining unit, configured to perform analysis based on the content of each selected operation, and determine a target function in the operating system that is dynamically adapted to follow the content of each selected operation;
the calling unit is used for calling the target function realized by an application program or a webpage program in the operating system and transmitting the content to the target function;
and the response unit is used for forming a response result of the target function aiming at the content based on the content transmitted to the target function.
An embodiment of the present invention further provides an operation processing apparatus, including:
a memory for storing an executable program;
the processor is used for realizing the operation processing method provided by the embodiment of the invention when the executable program stored in the memory is executed:
monitoring a data transfer service of an operating system, and acquiring the content of the selected operation in the operating process of the operating system;
analyzing the content of each selected operation, and determining a target function dynamically adapted to the content of each selected operation in the operating system;
calling the target function realized by an application program or a webpage program in the operating system, and transmitting the content to the target function;
and forming a response result of the target function to the content based on the content transmitted to the target function.
The application of the embodiment of the invention has the following beneficial effects:
1) by monitoring the data transfer service of the operating system, the target function is adapted to the selection operation of the content of each application program of the operating system, and the global target function adaptation can be realized without additionally arranging corresponding processing logic in each application program, so that the method has good adaptability and is not limited by the type of the operating system and the application program;
2) the adaptation is carried out according to the content of the selection operation, so that the technical effect of accurately predicting the intention of the target function of the operation is realized;
3) by transmitting the content to the adaptive target function, the automatic processing of the target function aiming at the content is realized, and the operation efficiency and the intelligent degree are obviously improved.
Drawings
FIG. 1 is a diagram illustrating inter-invocation of application programs in an embodiment of the present invention;
FIG. 2a is a schematic flow chart of an exemplary method of operation of the present invention;
FIG. 2b is a schematic flow chart of an exemplary method of operation of the present invention;
FIG. 3a is a diagram illustrating content of a user selection operation according to an embodiment of the present invention;
FIG. 3b is a diagram illustrating notification of a send target function in an embodiment of the invention;
FIG. 3c is a diagram illustrating loading of a target function according to an embodiment of the present invention;
FIG. 4a is a diagram illustrating notification of a send target function in an embodiment of the invention;
FIG. 4b is a diagram illustrating loading of a target function according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating loading of target functions in an embodiment of the invention;
FIG. 6a is a flow chart illustrating an exemplary method of operation of the processing method according to the present invention;
FIG. 6b is a flow chart illustrating an exemplary method of operation of the processing method of the present invention;
FIG. 7a is a diagram illustrating content of a user selection operation according to an embodiment of the present invention;
FIG. 7b is a diagram illustrating notification of a send target function in an embodiment of the invention;
FIG. 7c is a diagram illustrating loading of a target function according to an embodiment of the present invention;
FIG. 8 is a flow chart illustrating a method of operation of a processing method according to an embodiment of the present invention;
FIG. 9a is a diagram illustrating content of a user selection operation according to an embodiment of the present invention;
FIG. 9b is a diagram illustrating notification of a send target function in an embodiment of the invention;
FIG. 9c is a diagram illustrating loading of a target function according to an embodiment of the present invention;
FIG. 10 is a schematic diagram illustrating the structure of an operation processing apparatus according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of the structure of the operation processing device according to the embodiment of the present invention.
Detailed Description
The present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present invention and are not intended to limit the present invention. In addition, the following embodiments are provided as some embodiments for implementing the invention, not all embodiments for implementing the invention, and those skilled in the art will not make creative efforts to recombine technical solutions of the following embodiments and other embodiments based on implementing the invention all belong to the protection scope of the invention.
It should be noted that, in the embodiments of the present invention, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other related elements in a method or apparatus that comprises the element (e.g., steps in a method or elements in an apparatus).
For example, the operation processing method provided by the embodiment of the present invention includes a series of steps, but the operation processing method provided by the embodiment of the present invention is not limited to the described steps, and similarly, the operation processing apparatus provided by the embodiment of the present invention includes a series of units, but the apparatus provided by the embodiment of the present invention is not limited to include the explicitly described units, and may further include units that are required to acquire related information or perform processing based on the information.
Before further detailed description of the present invention, terms and expressions referred to in the embodiments of the present invention are described, and the terms and expressions referred to in the embodiments of the present invention are applicable to the following explanations.
1) The data relay service, also called a data relay station, a paste board, or a clipboard, temporarily stores data running in the background of the operating system and provides a shared function for each application program of the operating system, and occupies a storage area in the memory.
2) The application programs, which are used for realizing specific application scenes in an operating system of a terminal (such as a smart phone, a tablet personal computer and the like), are compiled and installed in the terminal for running.
3) A netpage program, a program implemented in an application program by running js (javascript) on an application-integrated browser kernel to implement additional scenes, i.e., a netpage program (also referred to as a mini program or an applet).
4) The functions include the division of an application program or a webpage program aiming at realizing a specific application scene, such as a chat function and a sharing function in a social application scene; a payment function and a collection function in a transaction scenario, etc.
5) And a word vector, namely mapping words to a vector obtained in a K-dimensional vector space, wherein the distance between the word vectors of any two words reflects the semantic similarity.
6) Js (javascript) interface: a software development kit realized by JS is packaged with a series of application program interfaces, and the mutual calling of the webpage and the local function of the terminal can be realized.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating mutual invocation between application programs in an operation processing method according to an embodiment of the present invention; in the terminal, an operating system layer is run above a hardware layer, and an application layer shows a local application program; the application program can integrate webpage programs (for example, a WeChat client integrates a 12306 program for ticket purchasing), a JS interface is arranged in the application program, and the JS interface is called to realize the mutual calling among the application programs, the application programs and the webpage programs; the operating system layer is provided with a listener service for listening, at runtime, for content changes in a data relay service of the operating system, the data relay service (such as a clipboard) being used for storing content of a user's selection operation during operation of the operating system.
One example is that the content in the data relay service of the operating system is monitored to be updated, the updated content is obtained, the updated content is analyzed to adapt to the corresponding function (the target application program or the webpage program), and then the application program or the webpage program corresponding to the target function is called based on the JS interface in the application program based on the adapted target application program or the webpage program.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
As an alternative embodiment for implementing the operation processing method, the operation processing method may be implemented by a separate application program in the terminal, or may be implemented by a sub-program integrated in the application program of the terminal; the application program can be a native application program (such as setup) in the terminal system, and can also be an application program of a third party installed in the terminal (such as WeChat and QQ). Fig. 2a shows an optional flow diagram of the operation processing method according to the embodiment of the present invention, referring to fig. 2a, which relates to three parties, namely, an application program, a data relay service, and a target function, where the application program registers a listener service to the data relay service, that is, registers the listener service to the data relay service in a process of the application program to monitor a content change condition in a memory space corresponding to the data relay service, and when it is monitored that the memory space corresponding to the data relay service of the operating system has a content change, the application program is notified, the application program acquires the content in the memory space corresponding to the data relay service, analyzes the content, determines an adapted target function, and calls the target function through an interface. Fig. 2b is an optional schematic flow chart of the operation processing method according to the embodiment of the present invention, which relates to steps 101 to 104, and is described below with reference to fig. 2a and fig. 2 b.
First, in actual implementation, before step 101 is executed, the operation processing method according to the embodiment of the present invention may further include:
the application program of the scheme registers the listener service to the data transfer service, namely registers the listener service to the data transfer service in the process of the application program so as to monitor the content change condition in the memory space corresponding to the data transfer service;
here, the data relay service is a data relay service corresponding to a global context, that is, a data relay service of an operating system of the terminal; in practical application, the data transfer service may be a clipboard of an operating system, that is, an application program registers a listener service for the clipboard of the operating system to listen to changes in contents in the clipboard; correspondingly, the selection operation of the user in the operation process of the operating system comprises the following steps: copy, cut, etc., and the content of the user selection operation may include text, images, media stream data, etc.
Step 101, an application monitors a data transfer service of an operating system to obtain content of a selected operation in an operating process of the operating system.
Here, in actual implementation, in an operation process of the operating system, a user performs a selection operation (e.g., copying) based on an application program on the terminal, the data relay service receives contents of the selected operation in each application program of the operating system and stores the contents into a memory space corresponding to the data relay service, and a listener service registered by the application program monitors that the contents in the memory space corresponding to the data relay service change, and notifies the application program, so that the application program obtains the contents of the selected operation by the user in the operation process of the operating system. The following description will take the data relay service of the operating system as an example of a clipboard of the operating system.
Illustratively, a user conducts a wechat at a wechat client on a terminal, and for a certain actual need (for example, a friend message includes an english word, the user does not know that further translation is needed, or a friend recommends a song, the user wants to search for the song in a music client, and the like), the user performs a copy operation on information sent by the friend, and a listener service registered by an application program monitors that the content in a clipboard is updated, notifies the application program, and the application program obtains the updated content in the clipboard (i.e., the information of the wechat friend copied by the user).
Illustratively, a user browses a news webpage at a browser client on a terminal, and for some practical needs (for example, a name of a novel is mentioned in a certain news, the user needs to read the novel, or a food is mentioned in the certain news, the user wants to open shopping software to purchase the food, etc.), the user performs a copy operation on information in the news webpage, and a listener service registered by an application monitors that the content in a clipboard is updated, notifies the application, and the application acquires the updated content in the clipboard (i.e., the information in the news webpage copied by the user).
Referring to fig. 3a, a user browses a blog based on a browser on a terminal, and the user performs a word copying operation for the need of translating english words.
In the above examples, the content of the user selection operation is text information, and in practical applications, the content may also be image information or video information.
Taking the content of the user selection operation as image information as an example: the method comprises the steps that a user conducts QQ chat based on a QQ client on a terminal, a friend sends a photo, the user copies the photo when the user needs to conduct image processing on the photo, a listener service registered by an application program monitors that the content in a clipboard is updated, the application program is notified, and the application program obtains the updated content in the clipboard (namely the photo copied by the user).
Taking the content of the user selection operation as video information as an example: the method comprises the steps that a user conducts QQ chat at a QQ client on a terminal, a friend sends a video, the user needs to conduct video clipping on the video, the video is copied, a listener service registered by an application program monitors that the content in a clipboard is updated, the application program is notified, and the application program obtains the updated content in the clipboard (namely the video copied by the user).
Step 102: and analyzing based on the content of each selected operation, and determining a target function dynamically adapted to the content of each selected operation in the operating system.
Here, in actual implementation, analyzing the content of the user selection operation includes two cases:
1) and the application program locally analyzes the content of the operation selected by the user.
2) And the application program calls the network server to analyze the content of the operation selected by the user.
For example: and when the application program is the WeChat, analyzing the content of the user selection operation by calling the background server of the WeChat.
The determined target function of the content which is adapted to the user selection operation in the operating system comprises three presentation modes:
1) the application program is an extended function realized by setting a webpage program, such as a function realized by the following small programs in the WeChat: services such as telephone charge recharging, shopping (displaying a list of commodities), express inquiry and the like (displaying logistics information of an express bill number);
2) native functions of the application, such as payment functions and social functions of WeChat;
3) the functions implemented by other application programs independent of the application program (i.e., the application program executing the monitoring operation in the embodiment of the present invention) in the operating system, taking other application programs as the wechat, may be native functions of the wechat, such as a social function and a payment function, and may also be extended functions implemented by the applet, such as a shopping function.
Next, a detailed description will be given of a specific implementation of this step, taking the content of the selected operation as a text content.
In an alternative embodiment of the present invention, keywords may be extracted from the content selected for operation, the extracted keywords may be matched with names and/or uses (i.e., application scenarios) of the functions of the operating system, and a predetermined number of functions may be selected as the target functions to be adapted according to a descending order of the degree of matching.
First, for name matching, the description will be made in a manner of matching character dimensions and semantic dimensions, respectively.
Character dimension matching: matching the same characters in the keywords and the names of the functions, wherein the characters comprise the same number of characters, and determining the matching degree according to the number of the same characters; for example: the keyword is 'winner client', the 'winner client' matched with the function name comprises the keyword, and the number of the same characters is the largest, so that the function can be determined to be matched with the keyword to the highest degree, and the keyword can be used as a target function.
Matching semantic dimensions: and determining the similarity between the keyword and the name of the function by calculating the distance between the keyword and the word vector between the names, and determining the target function according to the similarity.
Second, in the case of purpose matching, the matching of two dimensions, character and semantic, is also involved, and will be described separately.
Character dimension matching: matching the same characters in the keywords and the corresponding purposes (application scene categories, such as travel and music) of the functions, wherein the number of the same characters is included, and the matching degree is determined by the number of the same characters; for example: the keyword is 'travel', the 'travel' matched in the function application comprises the keyword, and the number of the same characters is the largest, so that the function (such as travel with trip in an operating system and cattle travel) corresponding to the application scene category can be determined to be the highest in matching degree, and the function can be used as a target function.
Matching semantic dimensions: the similarity between the keywords and the purposes of the functions is determined by calculating the distance between the keywords and the word vectors between the purposes (application scene categories), and the matched application scene categories are determined through the similarity, so that the target functions are determined.
In actual implementation, when an operation of extracting a keyword from the content of the selected operation is performed, and when the number of characters included in the content of the selected operation is less than a preset number of characters (set according to actual needs, such as 10 characters), it is determined that the content itself is the keyword, for example: the contents of the selected operation are: pizza, the content is less than the preset number of characters, and the pizza is determined as the keyword of the content; and recognizing that the keywords comprise http, the keywords are regarded as the website.
Wherein, matching the extracted keywords with the names and/or uses (i.e. application scene categories, such as music, travel, bank, social, shopping, etc.) of the functions of the operating system may include:
respectively calculating the similarity of each keyword and the name and/or the use of each candidate function;
for each candidate function, carrying out weighting processing on each obtained similarity to obtain a weighting processing result;
determining a corresponding score based on the weighting processing result corresponding to each candidate function;
and sequencing all the candidate functions according to the graded descending order, and determining the target function according to the sequencing result.
In practical application, an operating system of a terminal includes a plurality of functions, each function corresponds to an application program or a web page program, and a name of a function is a name of an application program or a web page program corresponding to the function, for example: the music playing function corresponds to QQ music/cool dog music and the like, the takeout function corresponds to American group/hundred degree takeout, and the translation function corresponds to a channel dictionary/hundred degree translation and the like;
the use of the function (application scenario category) may include at least one application program or web page program, such as: music includes QQ music and cool dog music.
Taking the similarity between the calculated keyword and the name of the candidate function as an example, the basic principle is as follows:
when the keyword is the same as the name, the similarity (matching degree) is highest (100%); if the keyword is hundred degree takeout and the name corresponding to the corresponding takeout function comprises hundred degree takeout, the similarity is 100 percent;
when the keywords are different from the names, calculating the distance between the keywords and the word vectors between the names, and expressing the similarity by quantizing the distance of the word vectors; the distance of the word vector is in negative correlation with the similarity, namely the smaller the distance is, the higher the similarity is; the distance of the word vector may be expressed in terms of euclidean distance.
Based on the above embodiments of the present invention, the operation of this step is described with respect to the above implementation.
Taking the extracted keyword as "pizza", the operating system includes candidate functions related to: calculating similarity between keyword- 'pizza' and name of each candidate function by taking QQ music, Taobao, Jingdong, Baidu takeout, journey with journey, ink weather, QQ, Wenxin, Wechat, Bing Shang Bank, China construction Bank, Paibao and Tiantian P picture as examples;
calculating the similarity between the keyword- 'pizza' and the name of the candidate function, determining that the keyword is different from the name, and calculating the Euclidean distance between the 'pizza' and the name of the candidate function; determining that the Euclidean distance between the pizza and the Baidu takeout is the smallest in each candidate function, determining that the similarity between the pizza and the Baidu takeout is the highest, determining corresponding scores (the scores can be equivalent to the probability that the candidate function is determined as the target function) respectively based on the Euclidean distances between the pizza and the names of the candidate functions, sequencing the application programs/webpage programs corresponding to the candidate functions according to descending order of the scores, and determining the target function according to the sequencing result, such as selecting the first three (Baidu takeout, Taobao and Jingdong) candidate functions as the target function.
As another implementation manner of this step, this step (102) may specifically include:
constructing a training sample by using keywords of historical content selected by a user in the operation process of an operating system and corresponding application scene categories, and training a machine learning model;
extracting keywords from the selected operation content, and inputting the extracted keywords into a machine learning model to obtain an application scene category corresponding to the extracted keywords;
and selecting the function corresponding to the obtained application scene category in the operating system.
Here, training the machine learning model to obtain a mapping relationship between the keyword and the corresponding application scene category, that is, training the machine learning model to make the machine learning model have a function of predicting the corresponding application scene category according to the input keyword; wherein, the model of machine learning can be selected from: classification regression tree models, deep neural networks, support vector machines, and the like.
The construction of the training sample is illustrated: respectively marking the application scene category corresponding to each keyword, such as: { keyword: pizza, markup (application scene category): take out }; { keyword: payment, marking: payment }; { keyword: hotel, marking: travel, etc.;
furthermore, to enrich the sample space, the samples can be generalized according to semantic similarity of keywords, e.g., for samples { keyword: pizza, marking: take-out }, can be generalized to: { keyword: pie, marking: take out }.
In practical application, based on a machine learning model obtained by training, after an extracted keyword is input, a corresponding application scene category is obtained, and for the same application scene category, multiple functions may be often corresponding, such as: the functions corresponding to the application scene category of the takeout include hundred-degree takeout, American group takeout and the like, and the functions corresponding to the application scene category of the bank include a business recruitment bank, a Chinese construction bank and the like.
In some embodiments, after obtaining the content of the selected operation, before performing analysis based on the content of the selected operation to determine a target function in the operating system adapted to the content, the following operations may be further performed:
and identifying the type of the content selected to be operated, and determining the pre-associated function as the target function when the identified type has the pre-associated function.
Here, in practical implementation, the associated functions may be set according to the type of content (including text, image, video) selected for operation, for example: when the type of the content selected for operation is an image, setting the associated function as a "day-P map"; when the type of the content selected for operation is a video, the associated function is set to "edit star".
It should be noted that, in some embodiments described above, when it is determined that there is a pre-associated function according to the type of the content selected for operation, the pre-associated function is directly used as a target function, and operations such as subsequent target function invocation are performed, and only when it is determined that there is no pre-associated function according to the type of the content selected for operation, the operations of analyzing the content selected for operation and determining the target function adapted to the content are performed.
Based on the above embodiments of the present invention, in some embodiments, since there may be a plurality of determined target functions, after determining the target function, the following operations may be performed:
loading the notification of the target function in the application program corresponding to the selected operation, and executing the loading of the selected target function; that is, the user is notified of the plurality of target functions determined for the user to select on the page of the application program where the user performs the selection operation, and when the user selects a certain target function, the selected target function is loaded. For example: if the user copies the pizza in the WeChat and the determined target function comprises the American takeout and the Baidu takeout, a page of the WeChat where the user performs the copying operation displays a notification comprising the American takeout and the Baidu takeout, as shown in FIG. 4a, the notification of the target function is sent, when the user selects the Baidu takeout, an application program of the Baidu takeout is loaded and the pizza is input to form a response result for the pizza, and as shown in FIG. 4b, the response result is formed after the user triggers the Baidu takeout.
Step 103: the application program calls a target function realized by the application program or the webpage program in the operating system, and transmits the content to the target function.
Here, in actual implementation, the application program executing the operation processing method according to the embodiment of the present invention may be in two working states, namely, a background running state and a foreground running state; the present step will be described below with respect to these two operating states, respectively.
When the application program is in a background running state, the calling target function of the step comprises the following steps:
sending a notification of the target function to a foreground application in the operating system that obtained the selection operation (i.e., the selection operation of the content, such as copying); the sending here may be specifically sent by calling a notification entry of the operating system;
and when the target function notified in the foreground application is triggered, executing the loading of the corresponding target function in the foreground application.
For example, if the application program executing the operation processing method according to the embodiment of the present invention is a WeChat, and the WeChat is in a background running state at this time, and the foreground application program for the user to perform the selection operation is a QQ, the invoking of the target function may include: by calling a notification entry of an operating system, a notification of a target function is sent to a page in the QQ where a user performs a selection operation, and when the user triggers (selects) the target function in the notification based on the notification, the triggered target function is loaded in the QQ.
Continuing with the example in fig. 3, the keyword extracted by the QQ browser is the word "sure", the extracted keyword is matched with the name and use of the function of the operating system, the target function is a channel dictionary, a notification of the channel dictionary is sent in the current blog page, as shown in fig. 3b, when the user triggers the function based on the notification, the channel dictionary is loaded on the current page, and the content selected by the user is input to form a translation result, as shown in fig. 3 c.
Here, in actual implementation, the loading of the target function includes two cases:
1) if the target function triggered (selected) by the user is other application programs (including the small program in the foreground application program), the loading is to call the other application programs by calling the JS interface in the application program so as to run the corresponding target function;
2) and the target function triggered (selected) by the user is the native function of the foreground application program, namely the selected target function belongs to the foreground application program, and the loading is just to directly run the target function in the foreground application program.
When the application program is in a foreground running state and selection operation is obtained in the application program, the calling target function of the step comprises the following steps:
and when the user triggers the determined target function in the application program, executing the loading of the corresponding target function in the application program.
Here, in actual implementation, the loading of the target function also includes two cases:
if the selected target function is from the application program, the loading is to operate the target function in the application program; if the selected target function is originated from other application programs, the loading is to run other application programs to execute the corresponding target function.
In practical applications, when the application program has a web page program for realizing a target function and the operating system has other application programs with adaptive contents, the web page program for realizing the target function in the application program is called. Thus, the continuity of operation in the application program is ensured. For example: the application program is the WeChat, the target function is the dribble trip, the dribble trip of the webpage program is arranged in the WeChat at the moment, the client side of the dribble trip is also arranged in the operating system, and the dribble trip in the webpage form in the application program is directly called in order to guarantee the continuity of user operation in the WeChat.
Of course, in the above case, it should be noted that, as another implementation, only the web page program that preferentially calls the application program to realize the target function is not excluded.
The following description will be made of an object for transferring content to a target function:
if the target function obtained by each adaptation is the only function of the application program, such as a browser, transmitting the content to the browser;
if the result of the adaptation is an optional function in the application, the content is transmitted to the corresponding function module in the application.
Step 104: and forming a response result of the target function for the content based on the content transmitted to the target function.
Here, in actual implementation, after the user loads the determined target function on the page of the application program for performing the selection operation, the application program implementing the operation processing method according to the embodiment of the present invention automatically inputs the content of the selected operation to the determined target function (target application program/web program), and forms a response result for the content of the selected operation by running the target application program/web program.
One example is: monitoring that the user copies 'song cool and cool' in the QQ chat in a clipboard of the operating system, determining that the adapted target function is the QQ music through analysis of the content, then loading an application program of the QQ music through calling an interface, and inputting 'song cool and cool' to form a response result for the content, as shown in fig. 5, a schematic diagram of the response result for the 'song cool and cool' copied by the user is shown.
It should be noted here that the loading of the target function is always implemented in the application program that obtains the selection operation, and the situation that the target function is sent by mistake in the case of more than two foreground application programs (for example, split screen window, one browser, one player) is avoided.
By applying the embodiment of the invention, the updated content in the clipboard is intelligently analyzed by monitoring the content change in the clipboard of the terminal operating system, the target function of the updated content in the clipboard is determined, and then the target function is loaded when the user triggers the target function, so that the response result for the updated content is formed.
As a specific application embodiment of the operation processing method, fig. 6a shows an optional flowchart of the operation processing method provided in the embodiment of the present invention, where the operation processing method in fig. 6a is implemented by an application program, when a registered listener service monitors that there is a content change in a clipboard, the application program is notified, the application program determines a corresponding target function by performing intelligent analysis on the content in the clipboard, and displays an entry corresponding to the target function, fig. 6b shows another optional flowchart of the operation processing method provided in the embodiment of the present invention, and with reference to fig. 6a and fig. 6b, the operation processing method provided in the embodiment of the present invention includes:
step 201: and the terminal monitors that the content in the clipboard of the operating system is updated, and acquires the updated content in the clipboard.
Here, the application scenarios of the present embodiment are: the user chats with the WeChat on the terminal, the WeChat friend sends a message of 'Heli me Mobile phone recharge 100 yuan', the user copies the 'Mobile phone recharge' in the message, referring to FIG. 7a, FIG. 7a shows an interface schematic diagram of the user copying the WeChat message in the embodiment of the invention, so that the content in the clipboard of the terminal operating system is 'Mobile phone recharge', the content in the clipboard is updated, and correspondingly, the content acquired by the terminal is 'Mobile phone recharge'.
Step 202: and analyzing the obtained content and determining the target function corresponding to the content.
In practical application, the keywords in the obtained content are extracted, and the extracted keywords are the mobile phone recharge characters because the number of the mobile phone recharge characters is less than the preset number of the characters.
The extracted keywords are matched with the names of all functions of the operating system, and the matching degree of the native function- 'mobile phone recharge' in the WeChat and the extracted keywords is determined to be 100%, so that the target function corresponding to the determined content is the native function- 'mobile phone recharge' in the WeChat.
Step 203: and sending the notice of the target function on the page of the application program corresponding to the content.
In actual implementation, sending a notification of a target function on a page of an application program corresponding to the content through a function entrance of an operating system; referring to fig. 7b, fig. 7b is a schematic diagram illustrating that a notification of the target function, namely the mobile phone recharge, is displayed in the operation page of the user according to the embodiment of the present invention.
Of course, in practical applications, the user may also ignore the sent notification and continue to perform subsequent operations, such as pasting.
Step 204: and in response to the triggering of the target function by the user, loading the target function in the page to form a response result of the target function to the content.
Here, when the user clicks the target function of the trigger notification, since "mobile phone recharge" is the native function of the WeChat, the function is directly run in the WeChat, see fig. 7c, and fig. 7c is an interface diagram illustrating that the target function is run in the application program operated by the user in the embodiment of the present invention.
By applying the embodiment of the invention, the user realizes the direct calling of the mobile phone recharging function in the WeChat by copying the 'mobile phone recharging' in the WeChat message, the user does not need to specially start the mobile phone recharging function, the use of the target function corresponding to the copied content is facilitated for the user, meanwhile, more function choices are provided for the user, and the user experience is greatly improved.
As another specific application embodiment of the operation processing method, fig. 8 shows an optional flowchart of the operation processing method provided in the embodiment of the present invention, and referring to fig. 8, the method includes:
step 301: and the terminal monitors that the content in the clipboard of the operating system is updated, and acquires the updated content in the clipboard.
Here, the application scenarios of the present embodiment are: the user conducts WeChat chat through WeChat on the terminal, and WeChat friends send messages to' go to Jiuzhaigou travel bar together? You decide a hotel first ", the user copies the message sent by the friend, see fig. 9a, fig. 9a is an interface schematic diagram of the user copying the WeChat message in the embodiment of the present invention, so that the content in the clipboard of the terminal operating system is" go to the Jiuzhaigou travel bar together? You decide a hotel first, the content in the clipboard is updated, and correspondingly, the content acquired by the terminal is just' going to the national village tourism bar together? You decide a hotel first ".
Step 302: determining the type of the content in the clipboard, judging whether the pre-associated target function exists or not based on the determined type, and if not, executing step 303; if so, go to step 306;
here, the above types include: text, images, video; in this embodiment, the type of the content in the clipboard is determined to be a text type, and it is determined that there is no target function associated with the text type.
Step 303: extracting keywords of the content in the clipboard, inputting the extracted keywords into a machine learning model obtained through training, obtaining application scene categories corresponding to the keywords and functions corresponding to the scene categories, and taking the functions corresponding to the scene categories as target functions.
Here, in actual implementation, "go to the national village travel bar together? The keywords in the 'you decide the hotel first' are 'Jiuzhaigou', 'travel', 'decide the hotel'; inputting the extracted keywords into a machine learning model obtained by training, obtaining the application scene category corresponding to the keywords as travel, and further obtaining the function of obtaining the application scene category corresponding to the travel comprises the following steps: travel with journey, cattle journey net and travel with journey.
Step 304: and sending the notice of the target function on the page of the application program corresponding to the content.
In actual implementation, sending a notification of a target function on a page of an application program corresponding to the content through a function entrance of an operating system; referring to fig. 9b, fig. 9b is a schematic diagram illustrating that a notification of a target function is displayed in an operation page of a user according to an embodiment of the present invention.
Of course, in practical applications, the user may also ignore the sent notification and continue to perform subsequent operations, such as pasting.
Step 305: in response to the user's trigger on the selected target function, the selected target function is loaded to form a response result of the target function for the content, and step 307 is executed.
Here, continuing with the above example, after the user selects the travel to take, the application program of the travel to take is called through the interface, referring to fig. 9c, fig. 9c is a schematic interface diagram illustrating that the target function is called in the application program operated by the user in the embodiment of the present invention.
Step 306: and loading the pre-associated target function to form a response result of the target function to the content.
In one embodiment, when the type of content is determined to be an image, the corresponding pre-associated target function may be a day-P map; when the type of content is determined to be video, the corresponding pre-associated target function may be aesthetic.
Step 307: and ending the processing flow.
By applying the embodiment of the invention, the user determines the application scene type corresponding to the message by copying the WeChat message, and further determines the target function based on the application scene type, wherein the target functions can be multiple, so that more function choices are provided for the user, the user can conveniently and directly call other functions in an operation interface, and the user experience is greatly improved.
An operation processing apparatus is further provided in an embodiment of the present invention, fig. 10 is a schematic diagram illustrating a composition structure of the operation processing apparatus provided in the embodiment of the present invention, and referring to fig. 10, an operation processing apparatus 200 provided in the embodiment of the present invention includes:
an obtaining unit 21, configured to monitor a data transfer service of an operating system in an application program, and obtain a content selected for operation in an operation process of the operating system;
a determining unit 22, configured to perform analysis based on the content selected for operation, and determine a target function in the operating system that is adapted to the content;
a calling unit 23, configured to call a target function and transmit content to the target function;
and a response unit 24, configured to form a response result of the target function for the content based on the content transmitted to the target function.
In an embodiment, the obtaining unit 21 is further configured to register a listener service with the data relay service in the process of the application;
when the data relay service receives the content selected for operation in each application program of the operating system and stores the content in the memory space corresponding to the data relay service,
the content change of the memory space monitored by the listener service is obtained, and the content of the selected operation in each application program is obtained.
In an embodiment, the determining unit 22 is further configured to extract keywords from the content selected for operation;
matching the extracted keywords with the names and/or purposes of the functions of the operating system, and selecting a preset number of functions according to the descending order of the matching degree;
the matching includes at least one dimension of: character dimension matching and semantic dimension matching.
In an embodiment, the determining unit 22 is further configured to construct a training sample with the keywords of the history content of the selection operation and the corresponding application scenario category, train the machine learning model;
extracting keywords from the selected operation content, inputting the extracted keywords into a machine learning model, and predicting application scene categories corresponding to the keywords;
and selecting functions in the operating system which are in accordance with the application scene category.
In an embodiment, the determining unit 22 is further configured to identify a type of the selected operation content, and determine the pre-associated function as the target function when the identified type has the pre-associated function.
In an embodiment, the invoking unit 23 is further configured to send a notification of the target function to a foreground application that obtains the selection operation when the application is in a background running state;
and when the target function is triggered in the foreground application program, executing the loading of the corresponding target function in the foreground application program.
In one embodiment, the invoking unit 23 is further configured to, when the application is in a foreground running state, and a selection operation is obtained in the application,
when the target function is triggered in the application program, the loading of the corresponding target function in the application program is executed.
In one embodiment, the calling unit 23 is further configured to, when the application program has a web page program for implementing the target function and the operating system has other application programs with adapted content,
and calling a webpage program for realizing the target function in the application program.
In one embodiment, the target function of adapting the content includes a plurality;
the calling unit 23 is further configured to load the notification of the target function in the application program corresponding to the selected operation, and execute the loading of the selected target function.
An embodiment of the present invention further provides an operation processing apparatus, including:
a memory for storing an executable program;
a processor for implementing, by executing the executable program stored in the memory:
monitoring a data transfer service of an operating system in an application program to obtain the content of the selected operation in the operating process of the operating system;
analyzing based on the selected operation content, and determining a target function of the adaptive content in the operating system;
calling a target function and transmitting content to the target function;
and forming a response result of the target function for the content based on the content transmitted to the target function.
A processor further configured to implement, by executing the executable program stored in the memory:
registering a listener service to a data relay service in a process of an application;
when the data relay service receives the content selected for operation in each application program of the operating system and stores the content in the memory space corresponding to the data relay service,
the content change of the memory space monitored by the listener service is obtained, and the content of the selected operation in each application program is obtained.
A processor further configured to implement, by executing the executable program stored in the memory:
extracting keywords from the content selected for operation;
matching the extracted keywords with the names and/or purposes of the functions of the operating system, and selecting a preset number of functions according to the descending order of the matching degree;
the matching includes at least one dimension of: character dimension matching and semantic dimension matching.
A processor further configured to implement, by executing the executable program stored in the memory:
constructing a training sample by using the keywords of the selected historical content and the corresponding application scene category, and training a machine learning model;
extracting keywords from the selected operation content, inputting the extracted keywords into a machine learning model, and predicting application scene categories corresponding to the keywords;
and selecting functions in the operating system which are in accordance with the application scene category.
A processor further configured to implement, by executing the executable program stored in the memory:
and identifying the type of the selected operation content, and determining the pre-associated function as the target function when the identified type has the pre-associated function.
A processor further configured to implement, by executing the executable program stored in the memory:
when the application program is in a background running state, sending a notice of a target function to a foreground application program which obtains the selection operation;
and when the target function is triggered in the foreground application program, executing the loading of the corresponding target function in the foreground application program.
A processor further configured to implement, by executing the executable program stored in the memory:
when the application program is in the foreground running state and the selection operation is obtained in the application program,
when the target function is triggered in the application program, the loading of the corresponding target function in the application program is executed.
A processor further configured to implement, by executing the executable program stored in the memory:
when there is a web page program in the application program that implements the target function and there is another application program in the operating system that has adapted content,
and calling a webpage program for realizing the target function in the application program.
When the target function of adapting the content includes a plurality of functions, the processor is further configured to implement, by executing the executable program stored in the memory:
loading a notification of the target function in the application corresponding to the selected operation, and,
the loading of the selected target function is performed.
The embodiment of the invention also provides a readable storage medium, wherein the readable storage medium stores an executable program;
an executable program for, when executed by a processor, implementing:
monitoring a data transfer service of an operating system in an application program to obtain the content of the selected operation in the operating process of the operating system;
analyzing based on the selected operation content, and determining a target function of the adaptive content in the operating system;
calling a target function and transmitting content to the target function;
and forming a response result of the target function for the content based on the content transmitted to the target function.
An executable program further for, when executed by a processor, implementing:
registering a listener service to a data relay service in a process of an application;
when the data relay service receives the content selected for operation in each application program of the operating system and stores the content in the memory space corresponding to the data relay service,
the content change of the memory space monitored by the listener service is obtained, and the content of the selected operation in each application program is obtained.
An executable program further for, when executed by a processor, implementing:
extracting keywords from the content selected for operation;
matching the extracted keywords with the names and/or purposes of the functions of the operating system, and selecting a preset number of functions according to the descending order of the matching degree;
the matching includes at least one dimension of: character dimension matching and semantic dimension matching.
An executable program further for, when executed by a processor, implementing:
constructing a training sample by using the keywords of the selected historical content and the corresponding application scene category, and training a machine learning model;
extracting keywords from the selected operation content, inputting the extracted keywords into a machine learning model, and predicting application scene categories corresponding to the keywords;
and selecting functions in the operating system which are in accordance with the application scene category.
An executable program further for, when executed by a processor, implementing:
and identifying the type of the selected operation content, and determining the pre-associated function as the target function when the identified type has the pre-associated function.
An executable program further for, when executed by a processor, implementing:
when the application program is in a background running state, sending a notice of a target function to a foreground application program which obtains the selection operation;
and when the target function is triggered in the foreground application program, executing the loading of the corresponding target function in the foreground application program.
An executable program further for, when executed by a processor, implementing:
when the application program is in the foreground running state and the selection operation is obtained in the application program,
when the target function is triggered in the application program, the loading of the corresponding target function in the application program is executed.
An executable program further for, when executed by a processor, implementing:
when there is a web page program in the application program that implements the target function and there is another application program in the operating system that has adapted content,
and calling a webpage program for realizing the target function in the application program.
When the target function of adapting the content includes a plurality, the executable program is further for implementing, when executed by the processor:
loading a notification of the target function in the application corresponding to the selected operation, and,
the loading of the selected target function is performed.
Fig. 11 shows an alternative configuration diagram of an operation processing device provided in an embodiment of the present invention, where the operation processing device may be located in a terminal, and as shown in fig. 11, an operation processing device 800 provided in an embodiment of the present invention includes one or more of the following components:
processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communications component 816.
The processing component 802 generally controls the overall operation of the operation processing device 800, such as operations associated with display, telephone calls, data communications, camera shooting, and information recording, and the like. The processing component 802 may include one or more processors 820 to execute computer programs to perform all or part 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 processing component 802 and the multimedia component 808.
The memory 804 may be implemented by any type of volatile or non-volatile storage device, or combination thereof. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 804 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 804 is used to store various types of data to support the operation of the operation processing device 800. Examples of such data include: any computer program for operating on the operation processing device 800, such as an operating system and an application program; contact data; telephone book data; a message; a picture; video, etc. The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application programs may include various application programs such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. The program for implementing the method of the embodiment of the present invention may be included in the application program.
The power components 806 provide power for operating the various components of the processing device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for operating the processing device 800.
The multimedia component 808 includes a screen provided as an output interface between the operation processing device 800 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 by a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor can not only sense the boundary of the touch or slide operation but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 may include a front facing camera and/or a rear facing camera. When the operation processing device 800 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 or rear camera may be a fixed optical lens system, or have a focal length and optical zoom capability.
The audio component 810 is used to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) for receiving external audio signals when the processing device 800 is in an operating mode, such as a call mode, a recording mode, or 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, the audio component 810 may also include a speaker for outputting audio signals.
The I/O interface 812 provides an interface for information interaction between the processing component 802 and peripheral interface modules, such as a keyboard, mouse, trackball, click wheel, keys, buttons, and the like. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the operation processing device 800. For example, the sensor component 814 may detect the on/off status of the operating processing device 800, the relative positioning of components, such as the display and keypad of the operating processing device 800; the sensor assembly 814 may also detect a change in position of the operation processing device 800 or a component of the operation processing device 800, the presence or absence of user contact with the operation processing device 800, orientation or acceleration/deceleration of the operation processing device 800, and a change in temperature of the operation processing device 800. The sensor assembly 814 may include a proximity sensor for detecting the presence of a nearby object in the absence of any physical contact. The sensor assembly 814 may also include a photosensor, such as a Metal-Oxide-Semiconductor (CMOS) image sensor or a Charge Coupled Device (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, a temperature sensor, or the like.
The communication component 816 is used to operate the processing apparatus 800 in wired or wireless communication with other devices. The operation processing device 800 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, the Communication component 816 further includes a Near Field Communication (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, or other technologies.
The method disclosed in the above embodiments of the present invention may be applied to the processor 820 or implemented by the processor 820. Processor 820 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 820. The Processor 820 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. Processor 820 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium that is located in the memory 804 and the processor 820 reads the information in the memory 804 and performs the steps of the aforementioned methods in conjunction with its hardware.
In an exemplary embodiment, the operation processing Device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
Here, it should be noted that: the above description related to the operation processing device is similar to the above description of the method, and the description of the beneficial effects of the method is omitted for brevity. For technical details not disclosed in the embodiments of the apparatus of the present invention, reference is made to the description of the embodiments of the method of the present invention.
Those skilled in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or other various media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (12)

1. An operation processing method, comprising:
monitoring a data transfer service of an operating system, and acquiring the content of the selected operation in the operating process of the operating system;
identifying the type of the content selected for operation, and determining that the pre-associated function is a target function when the type has the pre-associated function;
when the type does not have the pre-associated function, extracting keywords from the selected and operated content, matching the keywords with the names and/or purposes of the functions of the operating system, and selecting a preset number of functions according to the matching degree to serve as the target functions matched with the content;
wherein the type of the target function comprises one of:
the method comprises the steps that an extended function realized by a webpage program, a native function of the application program and a function realized by other application programs independent of the application program in an operating system are set in the application program;
notifying the target function to a user on a page of an application program where the selection operation is executed;
when a user selects a target function, calling the target function realized by an application program or a webpage program in the operating system on a page of the application program where the selection operation is executed, and automatically transmitting the content to the target function;
and forming a response result of the target function to the content by running an application program or a webpage program corresponding to the target function based on the content transmitted to the target function.
2. The method of claim 1, wherein the monitoring a data transit service of an operating system to obtain the content of the selected operation in the operating process of the operating system comprises:
registering a listener service to the data relay service in the process of an application program;
when the data transfer service receives the content selected for operation in the application program and stores the content in the memory space corresponding to the data transfer service,
and monitoring the content change of the memory space based on the listener service to obtain the content of the selected operation in the application program.
3. The method of claim 1, wherein the method further comprises:
extracting keywords from the selected operated content;
matching the extracted keywords with each function of the operating system, and determining the function meeting the preset matching condition;
wherein the matching includes at least one of the following dimensions: matching character dimensions; matching semantic dimensions; matching of application scenario categories.
4. The method of claim 1, wherein said invoking said target function implemented by an application program or a netpage program in said operating system comprises:
according to the state of the application program for monitoring the data transfer service of the operating system, a notice for realizing the target function in the foreground application program for selecting operation is obtained;
and executing the loading of the corresponding target function in the process of the foreground application program in response to the target function in the foreground application program being triggered.
5. The method of claim 4, wherein said performing loading of the respective target function in the application program comprises:
when the application programs for monitoring the data transit service of the operating system have the webpage program for realizing the target function and the operating system has other application programs adapted to the content,
and calling the webpage program for realizing the target function in the application program.
6. An operation processing apparatus characterized by comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for monitoring the data transfer service of an operating system and acquiring the content of selected operation in the operating process of the operating system;
a determining unit, configured to identify a type of the content selected for operation, and when the type has a pre-associated function, determine that the pre-associated function is a target function; when the type does not have the pre-associated function, extracting keywords from the selected and operated content, matching the keywords with the names and/or purposes of the functions of the operating system, and selecting a preset number of functions as the target functions matched with the content according to the descending order of the matching degree; wherein the type of the target function comprises one of: the method comprises the steps that an extended function realized by a webpage program, a native function of the application program and a function realized by other application programs independent of the application program in an operating system are set in the application program;
the calling unit is used for notifying the target function to the user on the page of the application program where the selection operation is executed; when a user selects a target function, calling the target function realized by an application program or a webpage program in the operating system on a page of the application program where the selection operation is executed, and automatically transmitting the content to the target function;
and the response unit is used for forming a response result of the target function aiming at the content by running an application program or a webpage program corresponding to the target function based on the content transmitted to the target function.
7. The apparatus of claim 6,
the acquiring unit is further configured to register a listener service with the data relay service in a process of an application;
when the data transfer service receives the content selected for operation in the application program of the operating system and stores the content in the memory space corresponding to the data transfer service,
and monitoring the content change of the memory space based on the listener service to obtain the content of the selected operation in each application program.
8. The apparatus of claim 6,
the determining unit is further used for extracting keywords from the selected and operated contents;
matching the extracted keywords with each function of the operating system, and determining the function meeting the preset matching condition;
wherein the matching includes at least one of the following dimensions: matching character dimensions; matching semantic dimensions; matching of application scenario categories.
9. The apparatus of claim 6,
the calling unit is further configured to, according to the state of the application program monitoring the data transfer service of the operating system, obtain a notification that the target function is implemented in the foreground application program that is selectively operated;
and executing the loading of the corresponding target function in the process of the foreground application program in response to the target function in the foreground application program being triggered.
10. The apparatus of claim 9,
the calling unit is further configured to, when the application program for monitoring the data relay service of the operating system has a web page program for implementing the target function and the operating system has another application program adapted to the content,
and calling the webpage program for realizing the target function in the application program.
11. An operation processing apparatus characterized by comprising:
a memory for storing an executable program;
a processor for implementing the operation processing method of any one of claims 1 to 5 by executing the executable program stored in the memory.
12. A readable storage medium characterized by storing an executable program which, when executed by a processor, implements the operation processing method of any one of claims 1 to 5.
CN201710618711.9A 2017-07-26 2017-07-26 Operation processing method and device and storage medium Active CN109308240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710618711.9A CN109308240B (en) 2017-07-26 2017-07-26 Operation processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710618711.9A CN109308240B (en) 2017-07-26 2017-07-26 Operation processing method and device and storage medium

Publications (2)

Publication Number Publication Date
CN109308240A CN109308240A (en) 2019-02-05
CN109308240B true CN109308240B (en) 2022-03-11

Family

ID=65202029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710618711.9A Active CN109308240B (en) 2017-07-26 2017-07-26 Operation processing method and device and storage medium

Country Status (1)

Country Link
CN (1) CN109308240B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069675A (en) * 2019-04-16 2019-07-30 百度在线网络技术(北京)有限公司 A kind of search method and mobile terminal
CN112835632B (en) * 2019-11-06 2022-05-27 上海连尚网络科技有限公司 Method and equipment for calling end capability and computer storage medium
CN111400482B (en) * 2020-06-05 2020-09-01 支付宝(杭州)信息技术有限公司 Method and device for establishing question-answer pairs
CN113190155A (en) * 2021-04-29 2021-07-30 上海掌门科技有限公司 Information processing method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1898310A3 (en) * 2006-09-05 2009-06-24 Hitachi, Ltd. Method of improving efficiency of replication monitoring
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN106528603A (en) * 2016-09-23 2017-03-22 维沃移动通信有限公司 Application program searching method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1898310A3 (en) * 2006-09-05 2009-06-24 Hitachi, Ltd. Method of improving efficiency of replication monitoring
CN104899269A (en) * 2015-05-26 2015-09-09 北京金山安全软件有限公司 Method and device for accessing website link
CN106528603A (en) * 2016-09-23 2017-03-22 维沃移动通信有限公司 Application program searching method and mobile terminal

Also Published As

Publication number Publication date
CN109308240A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US10372469B2 (en) Method and device for displaying information
CN109308240B (en) Operation processing method and device and storage medium
CN108279828A (en) A kind of method, apparatus and terminal starting application program
US10791187B2 (en) Information displaying method and apparatus, and storage medium
CN105528403B (en) Target data identification method and device
CN107784034B (en) Page type identification method and device for page type identification
CN107784045B (en) Quick reply method and device for quick reply
KR102211396B1 (en) Contents sharing service system, apparatus for contents sharing and contents sharing service providing method thereof
CN108460651A (en) Vehicle recommends method and device
CN111160047A (en) Data processing method and device and data processing device
CN104572848B (en) Searching method based on browser and device
CN114827068A (en) Message sending method and device, electronic equipment and readable storage medium
CN112000266B (en) Page display method and device, electronic equipment and storage medium
CN110213062B (en) Method and device for processing message
CN111597431A (en) Recommendation method and device and electronic equipment
CN111831132A (en) Information recommendation method and device and electronic equipment
CN113343028B (en) Method and device for training intention determination model
CN107301188B (en) Method for acquiring user interest and electronic equipment
CN111353422B (en) Information extraction method and device and electronic equipment
CN113807540A (en) Data processing method and device
CN110020153B (en) Searching method and device
CN104991901A (en) Method and apparatus for accessing webpage
CN110929122A (en) Data processing method and device and data processing device
CN110851624A (en) Information query method and related device
CN112465555B (en) Advertisement information recommending method and related device

Legal Events

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

Effective date of registration: 20221117

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 518000 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 Floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.