I've found a way to do this.

writing to a file and using /filter is out of the question, it's too slow to be executed at 50 fps ;_)