A Python tool to monitor screen changes
监控屏幕变化的Python工具
- Select a region of the screen to monitor based on canvas in tkinter.
- Continuously monitor the selected region for changes. Do something when changes are detected, such as save the screenshot.
- Potential for future enhancements like notifications via email, QQ, WeChat, etc.
- 基于tkinter的canvas,选择要监控的屏幕区域。
- 持续监控所选区域的变化。在检测到变化时执行后续操作,如保存截图。
- 未来可能的增强功能,如通过电子邮件、QQ、微信等发送通知。
Python>=3.9
pynput
pyautogui
Pillow
- Clone the repository:
git clone https://github.com/ohownew/ScreenMonitor.git cd ScreenMonitor
- Install the required packages:
pip install -r requirements.txt
-
Run the tool:
python screen_monitor.py
-
Select the region of the screen to monitor by clicking and dragging the mouse.
-
The tool will continuously monitor the selected region. When a change is detected, a screenshot of the region will be saved as
screenshot.jpg
. -
If the selected region deviates from the cursor, change the
RectBoundary(scale_factor=100)
intoRectBoundary(scale_factor=None)
in filescreen_monitor.py