Throwing a bunch of code at the wall to see what sticks.
Implemented untested screen capture methods for Windows and X11.