AutoHotkey Community

It is currently May 27th, 2012, 4:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: March 2nd, 2010, 7:20 am 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
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!!!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2010, 7:25 am 
Offline

Joined: January 3rd, 2010, 6:33 am
Posts: 262
Do all of the popups have the window title above?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2010, 7:26 am 
u need a loop or settimer to keep running the code to check


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2010, 8:42 am 
Offline

Joined: July 6th, 2009, 9:58 pm
Posts: 678
Anonymous wrote:
u need a loop or settimer to keep running the code to check


thanks wasn't sure about that


Report this post
Top
 Profile  
Reply with quote  
PostPosted: September 17th, 2010, 8:08 am 
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
   }
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 17th, 2010, 10:00 am 
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 ... :)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Mickers, rbrtryn and 66 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group