To disable a button in another app, you get the handle to the button and then send it a message to disable it.

To do the other work, you can inject a dll into the other app's process space, create...