simulate 0.2.0

This crate allows you to simulate keystrokes.
docs.rs failed to build simulate-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: simulate-0.3.0

simulate aims to make simulating keyboard keystrokes easy.

Progress

At the moment, only Windows is supported.

Example

simulate can be used to simulate a keyboard.

use simulate;
use simulate::Key;
use simulate::MouseButton;

// Press a key
simulate::key_press(Key::A);

// Releases it
simulate::key_release(Key::A);

// Trigger a key (press + release)
simulate::key_trigger(Key:B);

// Type single character
simulate::type_char('');

// Type a string
simulate::type_str("Hello, world!");

But it also supports the mouse.

use simulate;
use simulate::Key;

// Press a button
simulate::mouse_trigger(MouseButton::Left);

// Or scroll with the mouse wheel
simulate::mouse_wheel(120);

// You can also move the mouse
simulate::mouse_move_absolute(20, 20);