Jump to content
Sign in to follow this  
WeMartiansAreFriendly

Auto hide Free AVG 8 Advertisement Banner

Recommended Posts

WeMartiansAreFriendly

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()

Share this post


Link to post
Share on other sites
ludocus

pretty.. cool..

If you use an unregistered version on avg..

Share this post


Link to post
Share on other sites
Valuater

[rant]

Someone needs to write this in C++ and we can do mass mailings to everyone.

... kinda make up a little for all of those false positives on all Autoit programs!

... Lets see them call ALL C++ Progs a virus!

[/rant]

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
TheSaint

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.


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.