Here I am, with my first screenshot after much struggle and also much fun.
rio(4) really gave the whole solution to the "capture a window" challenge :)