I've fantasized about building a tool that sits in the background and watches the user do their work. When the tool detects a repeated sequence of actions, it pops up a GUI prompting the user to automatically turn them in to a macro. I want this to work on the OS level, not just within a single app, because I suspect it would be most useful orchestrating work between multiple apps. Has anyone found a tool like that?