I'm trying to use PyQt5 to detect when a specific section of the screen changes. My plan is to create an md5 hash of each image and see if they're both the same, but I can't even grab the screen successfully. This is what I have so far:
import sys
from PyQt5.QtCore import *
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
win = QApplication.activeWindow()
print(win)
For some reason, it always returns None meaning it can't find an active window. I'm somewhat competent with Python but absolutely new to PyQt5, and I'm stumped. Anyone know what I'm doing wrong?