Monitor Clipboard changes and trigger related actions
Project description
clipboard_monitor
Clipboard Monitor will monitor the clipboard changes and trigger register events. It's very easy to use, for details please refer below commands
Usages
import clipboard_monitor
from PIL import Image, ImageGrab
def print_text(text):
print("got text")
print(text)
def print_files(files):
print("got files")
print(files)
def print_image(image):
print("got image")
image = ImageGrab.grabclipboard()
image.save("./test.png")
clipboard_monitor.on_update(print)
clipboard_monitor.on_text(print_text)
clipboard_monitor.on_files(print_files)
clipboard_monitor.on_image(print_image)
clipboard_monitor.wait()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for clipboard_monitor-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac9856ea876995817de8e89e000fdf791c6187ffb7ba6c8afc81ccb0dffd0ce5 |
|
MD5 | 67b992d47429b183765a6f2afae30adc |
|
BLAKE2b-256 | cf9ff83ded6597d1b7545ac765939c5b372f0b1fe7d0b30acf96a6a97b5be75e |