I do not know if it's possible. I am working on a program in DELPHI that has to launch certain processes when the screen of an external application changes.
What I do so far is take a screenshot of the screen and see if there are changes in it from one sequence to another, but that procedure is not very optimal, since I have to be doing continuous screenshots in case there are changes and the system slows me down, because I do not know the exact moment when the change will take place.
Any ideas?