retep998 / winapi-rs

Rust bindings to Windows API
https://crates.io/crates/winapi
Apache License 2.0
1.85k stars 392 forks source link

Hi,there, does anyone know how to record drag event on windows? #1056

Open qzd1989 opened 4 months ago

qzd1989 commented 4 months ago

I only found mouse event, keyboard event.

Then I use mouse event hook: SetWindowsHookExA(WH_MOUSE_LL, ...), but I only receive move, up and down event.

so.....how to record drag event? or keep using mouse down + move + up? (I use this case but when I simulating them, it doesn't work well.)

thank you guys.