New Window or Process Notification VB6 - TechRepublic
General discussion
February 8, 2006 at 04:56 AM
w01@

New Window or Process Notification VB6

by w01@ . Updated 20 years, 5 months ago

In Visual Basic 6 (not .Net) is there anyway to get NOTIFICATION that a new window or process has just started and that a window’s title has just changed even if it’s handle has not?
This is for a small program that watches for new processes or new window titles and then takes some action. It presently uses enumwindowproc and then compares the handles and titles to the previous ones to find new handles and new titles.
The program runs all the time with a timer calling the watch function every ms. It still misses some processes and 99.99% of the time there are no new processes or new titles so calling it every ms wastes a lot of cpu time.
Any help will be appreciated. Thank you.

This discussion is locked

All Comments