20 lines
340 B
Python
20 lines
340 B
Python
import pinPicture
|
|
import tkinter as tk
|
|
import numpy as np
|
|
|
|
import pyautogui
|
|
import keyboard
|
|
|
|
|
|
def capture_screen():
|
|
screenshot = pyautogui.screenshot()
|
|
root = tk.Tk()
|
|
image = screenshot.convert('RGBA')
|
|
pin = pinPicture.PinPicture(image, root)
|
|
root.mainloop()
|
|
|
|
|
|
keyboard.add_hotkey('F7', capture_screen)
|
|
|
|
keyboard.wait()
|