I think you will need GetForegroundWindow
, from there you can determine if the foreground window is indeed IE's. GetClassName
will return information about a window providing it the handle (HWND) of said window as parameter.
If so, then you need to grab a screenshot of it, like suggested in here.
You could also grab a screenshot of the whole display every X second, that would make it simpler.
AForge can be used for image analysis/manipulation.
I don't know if there would be a way to do this by event driven, but I think you'll need to use a Timer
and get the whole process going at a preset interval.