AutoHotkey Community

It is currently May 27th, 2012, 1:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 21st, 2009, 10:29 pm 
Offline

Joined: June 20th, 2009, 8:55 pm
Posts: 19
Hello,

how do I execute a function whenever a new window opens?

I want to automatically close certain dialogs (e.g., the ads from Avira AntiVir). I can of course use busy waiting and use IfWinExists every 500ms or whatever, but that's rather inellegant.

Can OnMessage be used for that, somehow?

Thanks!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 10:39 pm 
Offline

Joined: October 7th, 2006, 4:50 pm
Posts: 3157
Location: MN, USA
Tips N Tricks


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 11:11 pm 
Offline

Joined: June 20th, 2009, 8:55 pm
Posts: 19
That's it, thanks a lot.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], bobbysoon, iDrug, Tipsy3000, Yahoo [Bot] and 17 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