WeMartiansAreFriendly Posted November 10, 2008 Share Posted November 10, 2008 (edited) This will auto hide the advertisement displayed in the free version of AVG 8. 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 November 10, 2008 by mrRevoked Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet() Link to comment Share on other sites More sharing options...
ludocus Posted November 10, 2008 Share Posted November 10, 2008 pretty.. cool.. If you use an unregistered version on avg.. Link to comment Share on other sites More sharing options...
Valuater Posted November 10, 2008 Share Posted November 10, 2008 (edited) [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 November 10, 2008 by Valuater Link to comment Share on other sites More sharing options...
TheSaint Posted November 11, 2008 Share Posted November 11, 2008 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) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now