コード例 #1
0
ファイル: screenshot.py プロジェクト: wryrye/talon-commands
 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
ファイル: screenshot.py プロジェクト: wryrye/talon-commands
 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)