asweigart / pyautogui

A cross-platform GUI automation Python module for human beings. Used to programmatically control the mouse & keyboard.
BSD 3-Clause "New" or "Revised" License
10.06k stars 1.22k forks source link

Feature: pyautogui.hotkeyCopy() #469

Open asweigart opened 4 years ago

asweigart commented 4 years ago

Presses ctrl-c or whatever os-specific hotkey for copying. But also sets a test value first to ensure that something has been copied to the clipboard and raises an exception if it hasn't.

SuvanshKumar commented 3 years ago

@asweigart I think this can be done using pyperclip. Do you plan on adding pyperclip as a dependency of pyautogui?