Reputation: 1
Full question is: «Where is to get a Python implementation of handling the window frame stream of a process ran by subprocess with the CREATE_NO_WINDOW flag in Windows?». I need a function in this form (pseudocode):
def handle_stream(pid, callback):
while psutil.pid_exists(pid):
<wait for new frames from window created by process with the PID>
bitmap = <get bitmap>
callback(bitmap)
To do this, you need to have a lot of experience in WinAPI development, which I don't have. Experts, help!
The idea of using Mss and getting window borders is certainly not appropriate here. There is no solution on the Internet (at least written in Python).
Upvotes: 0
Views: 68