Jump to content

Auto hide Free AVG 8 Advertisement Banner


Recommended Posts

This will auto hide the advertisement displayed in the free version of AVG 8.

Posted Image

Improvements are very welcome.

;-----------------------------------------
; Autohide Free AVG 8 Advertisement Banner
;-----------------------------------------

#NoTrayIcon ;comment this if you want a tray icon
Opt("WinTitleMatchMode", 4)
Global $sAVGClassName = "[Class:Avg8WndClass_UI]"
Global $sAVGProcessName = "avgui.exe"
Global $sHideButtonName = "Button17"
Global $sHideButtonText = "Hide notification" ; this needs to be changed to your language

Global $fNotHidden = True

While 1
    Sleep(1000)
    If ProcessExists($sAVGProcessName) And $fNotHidden Then
        If ControlGetText($sAVGClassName, "", $sHideButtonName) = $sHideButtonText Then
            $fNotHidden = False
            ControlClick($sAVGClassName, "", $sHideButtonName)
        EndIf
    ElseIf $fNotHidden = False Then
        $fNotHidden = True
    EndIf
WEnd
Edited by mrRevoked
Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()
Link to comment
Share on other sites

pretty.. cool..

If you use an unregistered version on avg..

I'm still getting updates for the Free 7.5 version, so haven't made the move to 8 yet ... especially in light of a few hiccups others had with the new version ... maybe that's why you can still get updates for the old?

Last time I checked, the free versions could be registered for free, so what are you saying here.

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...