control-craft 0.1.0

Mouse and Keyboard Control Library for Windows, enabling programmatic input simulation using the Windows API.
Documentation
  • Coverage
  • 60%
    6 out of 10 items documented0 out of 7 items with examples
  • Size
  • Source code size: 10.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.6 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 24s Average build duration of successful builds.
  • all releases: 24s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • cygnixy/control-craft
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cygnixy

Mouse and Keyboard Control Library for Windows

This library provides a set of utilities to programmatically control mouse and keyboard inputs on Windows platforms. It is built using the Windows API ( windows crate) and enables seamless interaction with the system's input mechanisms. The library is designed for automation tasks, testing, and other scenarios requiring simulated user input.

Key Features

  1. Mouse Control:

    • Move the cursor to a specified screen position ( set_cursor_pos ).
    • Perform drag-and-drop operations ( drag_and_drop ).
    • Simulate mouse clicks for both left and right buttons ( click_mouse_button , click_mouse_button_left , click_mouse_button_right ).
  2. Keyboard Control:

    • Simulate key presses ( press_key ).
  3. Fine-grained Input Simulation:

    • Includes customizable delays ( thread::sleep ) to mimic real user interaction.

Example Use Cases

  • GUI Automation: Simulate user interaction for automated GUI testing.
  • Game Bot Development: Provide input simulation for gaming automation.
  • Accessibility Tools: Enable custom tools for improved accessibility and productivity.