You are on page 1of 1

#https://stackabuse.

com/guide-to-pythons-keyboard-module/
# keyboard.write(message, [delay]) - writes a message, with or without a delay.
# keyboard.wait(key) - blocks the program until the key is pressed. The key is
passed as a string ('space', 'esc', etc.)
# keyboard.press(key) - presses a key and holds until the release(key) function
is called.
# keyboard.release(key) - releases a key.
# keyboard.send(key) - presses and releases a key.
# keyboard.add_hotkey(hotkey, function) - creates a hotkey which when pressed,
executes a function.
# keyboard.record(key) - records keyboard activity until key is pressed.
# keyboard.play(recorded_events, [speed_factor]) - replays events recorded with
keyboard.record(key) function, with an optional speed_factor.

#importación de bibliotecas
import keyboard

keyboard.write("admin")
keyboard.send("enter")
keyboard.press("alt+tab")
keyboard.release("alt+tab")

You might also like