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 hold-up interception method, the method achieves by the display of monitoring window creation event interception window, avoids and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and save the process resource of terminal device.
Second object of the application is to propose a kind of window 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 hold-up interception method, comprising: when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event; Mate described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle window that described window creation event created the foreground interface display at described terminal device.
The window hold-up interception method of the embodiment of the present application, first when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event; Then mate described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle window that described window creation event created the foreground interface display at described terminal device.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and saved the process resource of terminal device.
Window hold-up interception method as above, the window that the described window creation event of described interception has created, in the foreground interface display of described terminal device, comprising:
The show process of the window created described in termination.
Window hold-up interception method as above, the window that the described window creation event of described interception has created, in the foreground interface display of described terminal device, comprising:
Run the interrupt function in the window show process created described in being preset in;
By running described interrupt function, described in prevention, create the foreground interface display of window at described terminal device.
Window hold-up interception method as above, the window that the described window creation event of described interception has created, in the foreground interface display of described terminal device, comprising:
Run the display parameter revised in the described window show process created in advance;
By running the display parameter of described amendment, creating window described in making in the display of the backstage of described terminal device, having avoided in described foreground interface display.
Window hold-up interception method as above, also comprises:
When user clicks when the window border of described foreground interface display, obtain the window events of carrying window ID and detect instruction;
Obtain the window handle information corresponding with described window ID;
Described window handle information is stored in described intercept information storehouse as interception feature samples.
Window hold-up interception method as above, also comprises:
Receive the window handle information that user is arranged;
Described window handle information is stored in described intercept information storehouse as interception feature samples.
Window hold-up interception method as above, described window handle 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 blocking apparatus, comprising: acquisition module, for when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event; Processing module, for mating described window handle information according to the interception feature samples in the intercept information storehouse set up in advance; Blocking module, if for the match is successful, then tackles window that described window creation event created the foreground interface display at described terminal device.
The window blocking apparatus of the embodiment of the present application, when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event by acquisition module; Described window handle information is mated according to the interception feature samples in the intercept information storehouse set up in advance by processing module; If the match is successful, then tackle window that described window creation event created the foreground interface display at described terminal device by blocking module.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and saved the process resource of terminal device.
Window blocking apparatus as above, described blocking module, specifically for:
The show process of the window created described in termination.
Window blocking apparatus as above, described blocking module, specifically for:
Run the interrupt function in the window show process created described in being preset in;
By running described interrupt function, described in prevention, create the foreground interface display of window at described terminal device.
Window blocking apparatus as above, described blocking module, specifically for:
Run the display parameter revised in the described window show process created in advance;
By running the display parameter of described amendment, creating window described in making in the display of the backstage of described terminal device, having avoided in described foreground interface display.
Window blocking apparatus as above, also comprises:
Receiver module, for clicking when the window border of described foreground interface display as user, obtaining the window events of carrying window ID and detecting instruction;
Described acquisition module, also for obtaining the window handle information corresponding with described window ID;
Described processing module, also for described window handle information being stored in described intercept information storehouse as interception feature samples.
Window blocking apparatus as above, also comprises:
Module is set, for receiving the window handle information that user is arranged;
Described processing module, also for described window handle information being stored in described intercept information storehouse as interception feature samples.
Window blocking apparatus as above, described window handle 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 window blocking apparatus as above.
The terminal device of the embodiment of the present application, by window blocking apparatus when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event; Then mate described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle window that described window creation event created the foreground interface display at described terminal device.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and saved the process resource of terminal device.
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 the window hold-up interception method of the embodiment of the present application, device and terminal device are described.
Fig. 1 is the process flow diagram of the window hold-up interception method of the application's embodiment.
As shown in Figure 1, this window hold-up interception method comprises:
Step 101, when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event.
Particularly, the window hold-up interception method that the embodiment of the present invention provides is configured in the terminal device can supporting to apply installation and operation, and wherein, the kind of terminal device is a lot, such as: mobile phone, computing machine, and Portable palm computer.Application on terminal device can be the application program that operating system carries, and also can be the application program that user installs as required.
In order to avoid the window message that user's passive reception manufacturer is built-in in the application, therefore, in the process used, whether starting-window creates event to the application program that monitoring terminal equipment is installed.Wherein, the application of monitoring can be whole application, also can be the application that user pre-sets.
When monitoring the window creation event of application program of installing terminal equipment, obtain the window handle information of this window creation event.It should be noted that, the content of window handle information is a lot, specifically comprises: window title, window type, window height, window width, window process.
Step 102, mates described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackles window that described window creation event created the foreground interface display at described terminal device.
According to the interception feature samples match window handle information in the intercept information storehouse set up in advance.Wherein, intercept information storehouse comprises: for identifying the interception feature samples of the 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 handle information needing interception, and wherein, window handle 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, to carry out intercept process according to this interception feature samples this type of window events to follow-up establishment as interception feature samples according to the window handle information that user is arranged.
The second, model training mode;
Use in the process of application program user, push window message by application program to user, inquiring user daily record, obtain user to the operation note of window message.The window message of predetermined threshold value is reached for user's closedown amount, extract the window handle information of such window message, window handle information can comprise: one or several Feature Combinations in window title, window type, window height, window width, window process.Thus extracted window handle information is stored in intercept information storehouse, to carry out intercept process according to this interception feature samples this type of window events to follow-up establishment as interception feature samples.
If judge to know that extracted window handle information belongs to interception feature samples, then the match is successful, thus intercept window creates the foreground interface display of the window that created of event at described terminal device.。Concrete interception mode is a lot, can need to select according to practical application, be described as follows:
Mode one,
The show process of the window created described in termination.
Mode two,
Run the interrupt function in the window show process created described in being preset in;
By running described interrupt function, described in prevention, create the foreground interface display of window at described terminal device.
Mode three,
Run the display parameter revised in the described window show process created in advance;
By running the display parameter of described amendment, creating window described in making in the display of the backstage of described terminal device, having avoided in described foreground interface display.
The window hold-up interception method of the embodiment of the present application, first when monitoring the window creation event of terminal device application, obtains the window handle information of described window creation event; Then mate described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle the foreground interface display of described window at described terminal device.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and saved the process resource of terminal device.
Fig. 2 is the process flow diagram of the window hold-up interception method of another embodiment of the application.
As shown in Figure 2, comprise the following steps:
Step 201, when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event.
When monitoring the window creation event of application program of installing terminal equipment, obtain the window handle information of this window creation event.It should be noted that, the content of window handle information is a lot, specifically comprises: window title, window type, window height, window width, window process.
Step 202, mates described window handle 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, the window that described window creation event has created is shown to user.
According to the interception feature samples match window handle information in the intercept information storehouse set up in advance.Wherein, intercept information storehouse comprises: for identifying the interception feature samples of the window message that needs are tackled, and the source of interception feature samples is a lot, and the step 102 in concrete embodiment shown in Figure 1, repeats no more herein.
If judge to know that extracted window handle information does not belong to interception feature samples, then it fails to match, and be shown to user by the window that window creation event has created by this application program.
Step 203, when user clicks when the window border of described foreground interface display, obtains the window events of carrying window ID and detects instruction.
Step 204, obtains the window handle information corresponding with described window ID.
Step 205, is stored in described window handle information in described intercept information storehouse as interception feature samples.
Particularly, if user is in the process using this application program, do not wish to show current window message again, then click the window border in described foreground interface display, thus backstage obtains the window events detection instruction of carrying window ID, to detect this window current, obtain the window handle information corresponding with this window ID.And the window handle information of acquisition is stored in described intercept information storehouse, to carry out intercept process according to this interception feature samples to the event of this type of window of follow-up establishment as interception feature samples.
Wherein, the content of window handle 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.
The window hold-up interception method of the embodiment of the present application, first when monitoring the window creation event of application program of installing terminal equipment, obtain the window handle information of window creation event, described window handle information is mated according to the interception feature samples in the intercept information storehouse set up in advance, if it fails to match, then the window that window creation event has created is shown on foreground, when user clicks when the window border of described foreground interface display, obtain the window events of carrying window ID and detect instruction, obtain the window handle information corresponding with described window ID, and described window handle information is stored in described intercept information storehouse as interception feature samples.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, 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 blocking apparatus.
Fig. 3 is the structural representation of the window blocking apparatus of the application's embodiment.
As shown in Figure 3, this window blocking apparatus comprises:
Acquisition module 11, for when monitoring the window creation event of application program of installing terminal equipment, obtains the window handle information of described window creation event;
Processing module 12, for mating described window handle information according to the interception feature samples in the intercept information storehouse set up in advance;
Blocking module 13, if for the match is successful, then tackles window that described window creation event created the foreground interface display at described terminal device.
In one embodiment, described blocking module 13, specifically for:
The show process of the window created described in termination.
In another embodiment, described blocking module 13, specifically for:
Run the interrupt function in the window show process created described in being preset in;
By running described interrupt function, described in prevention, create the foreground interface display of window at described terminal device.
In another embodiment, described blocking module 13, specifically for:
Run the display parameter revised in the described window show process created in advance;
By running the display parameter of described amendment, creating window described in making in the display of the backstage of described terminal device, having avoided in described foreground interface display.
It should be noted that, the aforementioned explanation to window hold-up interception method embodiment illustrates the window blocking apparatus being also applicable to this embodiment, repeats no more herein.
The window blocking apparatus of the embodiment of the present application, first when monitoring the window creation event of terminal device application, obtains the window handle information of described window creation event; Then mate described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle the foreground interface display of described window at described terminal device.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and saved the process resource of terminal device.
Fig. 4 is the structural representation of the window blocking apparatus of another embodiment of the application, as shown in Figure 4, based on embodiment illustrated in fig. 3, also comprises:
Receiver module 14, for clicking when the window border of described foreground interface display as user, obtaining the window events of carrying window ID and detecting instruction;
Described acquisition module 11, also for obtaining the window handle information corresponding with described window ID;
Described processing module 12, also for described window handle information being stored in described intercept information storehouse as interception feature samples.
Further, in another embodiment, also comprise:
Module 15 is set, for receiving the window handle information that user is arranged;
Described processing module 12, also for described window handle information being stored in described intercept information storehouse as interception feature samples.
It should be noted that, the aforementioned explanation to window hold-up interception method embodiment illustrates the window blocking apparatus being also applicable to this embodiment, repeats no more herein.
The window blocking apparatus of the embodiment of the present application, first when monitoring the window creation event of application program of installing terminal equipment, obtain the window handle information of window creation event, described window handle information is mated according to the interception feature samples in the intercept information storehouse set up in advance, if it fails to match, then the window that window creation event has created is shown on foreground, when user clicks when the window border of described foreground interface display, obtain the window events of carrying window ID and detect instruction, obtain the window handle information corresponding with described window ID, and described window handle information is stored in described intercept information storehouse as interception feature samples.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, 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.
This terminal device comprises: apparatus body, and window blocking apparatus, and wherein, window blocking apparatus can adopt the above-mentioned window blocking apparatus provided of the present invention.
It should be noted that, the aforementioned explanation to window hold-up interception method embodiment illustrates the terminal device being also applicable to this embodiment, repeats no more herein.
The terminal device of the embodiment of the present application, first when monitoring the window creation event of terminal device application, obtains the window handle information of described window creation event; Then mate described window handle information according to the interception feature samples in the intercept information storehouse set up in advance, if the match is successful, then tackle the foreground interface display of described window at described terminal device.Thus, achieve by the display of monitoring window creation event interception window, avoid and dodge screen phenomenon, improve effect and the Consumer's Experience of window interception, and saved the process resource of terminal device.
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.