As many of you know I'm a web developer not an application developer but one of my pet projects has given forth the need for a small application that can run in the background and close windows depending upon the window title.

For example we could have a string "xxxx" the program would check every 5/10mins for any windows containg the target string if it found one it would close it automatically.

If anyone could see their way to coing such an application I would be very gratefull.

Minimum use of resources is prefered -thanks

this will be part of a website/application I am developing and full credit etc will go to person who codes the app

ta