I know how to get all the current windows or processes, but for some reason I'm having trouble with something that should be much simpler than that.
I want to monitor for a specific caption and then execute an action if the caption becomes visible. For example, my app will run in the background, if it sees a window named 'Outlook' then I want it to execute an action or run a function. I would also like this to be friedly with system resources, but spontanious. In other words, I don't want to hang a slow system with a low interval timer, but I want the app to react instantly to the apearence of 'Outlook'
If possible, I would like to get partial captions. As-In if part of the caption is 'Outlook'. So even if the actual caption is 'Microsoft Outlook' or 'Microsoft Outlook - Contacts' It will still fire my function.
I hope I am clear. :)
// Happy Coding