CN112905890A - Method, device, equipment and storage medium for identifying window to be intercepted - Google Patents

Method, device, equipment and storage medium for identifying window to be intercepted Download PDF

Info

Publication number
CN112905890A
CN112905890A CN202110239704.4A CN202110239704A CN112905890A CN 112905890 A CN112905890 A CN 112905890A CN 202110239704 A CN202110239704 A CN 202110239704A CN 112905890 A CN112905890 A CN 112905890A
Authority
CN
China
Prior art keywords
window
intercepted
white
current
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110239704.4A
Other languages
Chinese (zh)
Inventor
匡开圆
方恒月
吴德正
桑瑞强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202110239704.4A priority Critical patent/CN112905890A/en
Publication of CN112905890A publication Critical patent/CN112905890A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application discloses a method for identifying a window to be intercepted, which comprises the following steps: acquiring window characteristic information of each window in a window set to be identified under a current system of a terminal; determining whether the current window is a window to be intercepted or not based on window characteristic information of the current window and an interception window characteristic rule base aiming at each window in a window set to be identified; the window characteristic information includes at least one of name information, style information, attribute information, and process information. By applying the technical scheme provided by the application, the window position is not simply identified, and for the window popped up at the random position, as long as the window characteristic information is matched with the interception window characteristic rule base, whether the window is the window to be intercepted or not can be accurately determined, so that the subsequent timely interception of the window to be intercepted is facilitated, and the user experience is improved. The application also discloses a device, equipment and a storage medium for identifying the window to be intercepted, and the device, the equipment and the storage medium have corresponding technical effects.

Description

Method, device, equipment and storage medium for identifying window to be intercepted
Technical Field
The present application relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a storage medium for identifying a window to be intercepted.
Background
With the rapid development of computer technology and terminal technology, the application range of the terminal in daily life and work is more and more extensive. The user can install various applications in the terminal to use corresponding functions, but in the terminal operation process, some applications have popup operation, which brings trouble to the user in normal use of the terminal, and therefore, the user needs to identify a popup waiting interception window in the terminal operation process, and timely take measures such as interception and the like.
At present, windows to be intercepted are mostly identified based on window positions, that is, when a window appears at a certain set position, the window is identified as the window to be intercepted.
The method cannot cope with the window popped up at the random position, cannot accurately identify the window which is not at the set position, is easy to cause misjudgment of the normal window at the set position, has low identification accuracy, and can influence the use experience of a user due to untimely interception if the window to be intercepted cannot be accurately identified.
Disclosure of Invention
The application aims to provide a window to be intercepted identification method, device, equipment and storage medium, so that the window to be intercepted identification accuracy is improved, the subsequent timely interception of the window to be intercepted is facilitated, and the user experience is improved.
In order to solve the technical problem, the application provides the following technical scheme:
a window to be intercepted identification method comprises the following steps:
acquiring window characteristic information of each window in a window set to be identified under a current system of a terminal;
determining whether the current window is a window to be intercepted or not based on window characteristic information of the current window and an intercepting window characteristic rule base aiming at each window in the window set to be identified;
the window characteristic information includes at least one of name information, style information, attribute information, and process information.
In a specific embodiment of the present application, the set of windows to be identified is determined by:
acquiring identification information of each window in a window complete set under a current system of the terminal, wherein the window complete set comprises all windows under the current system of the terminal;
respectively determining whether each window in the window complete set meets a filtering condition based on the identification information;
and filtering the windows meeting the filtering condition in the window complete set to obtain the window set to be identified.
In one embodiment of the present application, the filtration conditions comprise at least one of the following conditions:
the window attribute is invisible, belongs to a system window and is positioned outside the terminal setting range.
In a specific embodiment of the present application, before determining, for each window in the set of windows to be identified, whether the current window is a window to be intercepted based on window feature information of the current window and an intercepting window feature rule base, the method further includes:
respectively determining whether each window in the window set to be identified is matched with a white window cached in a white window cache list or not based on the window characteristic information;
and filtering out windows matched with the white windows cached in the white window cache list in the window set to be identified.
In one embodiment of the present application, the method further includes:
for each window in the window set to be identified, if the current window is matched with a white window cached in the white window cache list, updating an active mark of the white window matched with the current window in the white window cache list;
and under the condition that a set list updating triggering condition is reached, based on the active mark of the white window recorded in the white window cache list, performing elimination processing on the white window in the white window cache list, and updating the white window cache list.
In one embodiment of the present application, the method further includes:
and for each window in the updated window set to be identified, if the current window is determined not to be the window to be intercepted, recording window characteristic information of the current window in the white window cache list.
In a specific embodiment of the present application, the determining, based on the window feature information of the current window and the rule base of the intercepting window feature, whether the current window is a window to be intercepted includes:
determining a window style of a current window based on style information included in window feature information of the current window;
extracting rule information corresponding to the window style from an interception window feature rule base;
and determining whether the current window is a window to be intercepted or not according to the window characteristic information of the current window and the extracted rule information.
In one embodiment of the present application, the method further includes:
and if the current window is determined to be the window to be intercepted, intercepting the current window.
In a specific embodiment of the present application, the intercepting process includes any one of a process of closing a window, hiding the window, moving the window out of a visible screen range of the terminal, and closing a window.
An apparatus for identifying a window to be intercepted, comprising:
the window characteristic information acquisition module is used for acquiring the window characteristic information of each window in a window set to be identified under the current system of the terminal;
a window to be intercepted determining module, configured to determine, for each window in the window set to be identified, whether the current window is a window to be intercepted based on window feature information of the current window and an intercepting window feature rule base;
the window characteristic information includes at least one of name information, style information, attribute information, and process information.
An apparatus for recognizing a window to be intercepted, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the above window identification methods to be intercepted when the computer program is executed.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for identifying a window to be intercepted according to any of the above-mentioned claims.
By applying the technical scheme provided by the embodiment of the application, after the window characteristic information of each window in a window set to be identified under a current system of the terminal is obtained, whether the current window is the window to be intercepted or not is determined according to the window characteristic information of the current window and an intercepting window characteristic rule base aiming at each window in the window set to be identified, wherein the window characteristic information comprises 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 characteristic information and the intercepting window characteristic rule base instead of simply identifying the window based on the window position, and whether the window to be intercepted is the window to be intercepted or not can be accurately determined as long as the window characteristic information of the window popped up at a random position is matched with the intercepting window characteristic rule base, so that the identification accuracy of the window to be intercepted is improved, the follow-up timely interception of the window to be intercepted is facilitated, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a method for identifying a window to be intercepted according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a window identification device to be intercepted in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a window identification device to be intercepted in an embodiment of the present application.
Detailed Description
The core of the application is to provide a method for identifying a window to be intercepted, the method can be applied to a terminal, the window to be intercepted is identified through the terminal, and particularly, the identification of the window to be intercepted can be carried out through intercepting software installed in the terminal.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, an implementation flowchart of a method for identifying a window to be intercepted according to an embodiment of the present application is shown, where the method includes the following steps:
s110: and acquiring window characteristic information of each window in a window set to be identified under a current system of the terminal.
In the embodiment of the application, the window set to be identified under the current system of the terminal can be predetermined. If all windows under the current system can be determined as windows to be identified to form a window set to be identified, part of windows can be screened out from all windows under the current system according to a certain rule and determined as windows to be identified to form the window set to be identified. The window set to be identified contains one or more windows.
In the normal operation process of the terminal, the window characteristic information of each window in the window set to be identified under the current system of the terminal can be acquired. For example, the window characteristic information of each window in the current window set to be identified in the system can be obtained according to the set time interval.
In practical applications, a system API (Application Programming Interface) may be used to obtain corresponding window characteristic information.
The window characteristic information may include at least one of name information, style information, attribute information, and progress information. Specifically, the name information may include a window name and a window class name, the style information may include a window style and an extension style, the attribute information may include a window size attribute, and the process information may include a process corresponding to the window.
S120: and aiming at each window in the window set to be identified, determining whether the current window is the window to be intercepted or not based on the window characteristic information of the current window and the intercepting window characteristic rule base.
In the embodiment of the application, the interception window feature rule base may be preset, and specifically, the interception window feature rule base may be set according to historical interception data. The interception window feature rule base may include feature information belonging to an interception window, which may be an advertisement popup window, and the like. The interception window feature rule base can be updated according to a set time interval or an updating instruction so as to continuously improve the identification capability.
The window set to be identified may include one or more windows, and for each window, the window feature information of the current window may be matched with the interception window feature rule base, and it is determined whether feature information matched with the window feature information of the current window exists in the interception window feature rule base, if so, the current window may be determined to be a window to be intercepted, and if not, the current window may be determined not to be the window to be intercepted.
By applying the method provided by the embodiment of the application, after the window characteristic information of each window in the window set to be identified under the current system of the terminal is obtained, whether the current window is the window to be intercepted or not is determined according to the window characteristic information of the current window and the intercepting window characteristic rule base of each window in the window set to be identified, wherein the window characteristic information comprises 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 characteristic information and the intercepting window characteristic rule base instead of simply identifying the window based on the window position, and whether the window to be intercepted is the window to be intercepted or not can be accurately determined as long as the window characteristic information of the window popped up at a random position is matched with the intercepting window characteristic rule base, so that the identification accuracy of the window to be intercepted is improved, the follow-up timely interception of the window to be intercepted is facilitated, and the user experience is improved.
In one embodiment of the present application, the set of windows to be identified may be determined by:
the method comprises the following steps: acquiring identification information of each window in a window complete set under a current system of a terminal, wherein the window complete set comprises all windows under the current system of the terminal;
step two: respectively determining whether each window in the window complete set meets a filtering condition based on the identification information;
step three: and filtering the windows meeting the filtering condition in the window complete set to obtain a window set to be identified.
For convenience of description, the above three steps are combined for illustration.
In the embodiment of the application, the window complete set includes all windows under the current system of the terminal. The identification information of each window in the window complete set under the current system of the terminal can be obtained first. Specifically, the system API may be used to enumerate and obtain the identification information of all windows in the current system. The identification information may be handle information. In windows, handles correspond to objects one to one, the objects can be mapped to unique handles, and the unique window objects can be mapped by acquiring window handles.
The filtering condition may be preset, for example, the filtering condition includes at least one of the following conditions: the window attribute is invisible, belongs to a system window and is positioned outside the terminal setting range. It can be understood that, for a window, if the window attribute of the window is invisible, the window is in a hidden state and is not displayed on the terminal screen, and is invisible to the user and does not affect the use of the terminal by the user, so that such a window can be considered to be within the filtering range. Also, 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 presentation 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 terminal visible screen range, the use of the terminal by the user will not be affected, and such a window may be considered to be within the filtering range.
After the identification information of each window in the window corpus is obtained, whether each window in the window corpus meets the filtering condition or not can be respectively determined based on the identification information. Specifically, for each window in the window corpus, the current window may be located according to the identification information of the current window, to obtain the attribute, position, and other information of the current window, and based on the attribute, position, and other information of the current window, it may be determined whether the current window meets the filtering condition.
After determining whether each window in the window complete set meets the filtering condition, filtering the windows meeting the filtering condition in the window complete set to obtain a window set to be identified. Thus, the window set to be identified contains windows meeting the filtering condition. Therefore, the number of the windows to be identified can be reduced, the influence of processing too many windows on the identification efficiency is avoided, and meanwhile, the resource consumption can be reduced.
In an embodiment of the present application, before determining, for each window in the set of windows to be identified, whether the current window is a window to be intercepted based on the window feature information of the current window and the rule base of the intercepting window feature, the method may further include the following steps:
the method comprises the following steps: respectively determining whether each window in the window set to be identified is matched with a white window cached in a white window cache list or not based on the window characteristic information;
step two: and filtering out windows matched with the white windows cached in the white window cache list in the window set to be identified.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the present application, the window characteristic information of the white window may be cached through a white window cache list. The so-called white window can be considered as a window that has been determined that does not require interception.
After the window characteristic information of each window in the window set to be identified under the current system of the terminal is obtained, the window characteristic information of each window in the window set to be identified can be matched with the window characteristic information of the white window cached in the white window cache list. And aiming at each window in the window set to be identified, if the window characteristic information of the current window is matched with the window characteristic information of at least one white window cached in the white window cache list, determining that the current window is matched with the white window cached in the white window cache list. Therefore, based on the window characteristic information, whether each window in the window set to be identified is matched with the white window cached in the white window cache list or not can be respectively determined, and a corresponding matching result is obtained.
After determining whether each window in the window set to be identified is matched with the white window cached in the white window cache list or not based on the window characteristic information, the window matched with the white window cached in the white window cache list can be filtered out in the window set to be identified, and the window which is not matched with any white window cached in the white window cache list in the window set to be identified can be reserved, so that the updated window set to be identified is obtained. I.e. the updated set of windows to be identified does not contain white windows. Because the white window is the determined window which does not need to be intercepted, if the white window is not filtered, the window set to be identified may contain more white windows, which increases the complexity of the execution of the subsequent steps and reduces the identification efficiency. According to the method and the device, the white windows in the window set to be recognized are filtered, so that the number of the windows in the updated window set to be recognized is reduced, and whether the current window is the window to be intercepted or not is determined for each window in the updated window set to be recognized based on the window characteristic information of the current window and the intercepting window characteristic rule base, so that the recognition efficiency can be improved.
In one embodiment of the present application, the method may further comprise the steps of:
the first step is as follows: for each window in the window set to be identified, if the current window is matched with the white window cached in the white window cache list, updating the active mark of the white window matched with the current window in the white window cache list;
the second step is that: and under the condition that a set list updating triggering condition is met, based on the active mark of the white window recorded in the white window cache list, eliminating the white window in the white window cache list, and updating the white window cache list.
For convenience of description, the above two steps are combined for illustration.
In the embodiment of the application, the window characteristic information of each window in a window set to be identified under a current system of a terminal is obtained, and based on the window characteristic information, whether each window in the window set to be identified is matched with a white window cached in a white window cache list or not is respectively determined, and for each window in the window set to be identified, if the current window is matched with the white window cached in the white window cache list, it is indicated that the current window is not a window to be intercepted, and further identification of the current window is not needed. In this case, the active flag of the white window matching the current window may be updated in the white window cache list.
And for any white window, updating the active mark of the white window with the activity +1 of the white window whenever the window to be identified is concentrated with a window matched with the white window. The active indicia of the white window may characterize how often the white window is matched.
If too many white windows are cached in the white window cache list, a large storage space is occupied, and when matching of each window in the window set to be identified is carried out, the matching time length is prolonged, and the matching efficiency is reduced. Therefore, in the embodiment of the present application, the white window cache list is dynamically updated, and when a set list update triggering condition is reached, the white window in the white window cache list may be eliminated and updated based on the active flag of the white window recorded therein.
Specifically, the white window with the activity degree smaller than the preset activity degree threshold value can be determined based on the activity mark of the white window recorded in the white window, and such a white window is eliminated from the white window cache list. The activity threshold value can be set and adjusted according to actual conditions.
It should be noted that the list update triggering condition may be set and adjusted according to an actual situation, for example, the list update triggering condition is considered to be reached when a set time interval is reached, or the list update triggering condition is considered to be reached when a storage space occupied by the white window cache list reaches a set space threshold, or the list update triggering condition is considered to be reached when the number of white windows recorded in the white window cache list reaches a set number threshold.
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, part of inactive white windows are eliminated, and the white window cache list is updated, so that the scale of the white window cache list can be maintained, the resource consumption is reduced, and the matching efficiency is improved.
In one embodiment of the present application, the method may further comprise the steps of:
and for each window in the updated window set to be identified, if the current window is determined not to be the window to be intercepted, recording window characteristic information of the current window in a white window cache list.
In this embodiment of the present application, before determining, for each window in the updated to-be-identified window set, based on the window feature information of the current window and the interception window feature rule base, whether the current window is a to-be-intercepted window, a window that matches a white window cached in the white window cache list is filtered in the to-be-identified window set, so that, for any window in the updated to-be-identified window set, if the window is not the to-be-intercepted window, because the window is not in the white window cache list, in this case, the window feature information of the window may be recorded in the white window cache list, and the window is used as a white window for the next time of executing the embodiment of the present application.
In an embodiment of the present application, the window feature information at least includes style information, and determining whether the current window is a window to be intercepted based on the window feature information of the current window and an intercepting window feature rule base may include the following steps:
the first step is as follows: determining a window style of the current window based on style information included in the window feature information of the current window;
the second step is that: extracting rule information corresponding to the window style from an interception window feature rule base;
the third step: and determining whether the current window is a window to be intercepted or not according to the window characteristic information of the current window and the extracted rule information.
For convenience of description, the above three steps are combined for illustration.
In the embodiment of the application, the acquired window characteristic information of each window in the window set to be identified in the current system of the terminal at least includes style information, such as a window style, an extension style and the like, and may further include information such as a window name, a window class name, a window size attribute, a window corresponding process and the like. The interception window characteristic rule base comprises corresponding various rule information.
Based on the window characteristic information, respectively determining whether each window in the window set to be identified is matched with a white window cached in a white window cache list, filtering out windows matched with the white window cached in the white window cache list in the window set to be identified, and aiming at each window in the updated window set to be identified, determining the window style of the current window based on style information included in the window characteristic information of the current window, then extracting rule information corresponding to the window style of the current window from an interception window characteristic rule base, performing matching identification by using the window characteristic information of the current window and the extracted rule information, and determining whether the current window is the window to be intercepted.
Therefore, the full matching identification with the rule information in the interception window feature rule base can be avoided, and the identification efficiency can be improved.
In one embodiment of the present application, the method may further comprise the steps of:
and if the current window is determined to be the window to be intercepted, intercepting the current window.
In the embodiment of the application, whether the current window is the window to be intercepted or not is determined for each window in the window set to be identified based on the window characteristic information of the current window and the intercepting window characteristic rule base, and the current window can be intercepted under the condition that the current window is determined to be the window to be intercepted. Specifically, the intercepting process may include any one of closing a window, hiding the window, moving the window out of the range of the visible screen of the terminal, and closing a process corresponding to the window.
Intercepting processing is carried out on each window determined as the window to be intercepted, so that the windows are invisible to a user, normal use of the user on the terminal is prevented from being influenced, and use experience of the user can be improved.
Corresponding to the above method embodiment, the present application embodiment further provides a device for identifying a window to be intercepted, where the device for identifying a window to be intercepted described below and the method for identifying a window to be intercepted described above may be referred to in a corresponding manner.
Referring to fig. 2, the apparatus may include the following modules:
the window characteristic information acquiring module 210 is configured to acquire window characteristic information of each window in a set of windows to be identified in a current system of the terminal;
a window to be intercepted determining module 220, configured to determine, for each window in the set of windows to be identified, whether the current window is a window to be intercepted based on the window feature information of the current window and the intercepting window feature rule base;
the window characteristic information includes at least one of name information, style information, attribute information, and process information.
By applying the device provided by the embodiment of the application, after the window characteristic information of each window in the window set to be identified under the current system of the terminal is obtained, whether the current window is the window to be intercepted or not is determined according to the window characteristic information of the current window and the intercepting window characteristic rule base of each window in the window set to be identified, wherein the window characteristic information comprises 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 characteristic information and the intercepting window characteristic rule base instead of simply identifying the window based on the window position, and whether the window to be intercepted is the window to be intercepted or not can be accurately determined as long as the window characteristic information of the window popped up at a random position is matched with the intercepting window characteristic rule base, so that the identification accuracy of the window to be intercepted is improved, the follow-up timely interception of the window to be intercepted is facilitated, and the user experience is improved.
In a specific embodiment of the present application, the method further includes a module for determining a window set to be identified, configured to determine the window set to be identified by:
acquiring identification information of each window in a window complete set under a current system of a terminal, wherein the window complete set comprises all windows under the current system of the terminal;
respectively determining whether each window in the window complete set meets a filtering condition based on the identification information;
and filtering the windows meeting the filtering condition in the window complete set to obtain a window set to be identified.
In one embodiment of the present application, the filtration conditions comprise at least one of the following conditions:
the window attribute is invisible, belongs to a system window and is positioned outside the terminal setting range.
In one embodiment of the present application, the method further includes:
the white window matching module is used for respectively determining whether each window in the window set to be identified is matched with a white window cached in the white window cache list or not based on the window characteristic information after the window characteristic information of each window in the window set to be identified under the current system of the terminal is acquired;
and a white window filtering module, configured to filter, in the set of windows to be identified, windows that match the white windows cached in the white window cache list, and trigger the to-be-intercepted window determining module 220.
In one embodiment of the present application, the method further includes:
the active mark updating module is used for updating the active mark of the white window matched with the current window in the white window cache list if the current window is matched with the white window cached in the white window cache list aiming at each window in the window set to be identified;
and the white window cache list updating module is used for eliminating the white windows in the white window cache list and updating the white window cache list on the basis of the active marks of the white windows recorded in the white window cache list under the condition that a set list updating triggering condition is reached.
In a specific embodiment of the present application, the apparatus further includes a white window information recording module, configured to:
and for each window in the updated window set to be identified, if the current window is determined not to be the window to be intercepted, recording window characteristic information of the current window in a white window cache list.
In a specific embodiment of the present application, the window characteristic information at least includes style information, and the to-be-intercepted window determining module 220 is configured to:
determining a window style of the current window based on style information included in the window feature information of the current window;
extracting rule information corresponding to the window style from an interception window feature rule base;
and determining whether the current window is a window to be intercepted or not according to the window characteristic information of the current window and the extracted rule information.
In a specific embodiment of the present application, the system further includes an interception processing module, configured to:
and under the condition that the current window is determined to be the window to be intercepted, intercepting the current window.
In a specific embodiment of the present application, the intercepting process includes any one of processes of closing a window, hiding the window, moving the window out of a visible screen range of the terminal, and closing the window.
Corresponding to the above method embodiment, an embodiment of the present application further provides a device for identifying a window to be intercepted, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the window identification method to be intercepted when executing the computer program.
As shown in fig. 3, which is a schematic view of a structure of a window identification device to be intercepted, the window identification device 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 all communicate with each other through a communication bus 13.
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 device, etc.
The processor 10 may call a program stored in the memory 11, and in particular, the processor 10 may perform operations in an embodiment of the window identification method to be intercepted.
The memory 11 is used for storing one or more programs, the program may include program codes, the program codes include computer operation instructions, in this embodiment, the memory 11 stores at least the program for implementing the following functions:
acquiring window characteristic information of each window in a window set to be identified under a current system of a terminal;
determining whether the current window is a window to be intercepted or not based on the window characteristic information of the current window and an intercepting window characteristic rule base aiming at each window in the window set to be identified;
the window characteristic information includes at least one of name information, style information, attribute information, and process information.
In one possible implementation, the memory 11 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a feature extraction function, an information matching function), and the like; the storage data area may store data created during use, such as window characteristic data, rule data, and the like.
Further, the memory 11 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device or other volatile solid state storage device.
The communication interface 12 may be an interface of a communication module for connecting with other devices or systems.
Of course, it should be noted that the structure shown in fig. 3 does not constitute a limitation on the window identification device to be intercepted in the embodiment of the present application, and in practical applications, the window identification device to be intercepted may include more or less components than those shown in fig. 3, or some components in combination.
Corresponding to the above method embodiment, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements the steps of the above method for identifying a window to be intercepted.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present application are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present application. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.

Claims (10)

1. A method for identifying a window to be intercepted is characterized by comprising the following steps:
acquiring window characteristic information of each window in a window set to be identified under a current system of a terminal;
determining whether the current window is a window to be intercepted or not based on window characteristic information of the current window and an intercepting window characteristic rule base aiming at each window in the window set to be identified;
the window characteristic information includes at least one of name information, style information, attribute information, and process information.
2. The method of claim 1, wherein the set of windows to be identified is determined by:
acquiring identification information of each window in a window complete set under a current system of the terminal, wherein the window complete set comprises all windows under the current system of the terminal;
respectively determining whether each window in the window complete set meets a filtering condition based on the identification information;
and filtering the windows meeting the filtering condition in the window complete set to obtain the window set to be identified.
3. The method of claim 2, wherein the filtering conditions comprise at least one of:
the window attribute is invisible, belongs to a system window and is positioned outside the terminal setting range.
4. The method according to claim 1, wherein before determining, for each window in the set of windows to be identified, whether the current window is a window to be intercepted based on window feature information of the current window and an intercepting window feature rule base, further comprising:
respectively determining whether each window in the window set to be identified is matched with a white window cached in a white window cache list or not based on the window characteristic information;
and filtering out windows matched with the white windows cached in the white window cache list in the window set to be identified.
5. The method of claim 4, further comprising:
for each window in the window set to be identified, if the current window is matched with a white window cached in the white window cache list, updating an active mark of the white window matched with the current window in the white window cache list;
and under the condition that a set list updating triggering condition is reached, based on the active mark of the white window recorded in the white window cache list, performing elimination processing on the white window in the white window cache list, and updating the white window cache list.
6. The method of claim 4, further comprising:
and for each window in the updated window set to be identified, if the current window is determined not to be the window to be intercepted, recording window characteristic information of the current window in the white window cache list.
7. The method of any one of claims 1 to 6, further comprising:
and if the current window is determined to be the window to be intercepted, intercepting the current window.
8. An apparatus for recognizing a window to be intercepted, comprising:
the window characteristic information acquisition module is used for acquiring the window characteristic information of each window in a window set to be identified under the current system of the terminal;
a window to be intercepted determining module, configured to determine, for each window in the window set to be identified, whether the current window is a window to be intercepted based on window feature information of the current window and an intercepting window feature rule base;
the window characteristic information includes at least one of name information, style information, attribute information, and process information.
9. An apparatus for recognizing a window to be intercepted, comprising:
a memory for storing a computer program;
processor for implementing the steps of the method for identifying a window to be intercepted according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, implements the steps of the method for identifying a window to be intercepted according to any one of claims 1 to 7.
CN202110239704.4A 2021-03-04 2021-03-04 Method, device, equipment and storage medium for identifying window to be intercepted Pending CN112905890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110239704.4A CN112905890A (en) 2021-03-04 2021-03-04 Method, device, equipment and storage medium for identifying window to be intercepted

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110239704.4A CN112905890A (en) 2021-03-04 2021-03-04 Method, device, equipment and storage medium for identifying window to be intercepted

Publications (1)

Publication Number Publication Date
CN112905890A true CN112905890A (en) 2021-06-04

Family

ID=76107609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110239704.4A Pending CN112905890A (en) 2021-03-04 2021-03-04 Method, device, equipment and storage medium for identifying window to be intercepted

Country Status (1)

Country Link
CN (1) CN112905890A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235913A (en) * 2013-04-03 2013-08-07 北京奇虎科技有限公司 System, equipment and method used for identifying and intercepting bundled software
CN104252477A (en) * 2013-06-27 2014-12-31 贝壳网际(北京)安全技术有限公司 Method and device for controlling webpage pop-up window
CN105303105A (en) * 2015-10-20 2016-02-03 珠海市君天电子科技有限公司 Window message interception method and device and terminal equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103235913A (en) * 2013-04-03 2013-08-07 北京奇虎科技有限公司 System, equipment and method used for identifying and intercepting bundled software
CN104252477A (en) * 2013-06-27 2014-12-31 贝壳网际(北京)安全技术有限公司 Method and device for controlling webpage pop-up window
CN105303105A (en) * 2015-10-20 2016-02-03 珠海市君天电子科技有限公司 Window message interception method and device and terminal equipment

Similar Documents

Publication Publication Date Title
CN110365703B (en) Internet of things terminal abnormal state detection method and device and terminal equipment
CN108804299B (en) Application program exception handling method and device
CN109327357B (en) Feature extraction method and device of application software and electronic equipment
CN111081217B (en) Voice wake-up method and device, electronic equipment and storage medium
CN108509231B (en) VR-based application program opening method, electronic device, equipment and storage medium
CN109947924B (en) Dialogue system training data construction method and device, electronic equipment and storage medium
CN110910878B (en) Voice wake-up control method and device, storage medium and household appliance
CN110543281A (en) Storage compression implementation method, device, equipment and storage medium
CN109213448B (en) Method, device, equipment and storage medium for erasing and writing data of smart card
US20190042186A1 (en) Systems and methods for using optical character recognition with voice recognition commands
CN109727027A (en) Account recognition methods, device, equipment and storage medium
US11423880B2 (en) Method for updating a speech recognition model, electronic device and storage medium
CN107357619B (en) Method, device, equipment and storage medium for generating card configuration file
CN110347995B (en) File saving method, device, equipment and storage medium
CN115857905A (en) Code conversion method and device for graphical programming, electronic equipment and storage medium
CN106228047A (en) A kind of application icon processing method and terminal unit
CN112905890A (en) Method, device, equipment and storage medium for identifying window to be intercepted
CN106033363B (en) Upgrading method and upgrading device for application program of embedded system
CN115061921A (en) Automatic test method, device, electronic equipment and readable storage medium
CN113806252A (en) Board card identification method, computer, device, terminal equipment and storage medium
CN113033431A (en) Optical character recognition model training and recognition method, device, equipment and medium
CN113177233A (en) Sensitive data identification method and device
CN110597585A (en) Application program page display method and device, computer equipment and storage medium
CN110602737B (en) Regional removal identification method and device, computer equipment and storage medium
CN109726375B (en) Code configuration modification method, device, equipment and readable storage medium

Legal Events

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