Beispiel #1
0
 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)
Beispiel #2
0
def clipboard_rect(rect: ui.Rect):
    flash_rect(rect)
    img = screen.capture_rect(rect)
    clip.set_image(img)
Beispiel #3
0
 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)