Module autopilot::key[][src]

This module contains functions for controlling the keyboard.

Structs

Character
Code

Enums

Flag

Device-independent modifier flags.

KeyCode

Device-independent key codes.

Traits

KeyCodeConvertible

Functions

tap

Convenience wrapper around toggle() that holds down and then releases the given key and modifier flags. Delay between pressing and releasing the key can be controlled using the delay_ms parameter.

toggle

Holds down the given key or keycode if down is true, or releases it if not. Characters are converted to a keycode corresponding to the current keyboard layout. Delay between pressing and releasing the modifier keys can be controlled using the modifier_delay_ms parameter.

type_string

Attempts to simulate typing a string at the given WPM, or as fast as possible if the WPM is 0.