Summary of the invention
The application is intended to solve one of technical matters in correlation technique at least to a certain extent.
For this reason, first object of the application is to propose a kind of window message hold-up interception method, the method achieves the precision that improve interceptor window message, can meet the dynamic need that user is multi-faceted, have certain dirigibility.
Second object of the application is to propose a kind of window message blocking apparatus.
3rd object of the application is to propose a kind of terminal device.
For reaching above-mentioned purpose, the application's first aspect embodiment proposes a kind of window message hold-up interception method, comprising: whether the application program on monitoring terminal equipment starts plays window propelling movement process; If monitor described bullet window to push process, then extract the window feature information of bullet window message to be pushed; Mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.
The window message hold-up interception method of the embodiment of the present application, whether the application program first on monitoring terminal equipment starts plays window propelling movement process, if monitor described bullet window to push process, then extracts the window feature information of bullet window message to be pushed; And then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, there is certain dirigibility.
Window message hold-up interception method as above, described interception described bullet window message, comprising:
Call default interrupt function;
Perform described interrupt function, stop described bullet window message in the foreground interface display of terminal device.
Window message hold-up interception method as above, described interception described bullet window message, comprising:
Call the background thread playing window message;
Perform described background thread, control described bullet window message and show on the backstage of terminal device.
Window message hold-up interception method as above, also comprises:
If it fails to match, then by described application program, described bullet window message is shown to user.
Window message hold-up interception method as above, described by described application program described bullet window message is shown to user after, also comprise:
Receive the window feature detection instruction that user sends;
The window feature information playing window message described in instruction fetch is detected according to described window feature;
Described window feature information is stored in described intercept information storehouse as interception feature samples.
Window message hold-up interception method as above, also comprises:
Receive the window feature information that user is arranged;
Described window feature information is stored in described intercept information storehouse as interception feature samples.
Window message hold-up interception method as above, described window feature information comprises:
One or several Feature Combinations in window title, window type, window height, window width, window process.
For reaching above-mentioned purpose, the application's second aspect embodiment proposes a kind of window message blocking apparatus, comprising: monitoring modular, and whether the application program on monitoring terminal equipment starts plays window propelling movement process; Extraction module, if push process for monitoring described bullet window, then extracts the window feature information of bullet window message to be pushed; Processing module, for mating described window feature information according to the interception feature samples in the intercept information storehouse set up in advance; Blocking module, if the match is successful for described processing module, then tackles described bullet window message.
Whether the window message blocking apparatus of the embodiment of the present application, started by the application program on monitoring module monitors terminal device and play window propelling movement process; If monitoring module monitors pushes process to described bullet window, then extracted the window feature information of bullet window message to be pushed by extraction module; Described window feature information is mated according to the interception feature samples in the intercept information storehouse set up in advance by processing module; If by processing module, the match is successful, then tackle described bullet window message by blocking module.
Window message blocking apparatus as above, described blocking module, comprising:
First call unit, for calling default interrupt function;
First performance element, for performing described interrupt function, stops described bullet window message in the foreground interface display of terminal device.
Window message blocking apparatus as above, described blocking module, comprising:
Second call unit, for calling the background thread playing window message;
Second performance element, for performing described background thread, controlling described bullet window message and showing on the backstage of terminal device.
Window message blocking apparatus as above, also comprises:
Display module, if it fails to match for described processing module, is then shown to user by described application program by described bullet window message.
Window message blocking apparatus as above, also comprises:
Receiver module, the window feature sent for receiving user detects instruction;
Described extraction module, also for detecting the window feature information playing window message described in instruction fetch according to described window feature;
Described processing module, also for described window feature information being stored in described intercept information storehouse as interception feature samples.
Window message blocking apparatus as above, also comprises:
Module is set, for receiving the window feature information that user is arranged;
Described processing module, also for described window feature information being stored in described intercept information storehouse as interception feature samples.
Window message blocking apparatus as above, described window feature information comprises:
One or several Feature Combinations in window title, window type, window height, window width, window process.
For reaching above-mentioned purpose, the application's third aspect embodiment proposes a kind of terminal device, comprising: apparatus body, and as above arbitrary described window message blocking apparatus.
Whether the terminal device of the embodiment of the present application, started by the application program on window message blocking apparatus monitoring terminal equipment and play window propelling movement process, if monitor described bullet window to push process, then extract the window feature information of bullet window message to be pushed; And then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, there is certain dirigibility.
Embodiment
Be described below in detail the embodiment of the application, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the application, and the restriction to the application can not be interpreted as.
Below with reference to the accompanying drawings window message hold-up interception method and the device of the embodiment of the present application are described.
Fig. 1 is the process flow diagram of the window message hold-up interception method of the application's embodiment.
As shown in Figure 1, this window message hold-up interception method comprises:
Step 101, whether the application program on monitoring terminal equipment starts plays window propelling movement process.
Particularly, whether the application program on monitoring terminal equipment starts plays window propelling movement process.Wherein, the kind of terminal device is a lot, can support application program install and operation equipment can, such as: mobile phone, computing machine, and Portable palm computer.Application program on terminal device can be the application program that operating system carries, and also can be the application program that user installs as required.
Application program provider passes through built-in bullet window message in the application, to use in the process of this application program user, according to the process pre-set, by built-in bullet window message push to user, namely on the interface, foreground of terminal device, is shown to user.In order to avoid user is in the process using application program, the bullet window message that passive reception is built-in, needs to tackle window message.
For reaching above-mentioned purpose, first, after terminal device starts, whether the application program on monitoring terminal equipment starts plays window propelling movement process.Specifically, if play window to push process initiation, application program can send the bullet window message to be pushed of carrying application program identification to processor.
Step 102, if monitor described bullet window to push process, then extracts the window feature information of bullet window message to be pushed.
When the bullet window message to be pushed of carrying application program identification that the processor receiving terminal device sends, then determine that monitoring the bullet window corresponding with this application program identification pushes process.Then, window feature detection is carried out to bullet window message to be pushed in this application program, extract the window feature information of bullet window message to be pushed.
It should be noted that, the type of window feature information is a lot, and can need to select according to practical application, the present embodiment is not restricted this.Such as can comprise: one or several Feature Combinations in window title, window type, window height, window width, window process.According to dissimilar window feature information, different feature detection modes can be adopted.Illustrate as follows:
When window feature information is window title, default semantic model can be adopted to analyze the window title of this bullet window message, extract the semantic key words in window title, using this semantic key words as the window title playing window message.
When window feature information is window type, default semantic model first can be adopted to analyze the window title of this bullet window message, extract the semantic key words in window title.Then default classification map table is inquired about again according to this semantic key words, wherein, classification map table comprises: one or more keyword that each window type is corresponding, such as: the keyword that prompting class window type is corresponding comprises: system update, wireless connections foundation, confirmation, agreement etc., the keyword that commercial paper window type is corresponding comprises: advertisement, like, propelling movement etc., thus obtain the bullet window message window type corresponding with this semantic key words according to the classification map table preset.
When window feature information is window height, window width and window process, window attribute information can be obtained, be defined in window attribute information according to the field preset and determine window height field, window width field and window process field, read the window height of the content aware bullet window message of each field, window width and window process respectively.
Step 103, mates described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackles described bullet window message.
The window feature information of window message is played according to the interception feature samples coupling in the intercept information storehouse set up in advance.Wherein, intercept information storehouse comprises: for identifying the interception feature samples of the bullet window message that needs are tackled, and the source of interception feature samples is a lot, specific as follows:
The first, user is set-up mode initiatively;
User needs according to the application of self to arrange the window feature information needing interception, and wherein, window feature information can comprise: one or several Feature Combinations in window title, window type, window height, window width, window process.Thus be stored in intercept information storehouse as interception feature samples according to the window feature information that user is arranged, to carry out intercept process according to this interception feature samples this type of bullet window message to follow-up propelling movement.
The second, model training mode;
Use in the process of application program user, push bullet window message by application program to user, inquiring user daily record, obtain user to the operation note playing window message.The bullet window message of predetermined threshold value is reached for user's closedown amount, extract the window feature information that such plays window message, window feature information can comprise: one or several Feature Combinations in window title, window type, window height, window width, window process.Thus extracted window feature information is stored in intercept information storehouse as interception feature samples, to carry out intercept process according to this interception feature samples this type of bullet window message to follow-up propelling movement.
If judge to know that extracted window feature information belongs to interception feature samples, then the match is successful, and determining needs the bullet window message treating propelling movement to carry out intercept process, stops and show to user.Concrete interception mode is a lot, can need to select according to practical application, be described as follows:
Mode one,
Call default interrupt function;
Perform this interrupt function, stop this bullet window message in the foreground interface display of terminal device.
Mode two,
Call the background thread playing window message;
Perform this background thread, control this bullet window message and show on the backstage of terminal device.
The window message hold-up interception method of the embodiment of the present application, whether the application program first on monitoring terminal equipment starts plays window propelling movement process, if monitor described bullet window to push process, then extracts the window feature information of bullet window message to be pushed; And then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, there is certain dirigibility.
Fig. 2 is the process flow diagram of the window message hold-up interception method of another embodiment of the application.
As shown in Figure 2, comprise the following steps:
Step 201, whether the application program on monitoring terminal equipment starts plays window propelling movement process.
First, after terminal device starts, whether the application program on monitoring terminal equipment starts plays window propelling movement process.Specifically, if play window to push process initiation, application program can send the bullet window message to be pushed of carrying application program identification to processor.
Step 202, if monitor described bullet window to push process, then extracts the window feature information of bullet window message to be pushed.
When the bullet window message to be pushed of carrying application program identification that the processor receiving terminal device sends, then determine that monitoring the bullet window corresponding with this application program identification pushes process.Then, window feature detection is carried out to bullet window message to be pushed in this application program, extract the window feature information of bullet window message to be pushed.
It should be noted that, the type of window feature information is a lot, and can need to select according to practical application, the present embodiment is not restricted this.Such as can comprise: one or several Feature Combinations in window title, window type, window height, window width, window process.According to dissimilar window feature information, different feature detection modes can be adopted, the step 102 in concrete testing process embodiment shown in Figure 1.
Step 203, mates described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if it fails to match, then by described application program, described bullet window message is shown to user.
The window feature information of window message is played according to the interception feature samples coupling in the intercept information storehouse set up in advance.Wherein, intercept information storehouse comprises: for identifying the interception feature samples of the bullet window message that needs are tackled, if judge to know that extracted window feature information does not belong to interception feature samples, then it fails to match, then will play window message push to user by this application program, be shown to user by this bullet window message on the foreground of terminal device.
Step 204, receives the window feature detection instruction that user sends.
Step 205, detects the window feature information playing window message described in instruction fetch according to described window feature.
Step 206, is stored in described window feature information in described intercept information storehouse as interception feature samples.
Particularly, if user is in the process using this application program, does not wish to show current bullet window message again, then send window feature detection instruction, to indicate, window feature detection is carried out to the bullet window message of current display.
When receiving the window feature detection instruction that user sends, window feature detection being carried out to the bullet window message of the user of being shown to current on interface, foreground, extracts the window feature information of this bullet window message.And the window feature information of extraction is stored in described intercept information storehouse as interception feature samples, to carry out intercept process according to this interception feature samples this type of bullet window message to follow-up propelling movement.
Wherein, the type of window feature information is a lot, and can need to select according to practical application, the present embodiment is not restricted this.Such as can comprise: one or several Feature Combinations in window title, window type, window height, window width, window process.According to dissimilar window feature information, can adopt different feature detection modes, the step 102 in concrete testing process embodiment shown in Figure 1, repeats no more herein.
The window message hold-up interception method of the embodiment of the present application, whether the application program first on monitoring terminal equipment starts plays window propelling movement process, if monitor described bullet window to push process, then extract the window feature information of bullet window message to be pushed, and then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if it fails to match, then by described application program, described bullet window message is shown to user, when receiving the window feature detection instruction that user sends, the window feature information playing window message described in instruction fetch is detected according to described window feature, and described window feature information is stored in described intercept information storehouse as interception feature samples.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, and according to user need in real time real-time update is carried out to intercept information storehouse, further increasing dirigibility.
In order to realize above-described embodiment, the application also proposes a kind of window message blocking apparatus.
Fig. 3 is the structural representation of the window message blocking apparatus of the application's embodiment.
As shown in Figure 3, this window message blocking apparatus comprises:
Monitoring modular 11, whether the application program on monitoring terminal equipment starts plays window propelling movement process;
Extraction module 12, if push process for monitoring described bullet window, then extracts the window feature information of bullet window message to be pushed;
Processing module 13, for mating described window feature information according to the interception feature samples in the intercept information storehouse set up in advance;
Blocking module 14, if the match is successful for described processing module, then tackles described bullet window message.
It should be noted that, the aforementioned explanation to window message hold-up interception method embodiment illustrates the window message blocking apparatus being also applicable to this embodiment, repeats no more herein.
The window message blocking apparatus of the embodiment of the present application, whether the application program first on monitoring terminal equipment starts plays window propelling movement process, if monitor described bullet window to push process, then extracts the window feature information of bullet window message to be pushed; And then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, there is certain dirigibility.
Fig. 4 is the structural representation of the window message blocking apparatus of another embodiment of the application, as shown in Figure 4, based on embodiment illustrated in fig. 3,
In one embodiment, described blocking module 14, comprising:
First call unit 141, for calling default interrupt function;
First performance element 142, for performing described interrupt function, stops described bullet window message in the foreground interface display of terminal device.
In another embodiment, described blocking module 14, comprising:
Second call unit 143, for calling the background thread playing window message;
Second performance element 144, for performing described background thread, controlling described bullet window message and showing on the backstage of terminal device.
In another embodiment, described device also comprises:
Module 15 is set, for receiving the window feature information that user is arranged;
Described processing module 13, also for described window feature information being stored in described intercept information storehouse as interception feature samples.
It should be noted that, the aforementioned explanation to window message hold-up interception method embodiment illustrates the window message blocking apparatus being also applicable to this embodiment, repeats no more herein.
The window message blocking apparatus of the embodiment of the present application, whether the application program first on monitoring terminal equipment starts plays window propelling movement process, if monitor described bullet window to push process, then extracts the window feature information of bullet window message to be pushed; And then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, there is certain dirigibility.
Fig. 5 is the structural representation of the window message blocking apparatus of the application's embodiment.
As shown in Figure 5, based on above-described embodiment, for Fig. 4, this window message blocking apparatus also comprises:
Display module 16, if it fails to match for described processing module, is then shown to user by described application program by described bullet window message.
Further, also comprise:
Receiver module 17, the window feature sent for receiving user detects instruction;
Described extraction module 12, also for detecting the window feature information playing window message described in instruction fetch according to described window feature;
Described processing module 13, also for described window feature information being stored in described intercept information storehouse as interception feature samples.
It should be noted that, the aforementioned explanation to window message hold-up interception method embodiment illustrates the window message blocking apparatus being also applicable to this embodiment, repeats no more herein.
The window message blocking apparatus of the embodiment of the present application, whether the application program first on monitoring terminal equipment starts plays window propelling movement process, if monitor described bullet window to push process, then extract the window feature information of bullet window message to be pushed, and then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if it fails to match, then by described application program, described bullet window message is shown to user, when receiving the window feature detection instruction that user sends, the window feature information playing window message described in instruction fetch is detected according to described window feature, and described window feature information is stored in described intercept information storehouse as interception feature samples.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, and according to user need in real time real-time update is carried out to intercept information storehouse, further increasing dirigibility.
In order to realize above-described embodiment, the application also proposes a kind of terminal device, and this terminal device comprises: apparatus body, and window message blocking apparatus, and wherein, window message blocking apparatus can adopt the above-mentioned window message blocking apparatus provided of the present invention.
It should be noted that, the aforementioned explanation to window message hold-up interception method embodiment illustrates the terminal device being also applicable to this embodiment, repeats no more herein.
Whether the terminal device of the embodiment of the present application, started by the application program on window message blocking apparatus monitoring terminal equipment and play window propelling movement process, if monitor described bullet window to push process, then extract the window feature information of bullet window message to be pushed; And then mate described window feature information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle described bullet window message.Thus, achieve the precision that improve interceptor window message, the dynamic need that user is multi-faceted can be met, there is certain dirigibility.
In the description of this instructions, at least one embodiment that specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained in the application or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In the description of the application, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred implementation of the application comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by the embodiment person of ordinary skill in the field of the application.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the application can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the application can be integrated in first processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and described the embodiment of the application above, be understandable that, above-described embodiment is exemplary, can not be interpreted as the restriction to the application, and those of ordinary skill in the art can change above-described embodiment, revises, replace and modification in the scope of the application.