A method, device, equipment and storage medium for identifying windows to be intercepted

By obtaining and matching the characteristic information of the terminal window and the interception window rule base, it can identify pop-up windows at random locations, solve the problem of low recognition accuracy in the existing technology, and achieve more efficient interception and better user experience.

CN112905890BActive Publication Date: 2024-10-11SANGFOR TECH INC
View PDF 13 Cites 0 Cited by

Patent Information

Application Number
CN202110239704.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-04
Publication Date
2024-10-11
Estimated Expiration
2041-03-04

AI Technical Summary

Technical Problem

Existing technologies have low accuracy when identifying and intercepting pop-up windows at random locations, which can easily lead to misjudgments and affect user experience.

Method used

By obtaining the window feature information under the current system of the terminal, using the window feature information and the interception window feature rule base to match, it is determined whether the window is a window to be intercepted, instead of simply relying on the window position, to improve the recognition accuracy.

Benefits of technology

It improves the recognition accuracy of windows to be intercepted, ensures timely interception, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112905890B_ABST
    Figure CN112905890B_ABST
Patent Text Reader

Abstract

The present application discloses a method for identifying windows to be intercepted, the method comprising the following steps: obtaining the window feature information of each window in the window set to be identified under the current system of the terminal; for each window in the window set to be identified, determining whether the current window is a window to be intercepted based on the window feature information of the current window and the interception window feature rule library; wherein the window feature information includes at least one of name information, style information, attribute information and process information. The application of the technical solution provided by the present application is not a simple identification based on the window position. For windows that pop up at random positions, as long as their window feature information is matched with the interception window feature rule library, it is possible to accurately determine whether they are windows to be intercepted, which facilitates the subsequent timely interception of windows to be intercepted and improves the user experience. The present application also discloses a device, equipment and storage medium for identifying windows to be intercepted, which have corresponding technical effects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a method, device, equipment and storage medium for identifying a window to be intercepted. Background Art

[0002] With the rapid development of computer technology and terminal technology, the application scope of terminals in daily life and work is becoming more and more extensive. Users can install various applications in the terminal to use the corresponding functions, but during the operation of the terminal, some applications will have pop-up operations, which will cause troubles to the normal use of the terminal by users. This requires the identification of pop-up windows and waiting for interception windows during the operation of the terminal, and timely interception measures.

[0003] Currently, the identification of windows to be intercepted is mostly based on the window position, that is, when a window appears at a certain set position, it will be identified as a window to be intercepted.

[0004] This method cannot handle windows that pop up at random locations, and cannot accurately identify windows that are not at the set location. Moreover, it is easy to misjudge normal windows at the set location, and the recognition accuracy is low. If the window to be intercepted cannot be accurately identified, the user experience will be affected due to untimely interception. Summary of the invention

[0005] The purpose of this application is to provide a method, device, equipment and storage medium for identifying windows to be intercepted, so as to improve the accuracy of identifying windows to be intercepted, facilitate the subsequent timely interception of windows to be intercepted, and improve the user experience.

[0006] In order to solve the above technical problems, this application provides the following technical solutions:

[0007] A method for identifying a window to be intercepted, comprising:

[0008] Obtain the window feature information of each window in the window set to be identified under the current terminal system;

[0009] For each window in the to-be-identified window set, determining whether the current window is a to-be-intercepted window based on the window feature information of the current window and an interception window feature rule base;

[0010] The window characteristic information includes at least one of name information, style information, attribute information and process information.

[0011] In a specific implementation of the present application, the to-be-identified window set is determined by the following steps:

[0012] Obtain identification information of each window in a full set of windows in the current system of the terminal, wherein the full set of windows includes all windows in the current system of the terminal;

[0013] Based on the identification information, determining whether each window in the entire window set satisfies a filtering condition;

[0014] The windows satisfying the filtering condition are filtered in the entire window set to obtain the to-be-identified window set.

[0015] In a specific implementation of the present application, the filtering condition includes at least one of the following conditions:

[0016] The window attributes are invisible, belonging to the system window and the position is outside the setting range of the terminal.

[0017] In a specific implementation of the present application, before determining, for each window in the to-be-identified window set, whether the current window is a window to be intercepted based on the window feature information of the current window and the interception window feature rule base, the method further includes:

[0018] Based on the window feature information, determining whether each window in the to-be-identified window set matches a white window cached in a white window cache list;

[0019] Windows that match white windows cached in the white window cache list are filtered out from the to-be-identified window set.

[0020] In a specific implementation of the present application, it also includes:

[0021] For each window in the to-be-identified window set, if the current window matches a white window cached in the white window cache list, updating an active flag of the white window matching the current window in the white window cache list;

[0022] When a set list update trigger condition is met, based on the active flags of the white windows recorded in the white window cache list, the white windows in the white window cache list are eliminated, and the white window cache list is updated.

[0023] In a specific implementation of the present application, it also includes:

[0024] For each window in the updated to-be-identified window set, if it is determined that the current window is not a to-be-intercepted window, the window feature information of the current window is recorded in the white window cache list.

[0025] In a specific implementation of the present application, the window feature information includes at least style information, and the determining whether the current window is a window to be intercepted based on the window feature information of the current window and the interception window feature rule base includes:

[0026] Determining a window style of the current window based on style information included in the window feature information of the current window;

[0027] Extracting rule information corresponding to the window style from the interception window feature rule library;

[0028] According to the window feature information of the current window and the extracted rule information, it is determined whether the current window is a window to be intercepted.

[0029] In a specific implementation of the present application, it also includes:

[0030] If it is determined that the current window is a window to be intercepted, an interception process is performed on the current window.

[0031] In a specific implementation of the present application, the interception process includes any one of closing the window, hiding the window, moving the window out of the visible screen range of the terminal, and closing the process corresponding to the window.

[0032] A device for identifying a window to be intercepted, comprising:

[0033] The window feature information acquisition module is used to acquire the window feature information of each window in the window set to be identified under the current system of the terminal;

[0034] A to-be-intercepted window determination module, for determining, for each window in the to-be-identified window set, whether the current window is a to-be-intercepted window based on the window feature information of the current window and an interception window feature rule base;

[0035] The window characteristic information includes at least one of name information, style information, attribute information and process information.

[0036] A device for identifying a window to be intercepted, comprising:

[0037] Memory for storing computer programs;

[0038] A processor is used to implement the steps of any of the above-mentioned methods for identifying windows to be intercepted when executing the computer program.

[0039] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above-mentioned methods for identifying windows to be intercepted are implemented.

[0040] By applying the technical solution provided in the embodiment of the present application, after obtaining the window feature information of each window in the window set to be identified under the current system of the terminal, for each window in the window set to be identified, based on the window feature information of the current window and the interception window feature rule library, determine whether the current window is a window to be intercepted, and the window feature information includes at least one of name information, style information, attribute information and process information. The window to be intercepted is identified based on the matching of the window feature information and the interception window feature rule library, rather than simply identifying based on the window position. For a window that pops up at a random position, as long as its window feature information is matched with the interception window feature rule library, it can be accurately determined whether it is a window to be intercepted, thereby improving the recognition accuracy of the window to be intercepted, facilitating the subsequent timely interception of the window to be intercepted, and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0042] Figure 1 This is a flowchart of a method for identifying a window to be intercepted in an embodiment of the present application;

[0043] Figure 2 This is a schematic diagram of the structure of a device for identifying a window to be intercepted in an embodiment of the present application;

[0044] Figure 3 It is a structural diagram of a device for identifying windows to be intercepted in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The core of the present application is to provide a method for identifying windows to be intercepted, which can be applied to a terminal to identify windows to be intercepted through the terminal, and specifically can be identified through interception software installed in the terminal.

[0046] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0047] See also Figure 1FIG. 1 is a flowchart of a method for identifying a window to be intercepted provided by an embodiment of the present application. The method may include the following steps:

[0048] S110: Obtaining window feature information of each window in the to-be-identified window set in the current system of the terminal.

[0049] In an embodiment of the present application, a set of windows to be identified in the current system of the terminal may be predetermined. For example, all windows in the current system may be determined as windows to be identified to form a set of windows to be identified. Alternatively, some windows may be screened out from all windows in the current system according to certain rules and determined as windows to be identified to form a set of windows to be identified. The set of windows to be identified includes one or more windows.

[0050] During normal operation of the terminal, the window feature information of each window in the window set to be identified under the current system of the terminal can be obtained. For example, the window feature information of each window in the window set to be identified under the current system can be obtained at a set time interval.

[0051] In actual applications, the system API (Application Programming Interface) can be used to obtain the corresponding window feature information.

[0052] The window feature information may include at least one of name information, style information, attribute information and process information. Specifically, the name information may include the window name and the window class name, the style information may include the window style and the extended style, the attribute information may include the window size attribute, and the process information may include the process corresponding to the window.

[0053] S120: For each window in the to-be-identified window set, based on the window feature information of the current window and the interception window feature rule library, determine whether the current window is a to-be-intercepted window.

[0054] In the embodiment of the present application, the interception window feature rule base can be pre-set, and specifically, the interception window feature rule base can be set according to the historical interception data. The interception window feature rule base can contain feature information belonging to the interception window confirmed through analysis, and the interception window can be an advertisement pop-up window, etc. The interception window feature rule base can be updated according to the set time interval or update instruction to continuously improve the recognition capability.

[0055] The window set to be identified may include one or more windows. For each of the windows, the window feature information of the current window can be matched with the interception window feature rule base to determine whether there is feature information matching the window feature information of the current window in the interception window feature rule base. If so, it can be determined that the current window is the window to be intercepted. If not, it can be determined that the current window is not the window to be intercepted.

[0056] By applying the method provided in the embodiment of the present application, after obtaining the window feature information of each window in the window set to be identified under the current system of the terminal, for each window in the window set to be identified, based on the window feature information of the current window and the interception window feature rule library, determine whether the current window is a window to be intercepted, and the window feature information includes at least one of name information, style information, attribute information and process information. The window to be intercepted is identified based on the matching of the window feature information and the interception window feature rule library, rather than simply identifying based on the window position. For a window that pops up at a random position, as long as its window feature information is matched with the interception window feature rule library, it can be accurately determined whether it is a window to be intercepted, thereby improving the recognition accuracy of the window to be intercepted, facilitating the subsequent timely interception of the window to be intercepted, and improving the user experience.

[0057] In one embodiment of the present application, the window set to be identified can be determined by the following steps:

[0058] Step 1: Obtain identification information of each window in the full window set under the current system of the terminal, where the full window set includes all windows under the current system of the terminal;

[0059] Step 2: Based on the identification information, determine whether each window in the window set meets the filtering condition;

[0060] Step 3: Filter the windows that meet the filtering conditions in the entire window set to obtain a set of windows to be identified.

[0061] For ease of description, the above three steps are combined for explanation.

[0062] In the embodiment of the present application, the window set includes all windows in the current system of the terminal. The identification information of each window in the window set in the current system of the terminal can be obtained first. Specifically, the identification information of all windows in the current system can be obtained by enumerating using the system API. The identification information can be handle information. In Windows, handles correspond to objects one by one, and objects can be mapped to unique handles. Obtaining a window handle can be mapped to a unique window object.

[0063] The filtering conditions can be pre-set, such as the filtering conditions include at least one of the following conditions: the window attribute is invisible, it belongs to the system window and the position is outside the terminal setting range. It is understandable that, for a window, if the window attribute of the window is invisible, the window is in a hidden state and will not be displayed on the terminal screen. It is invisible to the user and will not affect the user's use of the terminal. Therefore, such a window can be considered to be within the filtering range. Similarly, for a window, if the window belongs to a system window, such as a folder window, a control panel window, etc., the window belongs to a normal output display window, and such a window can be considered to be within the filtering range. Furthermore, for a window, if the window is outside the terminal setting range, such as outside the visible screen range of the terminal, it will not affect the user's use of the terminal, and such a window can be considered to be within the filtering range.

[0064] After obtaining the identification information of each window in the window set, it is possible to determine whether each window in the window set meets the filtering condition based on the identification information. Specifically, for each window in the window set, the current window can be located according to the identification information of the current window, and the properties, position and other information of the current window can be obtained. Based on the properties, position and other information of the current window, it can be determined whether the current window meets the filtering condition.

[0065] After determining whether each window in the window set meets the filtering condition, the windows that meet the filtering condition can be filtered in the window set to obtain the window set to be identified. In this way, the window set to be identified contains windows that meet the filtering condition. This can reduce the number of windows to be identified, avoid processing too many windows to affect the identification efficiency, and reduce resource consumption.

[0066] In one embodiment of the present application, before determining, for each window in the to-be-identified window set, whether the current window is a window to be intercepted based on the window feature information of the current window and the interception window feature rule base, the method may further include the following steps:

[0067] Step 1: Based on the window feature information, determine whether each window in the to-be-identified window set matches a white window cached in the white window cache list;

[0068] Step 2: Filter out windows that match white windows cached in the white window cache list from the set of windows to be identified.

[0069] For ease of description, the above two steps are combined for illustration.

[0070] In the embodiment of the present application, the window characteristic information of the white window can be cached through the white window cache list. The so-called white window can be considered as a window that has been determined not to be intercepted.

[0071] After obtaining the window feature information of each window in the window set to be identified under the current system of the terminal, the window feature information of each window in the window set to be identified can be matched with the window feature information of the white window cached in the white window cache list. For each window in the window set to be identified, if the window feature information of the current window matches the window feature information of at least one white window cached in the white window cache list, it is determined that the current window matches the white window cached in the white window cache list. In this way, based on the window feature information, it can be determined whether each window in the window set to be identified matches the white window cached in the white window cache list, and the corresponding matching result can be obtained.

[0072] Based on the window feature information, after determining the matching results of whether each window in the window set to be identified matches the white window cached in the white window cache list, the windows that match the white windows cached in the white window cache list can be filtered out in the window set to be identified, and the windows in the window set to be identified that do not match any white window cached in the white window cache list can be retained to obtain an updated window set to be identified. That is, the updated window set to be identified does not contain white windows. Because the white window is a window that has been determined not to be intercepted, if the white window is not filtered, the window set to be identified may contain more white windows, increasing the complexity of subsequent steps and reducing recognition efficiency. The present application filters the white windows in the window set to be identified, so that the number of windows contained in the updated window set to be identified is reduced. For each window in the updated window set to be identified, based on the window feature information of the current window and the interception window feature rule base, it is determined whether the current window is a window to be intercepted, which can improve recognition efficiency.

[0073] In one embodiment of the present application, the method may further include the following steps:

[0074] The first step: for each window in the to-be-identified window set, if the current window matches a white window cached in the white window cache list, then the active flag of the white window matching the current window is updated in the white window cache list;

[0075] The second step: when the set list update trigger condition is met, based on the active marks of the white windows recorded in the white window cache list, the white windows in the white window cache list are eliminated and the white window cache list is updated.

[0076] For ease of description, the above two steps are combined for illustration.

[0077] In an embodiment of the present application, the window feature information of each window in the window set to be identified under the current system of the terminal is obtained, and based on the window feature information, it is determined whether each window in the window set to be identified matches the white window cached in the white window cache list. For each window in the window set to be identified, if the current window matches the white window cached in the white window cache list, it indicates that the current window is not a window to be intercepted and does not need to be further identified. In this case, the active mark of the white window matching the current window can be updated in the white window cache list.

[0078] The white windows included in the white window cache list have corresponding active flags. For any white window, whenever a window in the to-be-identified window set matches the white window, the activity of the white window can be increased by 1 and its active flag can be updated. The active flag of a white window can represent the frequency of the white window being matched.

[0079] If there are too many white windows cached in the white window cache list, it will occupy a large storage space, and when matching each window in the set of windows to be identified, the matching time will be increased, and the matching efficiency will be reduced. Therefore, in the embodiment of the present application, the white window cache list is dynamically updated. When the set list update trigger condition is reached, the white windows therein can be eliminated based on the active marks of the white windows recorded therein, and the white window cache list can be updated.

[0080] Specifically, based on the activity marks of the white windows recorded therein, white windows with activity less than a preset activity threshold can be determined, and such white windows can be eliminated from the white window cache list. The activity threshold can be set and adjusted according to actual conditions.

[0081] It should be noted that the list update trigger condition can be set and adjusted according to actual conditions. For example, the list update trigger condition is considered to be met when the set time interval is reached, or the list update trigger condition is considered to be met when the storage space occupied by the white window cache list reaches the set space threshold, or the list update trigger condition is considered to be met when the number of white windows recorded in the white window cache list reaches the set number threshold.

[0082] Based on the active marks of the white windows recorded in the white window cache list, the white windows in the white window cache list are eliminated, some inactive white windows are eliminated, and the white window cache list is updated, which can maintain the size of the white window cache list, reduce resource consumption, and improve matching efficiency.

[0083] In one embodiment of the present application, the method may further include the following steps:

[0084] For each window in the updated to-be-identified window set, if it is determined that the current window is not a to-be-intercepted window, the window feature information of the current window is recorded in the white window cache list.

[0085] In an embodiment of the present application, before determining whether the current window is a window to be intercepted for each window in the updated window set to be identified based on the window feature information of the current window and the interception window feature rule library, the windows that match the white windows cached in the white window cache list are first filtered out in the window set to be identified. Therefore, for any window in the updated window set to be identified, if the window is not a window to be intercepted, since it is not in the white window cache list, in this case, the window feature information of the window can be recorded in the white window cache list, and the window can be used as a white window for use the next time the embodiment of the present application is executed.

[0086] In one embodiment of the present application, the window feature information includes at least style information. Based on the window feature information of the current window and the interception window feature rule library, determining whether the current window is a window to be intercepted may include the following steps:

[0087] The first step: determining the window style of the current window based on the style information included in the window feature information of the current window;

[0088] The second step: extracting rule information corresponding to the window style from the interception window feature rule library;

[0089] The third step: determining whether the current window is a window to be intercepted based on the window feature information of the current window and the extracted rule information.

[0090] For ease of description, the above three steps are combined for explanation.

[0091] In the embodiment of the present application, the acquired window feature information of each window in the window set to be identified under the current system of the terminal includes at least style information, such as window style, extended style, etc., and may also include information such as window name, window class name, window size attribute, window corresponding process, etc. The interception window feature rule library contains corresponding multiple rule information.

[0092] Based on the window feature information, it is determined whether each window in the window set to be identified matches the white windows cached in the white window cache list, and after filtering out the windows that match the white windows cached in the white window cache list in the window set to be identified, for each window in the updated window set to be identified, the window style of the current window can be determined based on the style information included in the window feature information of the current window, and then the rule information corresponding to the window style of the current window is extracted from the interception window feature rule library, and the window feature information of the current window and the extracted rule information are used to perform matching and identification to determine whether the current window is the window to be intercepted.

[0093] This can avoid full matching and identification with the rule information in the interception window feature rule library, thereby improving identification efficiency.

[0094] In one embodiment of the present application, the method may further include the following steps:

[0095] If it is determined that the current window is a window to be intercepted, the current window is intercepted.

[0096] In the embodiment of the present application, for each window in the set of windows to be identified, based on the window feature information of the current window and the interception window feature rule base, it is determined whether the current window is a window to be intercepted, and if the current window is determined to be a window to be intercepted, the current window can be intercepted. Specifically, the interception process may include closing the window, hiding the window, moving the window out of the visible screen range of the terminal, and closing the corresponding process of the window.

[0097] Each window determined as a window to be intercepted is intercepted, so that these windows are invisible to the user, avoiding affecting the user's normal use of the terminal, and improving the user experience.

[0098] Corresponding to the above method embodiment, the embodiment of the present application further provides a device for identifying a window to be intercepted. The device for identifying a window to be intercepted described below and the method for identifying a window to be intercepted described above can refer to each other.

[0099] See also Figure 2 As shown, the device may include the following modules:

[0100] The window feature information acquisition module 210 is used to acquire the window feature information of each window in the set of windows to be identified in the current system of the terminal;

[0101] The to-be-intercepted window determination module 220 is used to determine, for each window in the to-be-identified window set, whether the current window is a to-be-intercepted window based on the window feature information of the current window and the interception window feature rule base;

[0102] The window characteristic information includes at least one of name information, style information, attribute information and process information.

[0103] By using the device provided in the embodiment of the present application, after obtaining the window feature information of each window in the window set to be identified under the current system of the terminal, for each window in the window set to be identified, based on the window feature information of the current window and the interception window feature rule library, it is determined whether the current window is a window to be intercepted, and the window feature information includes at least one of name information, style information, attribute information and process information. The window to be intercepted is identified based on the matching of the window feature information and the interception window feature rule library, rather than simply identifying based on the window position. For a window that pops up at a random position, as long as its window feature information is matched with the interception window feature rule library, it can be accurately determined whether it is a window to be intercepted, thereby improving the recognition accuracy of the window to be intercepted, facilitating the subsequent timely interception of the window to be intercepted, and improving the user experience.

[0104] In a specific implementation of the present application, a module for determining a window set to be identified is further included, which is used to determine the window set to be identified by the following steps:

[0105] Get the identification information of each window in the full window set under the current system of the terminal. The full window set includes all windows under the current system of the terminal.

[0106] Based on the identification information, determine whether each window in the entire window set meets the filtering condition;

[0107] The windows that meet the filtering conditions are filtered in the entire window set to obtain a window set to be identified.

[0108] In a specific implementation of the present application, the filtering condition includes at least one of the following conditions:

[0109] The window attributes are invisible, belongs to the system window and the position is outside the terminal setting range.

[0110] In a specific implementation of the present application, it also includes:

[0111] A white window matching module is used to determine whether each window in the to-be-identified window set matches a white window cached in the white window cache list based on the window feature information after acquiring the window feature information of each window in the to-be-identified window set under the current system of the terminal;

[0112] The white window filtering module is used to filter out windows that match white windows cached in the white window cache list from the to-be-identified window set, and trigger the to-be-intercepted window determination module 220 .

[0113] In a specific implementation of the present application, it also includes:

[0114] an active mark updating module, for each window in the to-be-identified window set, if the current window matches a white window cached in the white window cache list, updating the active mark of the white window matching the current window in the white window cache list;

[0115] The white window cache list update module is used to eliminate the white windows in the white window cache list and update the white window cache list based on the active marks of the white windows recorded in the white window cache list when the set list update trigger condition is met.

[0116] In a specific implementation of the present application, a white window information recording module is also included, which is used to:

[0117] For each window in the updated to-be-identified window set, if it is determined that the current window is not a to-be-intercepted window, the window feature information of the current window is recorded in the white window cache list.

[0118] In a specific implementation of the present application, the window feature information includes at least style information, and the to-be-intercepted window determination module 220 is used to:

[0119] Determine the window style of the current window based on the style information included in the window characteristic information of the current window;

[0120] Extracting rule information corresponding to the window style from the interception window feature rule library;

[0121] According to the window feature information of the current window and the extracted rule information, it is determined whether the current window is a window to be intercepted.

[0122] In a specific implementation of the present application, an interception processing module is also included, which is used to:

[0123] When it is determined that the current window is a window to be intercepted, the current window is intercepted.

[0124] In a specific implementation of the present application, the interception process includes any one of closing the window, hiding the window, moving the window out of the visible screen range of the terminal, and closing the process corresponding to the window.

[0125] Corresponding to the above method embodiment, the embodiment of the present application further provides a device for identifying a window to be intercepted, including:

[0126] Memory for storing computer programs;

[0127] The processor is used to implement the steps of the above-mentioned method for identifying windows to be intercepted when executing a computer program.

[0128] like Figure 3, which is a schematic diagram of the structure of a device for identifying windows to be intercepted, may include: a processor 10, a memory 11, a communication interface 12, and a communication bus 13. The processor 10, the memory 11, and the communication interface 12 communicate with each other through the communication bus 13.

[0129] In the embodiment of the present application, the processor 10 may be a central processing unit (CPU), an application specific integrated circuit, a digital signal processor, a field programmable gate array or other programmable logic devices, etc.

[0130] The processor 10 may call a program stored in the memory 11. Specifically, the processor 10 may execute operations in an embodiment of the method for identifying a window to be intercepted.

[0131] The memory 11 is used to store one or more programs, which may include program codes, and the program codes include computer operation instructions. In the embodiment of the present application, the memory 11 at least stores programs for implementing the following functions:

[0132] Obtain the window feature information of each window in the window set to be identified under the current terminal system;

[0133] For each window in the to-be-identified window set, based on the window feature information of the current window and the interception window feature rule base, determining whether the current window is a to-be-intercepted window;

[0134] The window characteristic information includes at least one of name information, style information, attribute information and process information.

[0135] In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required for at least one function (such as a feature extraction function, an information matching function), etc.; the data storage area can store data created during use, such as window feature data, rule data, etc.

[0136] In addition, the memory 11 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0137] The communication interface 12 may be an interface of a communication module, and is used to connect to other devices or systems.

[0138] Of course, it should be noted that Figure 3 The structure shown does not constitute a limitation on the device for identifying a window to be intercepted in the embodiment of the present application. In actual applications, the device for identifying a window to be intercepted may include: Figure 3More or fewer components than shown, or combinations of certain components.

[0139] Corresponding to the above method embodiment, the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned method for identifying windows to be intercepted are implemented.

[0140] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0141] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0142] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0143] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A method for identifying a window to be intercepted, characterized in that: include: Obtain the window feature information of each window in the window set to be identified under the current terminal system; Based on the window feature information, determining whether each window in the to-be-identified window set matches a white window cached in a white window cache list; Filtering out windows matching white windows cached in the white window cache list from the to-be-identified window set; For each window in the to-be-identified window set, determining whether the current window is a to-be-intercepted window based on the window feature information of the current window and an interception window feature rule base; The window feature information includes at least one of name information, style information, attribute information and process information; The window set to be identified is determined by the following steps: Obtain identification information of each window in a full set of windows under the current system of the terminal, wherein the full set of windows includes all windows under the current system of the terminal; determine whether each window in the full set of windows satisfies a filtering condition based on the identification information; and filter the windows in the full set of windows that satisfy the filtering condition to obtain the window set to be identified.

2. The method according to claim 1, characterized in that The filtering condition includes at least one of the following conditions: The window attributes are invisible, belonging to the system window and the position is outside the setting range of the terminal.

3. The method according to claim 1, characterized in that Also includes: For each window in the to-be-identified window set, if the current window matches a white window cached in the white window cache list, updating an active flag of the white window matching the current window in the white window cache list; When a set list update trigger condition is met, based on the active flags of the white windows recorded in the white window cache list, the white windows in the white window cache list are eliminated, and the white window cache list is updated.

4. The method according to claim 3, characterized in that Also includes: For each window in the updated to-be-identified window set, if it is determined that the current window is not a to-be-intercepted window, the window feature information of the current window is recorded in the white window cache list.

5. The method according to any one of claims 1 to 4, characterized in that Also includes: If it is determined that the current window is a window to be intercepted, an interception process is performed on the current window.

6. A device for identifying windows to be intercepted, characterized in that: include: The window feature information acquisition module is used to acquire the window feature information of each window in the window set to be identified under the current system of the terminal; A white window matching module, used to determine whether each window in the to-be-identified window set matches a white window cached in the white window cache list based on the window feature information; A white window filtering module, used to filter out windows matching white windows cached in a white window cache list from a set of windows to be identified; A to-be-intercepted window determination module, for determining, for each window in the to-be-identified window set, whether the current window is a to-be-intercepted window based on the window feature information of the current window and an interception window feature rule base; The window feature information includes at least one of name information, style information, attribute information and process information; Wherein, the device for identifying windows to be intercepted further includes: The module for determining the window set to be identified is used to determine the window set to be identified through the following steps: obtaining the identification information of each window in the window set under the current system of the terminal, the window set includes all windows under the current system of the terminal; based on the identification information, determining whether each window in the window set meets the filtering condition; filtering the windows that meet the filtering condition in the window set to obtain the window set to be identified.

7. A device for identifying windows to be intercepted, characterized in that: include: Memory for storing computer programs; A processor is used to implement the steps of the method for identifying a window to be intercepted as described in any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for identifying a window to be intercepted as claimed in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • System, equipment and method used for identifying and intercepting bundled software

    CN103235913A

  • Pop-up window intercepting method and device

    CN103685136A

  • Security detecting method and security detecting device for mobile terminal input window

    CN104182687A

  • Method and device for controlling webpage pop-up window

    CN104252477A

  • Window message interception method and apparatus and terminal device

    CN105303105A