PC Remote Control Library
This library provides cross-platform control over computer input devices. It allows emulating keyboard and mouse inputs programmatically and managing audio devices. The library is designed for seamless integration into Rust projects, providing ergonomic APIs for all supported functionalities. Please ensure the utility binaries (nircmd.exe, SoundVolumeView.exe, svcl.exe) are present in your binary path for audio control.
Audio Device Management (for Windows OS only):
For audio device management, this library relies on several lightweight Windows utilities:
- nircmd — for setting system volume.
- SoundVolumeView (svv) — for managing default audio devices and mute/unmute operations.
- SoundVolumeCommandLine (svcl) — for retrieving current volume and mute status.
These tools are efficient and minimal, allowing fast interactions with Windows audio system without complex API integrations. You can download these utilities bundled together here: https://github.com/fuderis/rs-pc-remote/raw/main/bin
Examples:
Keyboard Device Emulation:
use ;
Mouse Device Emulation:
use ;
Media Devices Control:
use ;
use path;
Feedback:
This library distributed under the MIT license.
You can contact me via GitHub or send a message to my telegram @fuderis. This library is actively evolving, and your suggestions and feedback are always welcome!