| View previous topic :: View next topic |
| Author |
Message |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Tue Mar 02, 2010 6:20 am Post subject: Killing Application Popups |
|
|
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 |
|
 |
jl34567
Joined: 03 Jan 2010 Posts: 262
|
Posted: Tue Mar 02, 2010 6:25 am Post subject: |
|
|
| Do all of the popups have the window title above? |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Mar 02, 2010 6:26 am Post subject: |
|
|
| u need a loop or settimer to keep running the code to check |
|
| Back to top |
|
 |
randallf
Joined: 06 Jul 2009 Posts: 678
|
Posted: Tue Mar 02, 2010 7:42 am Post subject: |
|
|
| Anonymous wrote: | | u need a loop or settimer to keep running the code to check |
thanks wasn't sure about that |
|
| Back to top |
|
 |
mrbounce Guest
|
Posted: Fri Sep 17, 2010 7:08 am Post subject: auto close avira antivir ads |
|
|
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
|
Posted: Fri Sep 17, 2010 9:00 am Post subject: |
|
|
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 ...  |
|
| Back to top |
|
 |
|