Getting color information from other program's window

Hi, I got a tetris program and I would like to extract from it a 2d bool array representing if the case is occupied or not, and send that to my program.

What do you think would be the easiest solution to achieve that?
Topic archived. No new replies allowed.