示例#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)