AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Killing Application Popups

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Tue Mar 02, 2010 6:20 am    Post subject: Killing Application Popups Reply with quote

Hello,

Should this kill any popup with the appropriate window title? Avira is great but the ads are annoying... this doesn't seem to work.


Code:
#Persistent
#IfWinExist, Notifier of Avira
{
   WinClose, Notifier of Avira
}
Return


Did I do something wrong or is there something else I should fire it from instead?

Thank you!!!
Back to top
View user's profile Send private message
jl34567



Joined: 03 Jan 2010
Posts: 262

PostPosted: Tue Mar 02, 2010 6:25 am    Post subject: Reply with quote

Do all of the popups have the window title above?
Back to top
View user's profile Send private message AIM Address
Guest






PostPosted: Tue Mar 02, 2010 6:26 am    Post subject: Reply with quote

u need a loop or settimer to keep running the code to check
Back to top
randallf



Joined: 06 Jul 2009
Posts: 678

PostPosted: Tue Mar 02, 2010 7:42 am    Post subject: Reply with quote

Anonymous wrote:
u need a loop or settimer to keep running the code to check


thanks wasn't sure about that
Back to top
View user's profile Send private message
mrbounce
Guest





PostPosted: Fri Sep 17, 2010 7:08 am    Post subject: auto close avira antivir ads Reply with quote

this works for me... in case anyone needs it.
Code:
#Persistent
DetectHiddenWindows, on

SetTimer, HideAvira, 1500
HideAvira:
{
   #IfWinExist, Notifier of Avira AntiVir Personal - Free Antivirus
   {
         WinClose, Notifier of Avira AntiVir Personal - Free Antivirus
   }
}
Back to top
Guest






PostPosted: Fri Sep 17, 2010 9:00 am    Post subject: Reply with quote

If it works ok but the syntax is not correct .

#ifwinexist is for hotkeys

Quote:
Creates context-sensitive hotkeys and hotstrings. Such hotkeys perform a different action (or none at all) depending on the type of window that is active or exists.


ifwinexist

Quote:
Checks if the specified window exists.


You could use SetTitleMatchmode 2 so you do not need the exact title to match .

I would have used a loop with winwait instead of settimer but that is my view .....if your code works so no need to change ... Smile
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group