예제 #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)
예제 #2
0
파일: screenshot.py 프로젝트: eprev/talon
def clipboard_rect(rect: ui.Rect):
    flash_rect(rect)
    img = screen.capture_rect(rect)
    clip.set_image(img)
예제 #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)