def screenshot_window_clipboard(): '''takes a screenshot of the window and saves it to the clipboard''' img = screen.capture_rect(ui.active_window().rect) clip.set_image(img)
def clipboard_rect(rect: ui.Rect): flash_rect(rect) img = screen.capture_rect(rect) clip.set_image(img)
def screenshot_clipboard(): '''takes a screenshot of the entire screen and saves it to the clipboard''' img = screen.capture_rect(screen.main_screen().rect) clip.set_image(img)