#keyboard #winapi #win #mini #down #key #hwnd

keyboard_win

A mini tools for Windows keyboard by winapi

2 releases

0.1.1 Jan 7, 2025
0.1.0 Jan 7, 2025

#972 in Hardware support

Download history 114/week @ 2025-01-01 106/week @ 2025-01-08

220 downloads per month

MIT license

3KB

keyboard_win

A mini tool send keyboard background by winapi.

example

use keyboard_win::keyboard;
use std::ffi::CString;
use winapi::um::winuser::VK_F5;
fn main() {
    let hwnd = keyboard::get_hwnd_by_win_title(CString::new("123.txt - Notepad").unwrap());
    keyboard::key_down(hwnd, VK_F5 as usize);
}

Dependencies

~175KB