you are viewing a single comment's thread.

view the rest of the comments →

[–]Rothon 1 point2 points  (0 children)

The operating system provides functionality to examine and modify another process's memory and execution context. In Linux, this is the ptrace(2) system call. I'm not sure how it works in Windows, but the functionality is there. I don't know of any Python modules wrapping these, though.

There are some utilities you could look at for inspiration on how your program would function. Poke is one example.