CN106776610A - Advertisement popup intercepting method and device - Google Patents

Advertisement popup intercepting method and device Download PDF

Info

Publication number
CN106776610A
CN106776610A CN201510810485.5A CN201510810485A CN106776610A CN 106776610 A CN106776610 A CN 106776610A CN 201510810485 A CN201510810485 A CN 201510810485A CN 106776610 A CN106776610 A CN 106776610A
Authority
CN
China
Prior art keywords
icon
advertisement
window
popping
taskbar
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.)
Granted
Application number
CN201510810485.5A
Other languages
Chinese (zh)
Other versions
CN106776610B (en
Inventor
杨峰
潘建军
王云峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Zhuhai Juntian Electronic Technology 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 Beijing Kingsoft Internet Security Software Co Ltd, Zhuhai Juntian Electronic Technology Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510810485.5A priority Critical patent/CN106776610B/en
Publication of CN106776610A publication Critical patent/CN106776610A/en
Application granted granted Critical
Publication of CN106776610B publication Critical patent/CN106776610B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses an advertisement popup intercepting method and device, relates to the technical field of advertisement interception, and can intercept advertisement popup in a task bar tray area. The advertisement popup intercepting method comprises the following steps: detecting whether an icon exists in a task bar tray area or not; if the task bar tray area has the icon, whether the icon capable of popping up the advertisement window exists in the icon is searched according to the advertisement popup window rule; the advertisement popup rule comprises attribute information of an advertisement window; and if the icons in the task bar tray area have the icons capable of popping up the advertisement windows, closing the icons capable of popping up the advertisement windows. The method is suitable for intercepting the advertisement popup window in the task bar tray area.

Description

Advertisement popup intercepting method and device
Technical Field
The invention relates to the technical field of advertisement interception, in particular to an advertisement popup window interception method and device.
Background
In recent years, the probability of pop-up of advertisement pop-up windows built in computer application software on a computer desktop has gradually increased. Common advertisement pop-ups can be directly displayed on a desktop and displayed for users. However, there is an advertisement pop-up window that is not displayed directly as a normal advertisement pop-up window, but has a flashing tray icon in the task bar tray area, which flashes in the task bar like an instant message such as QQ, and the advertisement pop-up window is displayed after the user clicks.
The existing advertisement popup intercepting software intercepts the displayed advertisement popup, and cannot intercept the advertisement popup which flickers in a task bar but is not displayed. The advertisement popup which cannot be intercepted not only can bring heavy burden to the system operation of a computer user, but also can bring frequent disturbance to the user.
Disclosure of Invention
In view of this, an embodiment of the present invention provides an advertisement popup intercepting method, which can intercept an advertisement popup in a taskbar tray area.
In a first aspect, an embodiment of the present invention provides an advertisement popup intercepting method, including:
detecting whether an icon exists in a task bar tray area or not;
if the task bar tray area has the icon, whether the icon capable of popping up the advertisement window exists in the icon is searched according to the advertisement popup window rule; the advertisement popup rule comprises attribute information of an advertisement window;
and if the icons in the task bar tray area have the icons capable of popping up the advertisement windows, closing the icons capable of popping up the advertisement windows.
With reference to the first aspect, in a first implementation manner of the first aspect, the detecting whether an icon exists in the taskbar tray area includes: detecting whether a flashing icon exists in a task bar tray area;
wherein, if the task bar tray area has an icon, then find whether there is an icon that can pop up an advertisement window in the icon according to an advertisement pop-up rule, including: if the task bar tray area has a flickering icon, judging whether the flickering icon is an icon capable of popping up an advertisement window according to an advertisement popup rule;
if the icon is an icon capable of popping up an advertisement window, closing the icon, including: and if the flickering icon is an icon capable of popping up an advertisement window, closing the flickering icon.
With reference to the first implementation manner of the first aspect, in a second implementation manner of the first aspect, if an icon exists in the taskbar tray area, finding whether an icon capable of popping up an advertisement window exists in the icon according to an advertisement popup rule includes:
if the taskbar tray area has the icon, judging whether the icon in the taskbar tray area is the icon capable of popping up the advertisement window or not according to the attribute information of the advertisement window contained in the advertisement pop-up rule through a window searching function provided by a Windows operating system.
With reference to the first aspect, or any one of the first and second implementation manners of the first aspect, in a third implementation manner of the first aspect, the attribute information of the advertisement window included in the advertisement popup rule includes: the window class name and the process name corresponding to the window.
With reference to the first aspect, or any one of the first and second implementation manners of the first aspect, in a fourth implementation manner of the first aspect, after an icon capable of popping up an advertisement window is closed, the method for intercepting an advertisement pop-up window further includes:
and automatically hiding the blank area left after the icon capable of popping up the advertisement window is closed.
With reference to the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the automatically hiding a blank area left after the icon capable of popping up an advertisement window is closed includes:
acquiring a handle of a task bar tray window;
determining a process corresponding to the taskbar tray according to the taskbar tray window handle;
opening a process memory of the taskbar tray, and reading process path information of all icons in the taskbar tray at corresponding position offset;
matching the process path information of all the icons in the taskbar tray with the process path information of the closed icons;
acquiring an index value of an icon corresponding to the process path information of the icon matched with the process path information of the closed icon;
sending a hidden message to the taskbar tray process so that the taskbar tray process automatically hides a blank area left after the blinking icon is closed after receiving the hidden message; the hidden message contains the index value of the icon.
In a second aspect, an embodiment of the present invention provides an advertisement pop-up window blocking device, including:
the detection module is used for detecting whether the taskbar tray area has an icon or not;
the searching module is used for searching whether an icon capable of popping up an advertisement window exists in the icons according to an advertisement popup rule if the icon exists in the task bar tray area; the advertisement popup rule comprises attribute information of an advertisement window;
and the closing module is used for closing the icons capable of popping up the advertisement windows if the icons in the task bar tray area have the icons capable of popping up the advertisement windows.
With reference to the second aspect, in a first implementation manner of the second aspect, the detection module is configured to detect whether a flashing icon exists in the taskbar tray area; the searching module is used for judging whether the flickering icon is an icon capable of popping up an advertisement window according to an advertisement popup rule if the flickering icon exists in the task bar tray area; and the closing module is used for closing the flickering icon if the flickering icon is an icon capable of popping up an advertisement window.
With reference to the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the search module is configured to call a window search function provided by a Windows operating system if the taskbar tray area has an icon, and determine whether the icon existing in the taskbar tray area is an icon capable of popping up an advertisement window according to attribute information of the advertisement window included in the advertisement pop-up rule through the window search function provided by the Windows operating system.
With reference to the second aspect, or any one of the first and second implementation manners of the second aspect, in a third implementation manner of the second aspect, the attribute information of the advertisement window included in the advertisement popup rule includes: the window class name and the process name corresponding to the window.
With reference to the second aspect and any one of the first and second implementation manners of the second aspect, in a fourth implementation manner of the second aspect, the advertisement popup intercepting apparatus further includes: and the hiding module is used for automatically hiding the blank area left after the icon capable of popping up the advertisement window is closed.
With reference to the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the hiding module includes:
the handle acquisition submodule is used for acquiring a handle of a task bar tray window;
the process determining submodule is used for determining a process corresponding to the taskbar tray according to the taskbar tray window handle;
the path information reading submodule is used for opening a process memory of the taskbar tray and reading the process path information of all icons in the taskbar tray at the corresponding position offset;
the comparison submodule is used for matching the process path information of all the icons in the taskbar tray with the process path information of the closed icons;
the index value acquisition submodule is used for acquiring the index value of the icon corresponding to the process path information of the icon matched with the process path information of the closed icon;
the message sending submodule is used for sending a hidden message to the taskbar tray process so that the taskbar tray process can automatically hide a blank area left after the blinking icon is closed after receiving the hidden message; the hidden message contains the index value of the icon.
According to the method and the device for intercepting the advertisement popup window, provided by the embodiment of the invention, after the icon is detected in the task bar tray area, the icon which can pop up the advertisement window is found in the task bar tray area according to the rule of the advertisement popup window, and the icon is closed, so that the advertisement popup window in the task bar tray area can be intercepted.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of a first embodiment of an advertisement popup intercepting method according to the present invention;
FIG. 2 is a flowchart of a second embodiment of an advertisement popup intercepting method according to the present invention;
FIG. 3 is a flowchart of a third embodiment of an advertisement popup intercepting method according to the present invention;
FIG. 4 is a schematic structural diagram of an advertisement pop-up blocking device according to a first embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a second advertisement popup intercepting apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a third embodiment of the advertisement pop-up blocking device.
Detailed Description
The following describes an advertisement popup intercepting method and apparatus according to an embodiment of the present invention in detail with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, 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 invention.
Fig. 1 is a flowchart of a first embodiment of an advertisement popup intercepting method according to the present invention. As shown in fig. 1, the method of this embodiment may include:
s101, detecting whether an icon exists in a task bar tray area or not.
In the Windows series system, the taskbar (taskbar) is a small bar located at the lowest part of the desktop, and mainly comprises a start menu, an application program area, a language option band (unlockable) and a tray area.
The taskbar tray area may be viewed as a child toolbar under the taskbar. Icons of applications currently running on the system, such as QQ icons, foxmail icons, jinshanyama poison icons, etc., are typically displayed in the taskbar tray area. The taskbar tray area also typically displays information such as network connection, battery usage (suitable for a notebook or a computer with ups), volume control icons, time and date, and the like.
S102, if the icon exists in the task bar tray area, whether the icon capable of popping up an advertisement window exists in the icon is searched according to an advertisement popup rule; the advertisement popup rule comprises attribute information of an advertisement window.
In this embodiment, the attribute information of the advertisement window included in the advertisement pop-up rule may include: the window class name and the process name corresponding to the window; in addition, optionally, the method may further include: window title, window height, and window width.
Specifically, whether each icon is an icon capable of popping up an advertisement window can be determined by judging whether attribute information of each icon in the taskbar tray area conforms to the advertisement popup rule.
For example, a window class name included in information of an icon in a taskbar tray area and a process name corresponding to the window may be obtained first, the obtained window class name and the process name corresponding to the window are matched with a window class name in an advertisement popup rule and a process name corresponding to the window, if the window class name and the process name are matched in a one-to-one correspondence manner, it may be determined that the icon is an icon capable of popping up an advertisement window, otherwise, it may be determined that the icon is not an icon capable of popping up an advertisement window.
S103, if the icons in the task bar tray area contain icons capable of popping up the advertisement windows, closing the icons capable of popping up the advertisement windows.
In this embodiment, the system may close the icon capable of popping up the advertisement window by sending a message for closing the window to the system, or may close the icon by killing the process capable of popping up the icon of the advertisement window.
According to the advertisement popup intercepting method provided by the embodiment of the invention, after the icon is detected in the taskbar tray area, the icon capable of popping up the advertisement window is found in the taskbar tray area according to the advertisement popup rule, and the icon is closed, so that the advertisement popup in the taskbar tray area can be intercepted.
Fig. 2 is a flowchart of a second advertisement popup intercepting method according to an embodiment of the present invention. As shown in fig. 2, the method of this embodiment may include:
s201, detecting whether a flashing icon exists in the task bar tray area.
In the Windows series system, the taskbar (taskbar) is a small bar located at the lowest part of the desktop, and mainly comprises a start menu, an application program area, a language option band (unlockable) and a tray area.
The taskbar tray area may be viewed as a child toolbar under the taskbar. Icons of applications currently running in the system, such as QQ icons, foxmail icons, jinshanghai poison icons, etc., are typically displayed in the taskbar tray area, and some of these icons, such as QQ icons, are blinking icons. The taskbar tray area also typically displays information such as network connection status, volume control icons, time and date, etc.
S202, if the task bar tray area has the flickering icon, judging whether the flickering icon is the icon capable of popping up the advertisement window according to the advertisement popup rule.
In this embodiment, the attribute information of the advertisement window included in the advertisement pop-up rule may include: the window class name and the process name corresponding to the window; in addition, optionally, the method may further include: window title, window height, and window width.
There may be multiple icons in the taskbar tray area, some of which are blinking icons and some of which are non-blinking icons. In this embodiment, whether an icon capable of popping up an advertisement window exists can be found from the flickering icons according to the advertisement pop-up window rule, and specifically, whether the flickering icon is the icon capable of popping up the advertisement window can be determined by judging whether the attribute information of the flickering icon in the taskbar tray area conforms to the advertisement pop-up window rule.
For example, a window class name included in information of an icon in a taskbar tray area and a process name corresponding to the window may be obtained first, the obtained window class name and the process name corresponding to the window are matched with a window class name in an advertisement popup rule and a process name corresponding to the window, if the window class name and the process name are matched in a one-to-one correspondence manner, it may be determined that the icon is an icon capable of popping up an advertisement window, otherwise, it may be determined that the icon is not an icon capable of popping up an advertisement window.
S203, if the flickering icon is an icon capable of popping up an advertisement window, closing the flickering icon.
In this embodiment, the system may close the icon capable of popping up the advertisement window by sending a message for closing the window to the system, or may close the icon by killing the process capable of popping up the icon of the advertisement window.
According to the embodiment of the invention, the icon capable of popping up the advertisement window is found out from the flashing icons in the tray area of the taskbar, and the icon is closed, so that the interception of the advertisement popup window in the tray area of the taskbar has higher pertinence.
Fig. 3 is a flowchart of a third embodiment of the advertisement popup intercepting method of the present invention. As shown in fig. 3, the method of this embodiment may include:
s301, detecting whether a flashing icon exists in the taskbar tray area.
In the Windows series system, the taskbar (taskbar) is a small bar located at the lowest part of the desktop, and mainly comprises a start menu, an application program area, a language option band (unlockable) and a tray area.
The taskbar tray area may be viewed as a child toolbar under the taskbar. Icons of applications currently running in the system, such as QQ icons, foxmail icons, jinshanghai poison icons, etc., are typically displayed in the taskbar tray area, and some of these icons, such as QQ icons, are blinking icons. The taskbar tray area also typically displays information such as network connection status, volume control icons, time and date, etc.
There may be multiple icons in the taskbar tray area, some of which may be blinking icons and some of which are non-blinking icons.
S302, if the task bar tray area has the flickering icon, judging whether the flickering icon in the task bar tray area is an icon capable of popping up an advertisement window according to the attribute information of the advertisement window contained in the advertisement popup rule through a window searching function provided by a Windows operating system.
In the embodiment, if the tray area of the taskbar has a flickering icon, a window searching function provided by a Windows system is called; and judging whether the flickering icon existing in the task bar tray area is an icon capable of popping up the advertisement window or not according to the attribute information of the advertisement window contained in the advertisement pop-up window rule through the window searching function.
In this embodiment, the attribute information of the advertisement window included in the advertisement pop-up rule may include: the window class name and the process name corresponding to the window; in addition, optionally, the method may further include: window title, window height, and window width.
In this embodiment, whether an icon capable of popping up an advertisement window exists can be found from the flickering icons according to the advertisement pop-up window rule, and specifically, whether the flickering icon is the icon capable of popping up the advertisement window can be determined by judging whether the attribute information of the flickering icon in the taskbar tray area conforms to the advertisement pop-up window rule.
For example, for a flashing icon in the tray area of the taskbar, a window class name contained in the information of the icon and a process name corresponding to a window can be obtained first, the obtained window class name and the process name corresponding to the window are matched with a window class name in the advertisement popup rule and a process name corresponding to the window, if the window class name and the process name are matched in a one-to-one correspondence manner, the icon can be determined to be an icon capable of popping up an advertisement window, and if the window class name and the process name are not matched in the advertisement popup rule, the icon can be determined not to be an icon capable of popping up an advertisement window.
And S303, if the flickering icon is an icon capable of popping up an advertisement window, closing the flickering icon.
In this embodiment, the system may close the icon capable of popping up the advertisement window by sending a message for closing the window to the system, or may close the icon by killing the process capable of popping up the icon of the advertisement window.
S304, automatically hiding the blank area left after the icon capable of popping up the advertisement window is closed.
In this embodiment, after the blinking icon is closed, a blank area is left in the position corresponding to the taskbar tray area and the closed icon, which may leave a bad experience for the user.
In order to make the remaining other icons in the taskbar tray area more compact in position arrangement after the blinking icon is turned off, and to leave a better experience for the user, in this embodiment, after the blinking icon is turned off, the blank area left may be automatically hidden, which may specifically include the following steps:
a1, acquiring a handle of a taskbar tray window;
a2, determining a process corresponding to the taskbar tray according to the taskbar tray window handle;
a3, opening a process memory of the taskbar tray, and reading process path information of all icons in the taskbar tray at corresponding position offsets;
in this embodiment, the information included in the icon displayed in the taskbar tray area, such as an icon index value, an icon title, and a process path to which the icon belongs, is stored in the memory space of the taskbar tray process, and the relative position is fixed.
A4, matching the process path information of all the icons in the taskbar tray with the process path information of the closed icons;
in this embodiment, the process path information of the closed icon may be obtained and saved in the foregoing step S302.
A5, acquiring the index value of the icon corresponding to the process path information of the icon matched with the process path information of the closed icon;
a6, sending a hiding message to the taskbar tray process, so that the taskbar tray process automatically hides a blank area left after the blinking icon is closed after receiving the hiding message; the hidden message contains the index value of the icon.
In this step, a hidden message containing the index value of the icon is sent to the taskbar tray process, and the taskbar tray process receives the message and hides the area corresponding to the icon, so that a blank area cannot be left in the taskbar tray area.
In the embodiment, the icon which can pop up the advertisement window is found out from the flashing icons in the taskbar tray area, and the icon is closed, so that the interception of the advertisement popup window in the taskbar tray area is more targeted; after the icons are closed, the remaining blank area can be automatically hidden, so that other icons remaining in the taskbar tray area are more compact in position arrangement, and a better experience is left for a user.
Fig. 4 is a schematic structural diagram of an advertisement pop-up blocking device according to a first embodiment of the present invention. As shown in fig. 4, the apparatus of the present embodiment may include: a detection module 11, a lookup module 12, and a shutdown module 13, wherein,
and the detection module 11 is used for detecting whether the icon exists in the taskbar tray area.
In the Windows series system, the taskbar (taskbar) is a small bar located at the lowest part of the desktop, and mainly comprises a start menu, an application program area, a language option band (unlockable) and a tray area.
The taskbar tray area may be viewed as a child toolbar under the taskbar. Icons of applications currently running on the system, such as QQ icons, foxmail icons, jinshanyama poison icons, etc., are typically displayed in the taskbar tray area. The taskbar tray area also typically displays information such as network connection status, volume control icons, time and date, etc.
The searching module 12 is configured to search whether an icon capable of popping up an advertisement window exists in the icons according to an advertisement popup rule if the icon exists in the task bar tray area; the advertisement popup rule comprises attribute information of an advertisement window.
In this embodiment, the attribute information of the advertisement window included in the advertisement pop-up rule may include: the window class name and the process name corresponding to the window; in addition, optionally, the method may further include: window title, window height, and window width.
Specifically, whether each icon is an icon capable of popping up an advertisement window can be determined by judging whether attribute information of each icon in the taskbar tray area conforms to the advertisement popup rule.
For example, for an icon in the tray area of the taskbar, a window class name contained in information of the icon and a process name corresponding to the window can be acquired first, the acquired window class name and the process name corresponding to the window are matched with a window class name in the advertisement popup rule and a process name corresponding to the window, if the window class name and the process name are matched in a one-to-one correspondence manner, the icon can be determined to be an icon capable of popping up an advertisement window, and if the icon is not the icon capable of popping up the advertisement window, the icon can be determined to be not the icon capable of popping up the advertisement window.
And a closing module 13, configured to close the icon capable of popping up the advertisement window if the icon capable of popping up the advertisement window exists in the icons in the taskbar tray area.
In this embodiment, the system may close the icon capable of popping up the advertisement window by sending a message for closing the window to the system, or may close the icon by killing the process capable of popping up the icon of the advertisement window.
According to the advertisement popup intercepting device provided by the embodiment of the invention, after the icon is detected in the taskbar tray area, the icon capable of popping up the advertisement window is found in the taskbar tray area according to the advertisement popup rule, and the icon is closed, so that the advertisement popup in the taskbar tray area can be intercepted.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of a second advertisement popup intercepting apparatus according to an embodiment of the present invention. As shown in fig. 5, the apparatus of the present embodiment includes: a detection module 21, a lookup module 22 and a shutdown module 23, wherein,
the detection module 21 is configured to detect whether a flashing icon exists in the taskbar tray area.
In the Windows series system, the taskbar (taskbar) is a small bar located at the lowest part of the desktop, and mainly comprises a start menu, an application program area, a language option band (unlockable) and a tray area.
The taskbar tray area may be viewed as a child toolbar under the taskbar. Icons of applications currently running in the system, such as QQ icons, foxmail icons, jinshanghai poison icons, etc., are typically displayed in the taskbar tray area, and some of these icons, such as QQ icons, are blinking icons. The taskbar tray area also typically displays information such as network connection status, volume control icons, time and date, etc.
The searching module 22 is configured to, if a flickering icon exists in the taskbar tray area, determine whether the flickering icon is an icon capable of popping up an advertisement window according to an advertisement pop-up rule.
In this embodiment, the attribute information of the advertisement window included in the advertisement pop-up rule may include: the window class name and the process name corresponding to the window; in addition, optionally, the method may further include: window title, window height, and window width.
There may be multiple icons in the taskbar tray area, some of which are blinking icons and some of which are non-blinking icons. In this embodiment, whether an icon capable of popping up an advertisement window exists can be found from the flickering icons according to the advertisement pop-up window rule, and specifically, whether the flickering icon is the icon capable of popping up the advertisement window can be determined by judging whether the attribute information of the flickering icon in the taskbar tray area conforms to the advertisement pop-up window rule.
For example, for a flashing icon in the tray area of the taskbar, a window class name contained in the information of the icon and a process name corresponding to a window can be obtained first, the obtained window class name and the process name corresponding to the window are matched with a window class name in the advertisement popup rule and a process name corresponding to the window, if the window class name and the process name are matched in a one-to-one correspondence manner, the icon can be determined to be an icon capable of popping up an advertisement window, and if the window class name and the process name are not matched in the advertisement popup rule, the icon can be determined not to be an icon capable of popping up an advertisement window.
In this embodiment, optionally, if the taskbar tray area has an icon, a window search function provided by a Windows operating system is called, and whether the icon existing in the taskbar tray area is an icon capable of popping up an advertisement window is determined according to attribute information of the advertisement window included in the advertisement pop-up rule through the window search function provided by the Windows operating system.
The closing module 23 is configured to close the blinking icon if the blinking icon is an icon that can pop up an advertisement window.
In this embodiment, the system may close the icon capable of popping up the advertisement window by sending a message for closing the window to the system, or may close the icon by killing the process capable of popping up the icon of the advertisement window.
According to the embodiment of the invention, the icon capable of popping up the advertisement window is found out from the flashing icons in the tray area of the taskbar, and the icon is closed, so that the interception of the advertisement popup window in the tray area of the taskbar has higher pertinence.
The apparatus of this embodiment may be used to implement the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a third embodiment of the advertisement pop-up blocking device. As shown in fig. 6, the apparatus of this embodiment is based on the apparatus structure shown in fig. 5, and further, the advertisement popup intercepting apparatus may further include: and the hiding module 24 is used for automatically hiding the blank area left after the icon capable of popping up the advertisement window is closed.
In this embodiment, after the blinking icon is closed, a blank area is left in the position corresponding to the taskbar tray area and the closed icon, which may leave a bad experience for the user.
In order to make the remaining icons in the taskbar tray area appear more compact in position arrangement after the blinking icon is turned off, and to leave a better experience for the user, in the present embodiment, the blank area left after the blinking icon is turned off is automatically hidden.
Referring to fig. 6, optionally, the hiding module 24 may include: a handle obtaining submodule 241, a process determining submodule 242, a path information reading submodule 243, a comparison submodule 244, an index value obtaining submodule 245 and a message sending submodule 246; wherein,
and a handle acquiring submodule 241, configured to acquire a handle of the taskbar tray window.
And the process determining submodule 242 is configured to determine a process corresponding to the taskbar tray according to the taskbar tray window handle.
The path information reading sub-module 243 is configured to open a process memory of the taskbar tray, and read process path information of all icons in the taskbar tray at a corresponding position offset.
In this embodiment, the information included in the icon displayed in the taskbar tray area, such as an icon index value, an icon title, and a process path to which the icon belongs, is stored in the memory space of the taskbar tray process, and the relative position is fixed.
A comparison sub-module 244 for matching the process path information of all icons in the taskbar tray with the process path information of the closed icon.
In this embodiment, the process path information of the closed icon may be obtained and stored by the search module 22.
The index value obtaining sub-module 245 is configured to obtain an index value of an icon corresponding to the process path information of the icon matching the process path information of the closed icon.
A message sending sub-module 246, configured to send a hidden message to the taskbar tray process, so that after the taskbar tray process receives the hidden message, a blank area left after the blinking icon is closed is automatically hidden; the hidden message contains the index value of the icon.
The apparatus of this embodiment may be used to implement the technical solutions of the method embodiments shown in fig. 2 or fig. 3, and the implementation principles and technical effects are similar, which are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An advertisement popup intercepting method is characterized by comprising the following steps:
detecting whether an icon exists in a task bar tray area or not;
if the task bar tray area has the icon, whether the icon capable of popping up the advertisement window exists in the icon is searched according to the advertisement popup window rule; the advertisement popup rule comprises attribute information of an advertisement window;
and if the icons in the task bar tray area have the icons capable of popping up the advertisement windows, closing the icons capable of popping up the advertisement windows.
2. The method of claim 1, wherein the detecting whether an icon exists in a taskbar tray area comprises: detecting whether a flashing icon exists in a task bar tray area;
wherein, if the task bar tray area has an icon, then find whether there is an icon that can pop up an advertisement window in the icon according to an advertisement pop-up rule, including: if the task bar tray area has a flickering icon, judging whether the flickering icon is an icon capable of popping up an advertisement window according to an advertisement popup rule;
if the icon is an icon capable of popping up an advertisement window, closing the icon, including: and if the flickering icon is an icon capable of popping up an advertisement window, closing the flickering icon.
3. The method for intercepting an advertisement popup window according to claim 2, wherein if an icon exists in the taskbar tray area, searching whether an icon capable of popping up an advertisement window exists in the icon according to an advertisement popup window rule comprises:
if the taskbar tray area has the icon, judging whether the icon in the taskbar tray area is the icon capable of popping up the advertisement window or not according to the attribute information of the advertisement window contained in the advertisement pop-up rule through a window searching function provided by a Windows operating system.
4. The method for intercepting an advertisement pop according to any one of claims 1 to 3, wherein the attribute information of the advertisement pop included in the advertisement pop rule includes: the window class name and the process name corresponding to the window.
5. The method of any one of claims 1 to 3, wherein after the icon capable of popping up the advertisement window is closed, the method further comprises:
and automatically hiding the blank area left after the icon capable of popping up the advertisement window is closed.
6. The method for intercepting an advertisement pop-up window according to claim 5, wherein automatically hiding a blank area left after closing an icon capable of popping up an advertisement window comprises:
acquiring a handle of a task bar tray window;
determining a process corresponding to the taskbar tray according to the taskbar tray window handle;
opening a process memory of the taskbar tray, and reading process path information of all icons in the taskbar tray at corresponding position offset;
matching the process path information of all the icons in the taskbar tray with the process path information of the closed icons;
acquiring an index value of an icon corresponding to the process path information of the icon matched with the process path information of the closed icon;
sending a hidden message to the taskbar tray process so that the taskbar tray process automatically hides a blank area left after the blinking icon is closed after receiving the hidden message; the hidden message contains the index value of the icon.
7. An advertisement pop-up window intercepting apparatus, comprising:
the detection module is used for detecting whether the taskbar tray area has an icon or not;
the searching module is used for searching whether an icon capable of popping up an advertisement window exists in the icons according to an advertisement popup rule if the icon exists in the task bar tray area; the advertisement popup rule comprises attribute information of an advertisement window;
and the closing module is used for closing the icons capable of popping up the advertisement windows if the icons in the task bar tray area have the icons capable of popping up the advertisement windows.
8. The advertisement pop-up blocking device as recited in claim 7,
the detection module is used for detecting whether a flashing icon exists in the task bar tray area;
the searching module is used for judging whether the flickering icon is an icon capable of popping up an advertisement window according to an advertisement popup rule if the flickering icon exists in the task bar tray area;
and the closing module is used for closing the flickering icon if the flickering icon is an icon capable of popping up an advertisement window.
9. The advertisement pop-up blocking device as recited in claim 8,
and the searching module is used for calling a window searching function provided by a Windows operating system if the taskbar tray area has the icon, and judging whether the icon existing in the taskbar tray area is the icon capable of popping up the advertisement window or not according to the attribute information of the advertisement window contained in the advertisement pop-up rule through the window searching function provided by the Windows operating system.
10. The apparatus for intercepting an advertisement pop-up window according to any one of claims 7 to 9, wherein the attribute information of the advertisement pop-up window included in the advertisement pop-up window rule includes: the window class name and the process name corresponding to the window.
CN201510810485.5A 2015-11-19 2015-11-19 Advertisement popup intercepting method and device Active CN106776610B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510810485.5A CN106776610B (en) 2015-11-19 2015-11-19 Advertisement popup intercepting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510810485.5A CN106776610B (en) 2015-11-19 2015-11-19 Advertisement popup intercepting method and device

Publications (2)

Publication Number Publication Date
CN106776610A true CN106776610A (en) 2017-05-31
CN106776610B CN106776610B (en) 2020-04-17

Family

ID=58885968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510810485.5A Active CN106776610B (en) 2015-11-19 2015-11-19 Advertisement popup intercepting method and device

Country Status (1)

Country Link
CN (1) CN106776610B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918554A (en) * 2017-12-13 2018-04-17 福建中金在线信息科技有限公司 Pop-up method for closing and system
CN111078327A (en) * 2018-10-18 2020-04-28 奇酷互联网络科技(深圳)有限公司 Method for terminal application to remove screen advertisement, mobile terminal and readable storage medium
CN111158811A (en) * 2019-12-16 2020-05-15 珠海格力电器股份有限公司 Advertisement processing method and device, electronic equipment and storage medium
CN111753191A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN111753192A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN116048544A (en) * 2022-08-24 2023-05-02 荣耀终端有限公司 Processing method of popup advertisement, electronic equipment and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110238500A1 (en) * 2010-03-29 2011-09-29 Nhn Business Platform Corporation System and method for exposing advertisement based on keyword in real time
CN103034800A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Device and method for intercepting pop-up windows
CN103164268A (en) * 2013-04-02 2013-06-19 北京奇虎科技有限公司 System optimization method and system optimization device
CN103488490A (en) * 2013-10-08 2014-01-01 深圳市金立通信设备有限公司 Method and device for determining application corresponding to pop-up window and terminal
CN104007964A (en) * 2014-05-06 2014-08-27 珠海市君天电子科技有限公司 Method and device for advertising management in application program
CN104346569A (en) * 2013-07-31 2015-02-11 贝壳网际(北京)安全技术有限公司 Method and device for identifying malicious advertisements in mobile terminal and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110238500A1 (en) * 2010-03-29 2011-09-29 Nhn Business Platform Corporation System and method for exposing advertisement based on keyword in real time
CN103034800A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Device and method for intercepting pop-up windows
CN103164268A (en) * 2013-04-02 2013-06-19 北京奇虎科技有限公司 System optimization method and system optimization device
CN104346569A (en) * 2013-07-31 2015-02-11 贝壳网际(北京)安全技术有限公司 Method and device for identifying malicious advertisements in mobile terminal and mobile terminal
CN103488490A (en) * 2013-10-08 2014-01-01 深圳市金立通信设备有限公司 Method and device for determining application corresponding to pop-up window and terminal
CN104007964A (en) * 2014-05-06 2014-08-27 珠海市君天电子科技有限公司 Method and device for advertising management in application program

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107918554A (en) * 2017-12-13 2018-04-17 福建中金在线信息科技有限公司 Pop-up method for closing and system
CN111078327A (en) * 2018-10-18 2020-04-28 奇酷互联网络科技(深圳)有限公司 Method for terminal application to remove screen advertisement, mobile terminal and readable storage medium
CN111158811A (en) * 2019-12-16 2020-05-15 珠海格力电器股份有限公司 Advertisement processing method and device, electronic equipment and storage medium
CN111753191A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN111753192A (en) * 2020-06-04 2020-10-09 珠海豹趣科技有限公司 Advertisement popup intercepting method and device, electronic equipment and storage medium
CN116048544A (en) * 2022-08-24 2023-05-02 荣耀终端有限公司 Processing method of popup advertisement, electronic equipment and readable storage medium
CN116048544B (en) * 2022-08-24 2023-11-07 荣耀终端有限公司 Processing method of popup advertisement, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN106776610B (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN106776610B (en) Advertisement popup intercepting method and device
EP3407221B1 (en) Methods and devices for searching and displaying information on a terminal
US10621281B2 (en) Populating values in a spreadsheet using semantic cues
US11508333B2 (en) Automatically adjusting screen brightness based on screen content
US11093303B2 (en) Notification message processing method and apparatus
US11256525B2 (en) Object starting method and device
CN107256509B (en) Price comparison method and device, terminal, server and storage medium
WO2015200798A1 (en) Context menu utilizing a context indicator and floating menu bar
CN103631483B (en) Positioning method and positioning device
CN108427598B (en) Message processing method, device, terminal and storage medium
CN107291347B (en) Information display method and device
CN106850780A (en) System-level application information recommends method, device and mobile terminal
CN111753192A (en) Advertisement popup intercepting method and device, electronic equipment and storage medium
CN105335383B (en) Input information processing method and device
CN107203318A (en) The open method and device of a kind of application program
US11811718B2 (en) System and method for generating and rendering intent-based actionable content using input interface
KR102569998B1 (en) Method for managing notifications of applications and an electronic device thereof
CN106056350B (en) Method, device and system for extracting information of e-mail
US20200120204A1 (en) Method and Apparatus for Customizing Status Bar of Terminal, and Electronic Device
CN103501487A (en) Method, device, terminal, server and system for updating classifier
CN111753191A (en) Advertisement popup intercepting method and device, electronic equipment and storage medium
CN109460175B (en) Method and device for moving application icon, electronic terminal and medium
US10101903B2 (en) Information search
US11010042B2 (en) Display of different versions of user interface element
CN109840113B (en) Application data processing method and equipment, storage medium and terminal thereof

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
TA01 Transfer of patent application right

Effective date of registration: 20181214

Address after: 519031 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province

Applicant after: Zhuhai Leopard Technology Co.,Ltd.

Address before: 519070, six level 601F, 10 main building, science and technology road, Tangjia Bay Town, Zhuhai, Guangdong.

Applicant before: Zhuhai Juntian Electronic Technology Co.,Ltd.

Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant