Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,6 @@
|
|||
import autopy
|
||||
autopy.key.type_string("Hello, world!") # Prints out "Hello, world!" as quickly as OS will allow.
|
||||
autopy.key.type_string("Hello, world!", wpm=60) # Prints out "Hello, world!" at 60 WPM.
|
||||
autopy.key.tap(autopy.key.Code.RETURN)
|
||||
autopy.key.tap(autopy.key.Code.F1)
|
||||
autopy.key.tap(autopy.key.Code.LEFT_ARROW)
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
>>> import pyautogui
|
||||
>>> pyautogui.typewrite('Hello world!') # prints out "Hello world!" instantly
|
||||
>>> pyautogui.typewrite('Hello world!', interval=0.25) # prints out "Hello world!" with a quarter second delay after each character
|
||||
>>> pyautogui.press('enter') # press the Enter key
|
||||
>>> pyautogui.press('f1') # press the F1 key
|
||||
>>> pyautogui.press('left') # press the left arrow key
|
||||
>>> pyautogui.keyDown('shift') # hold down the shift key
|
||||
>>> pyautogui.press('left') # press the left arrow key
|
||||
>>> pyautogui.keyUp('shift') # release the shift key
|
||||
>>> pyautogui.hotkey('ctrl', 'shift', 'esc')
|
||||
Loading…
Add table
Add a link
Reference in a new issue