pub fn send<K: Keylike>(key: K) -> Result<(), WindowsError>
Synthesizes two events. One that presses the key, one that releases the key.
This function panics if key
was not a valid value. For example, any char
that
is above 0x0000ffff
cannot be turned into an Input
.
winput::send('C').unwrap();