https://github.com/esporttoys/precisionthreefingerdrag
Three-finger drag for Windows Precision Touchpads via SendInput and RawInput
https://github.com/esporttoys/precisionthreefingerdrag
autoit precision-touchpad rawinput sendinput three-finger-drag windows
Last synced: 1 day ago
JSON representation
Three-finger drag for Windows Precision Touchpads via SendInput and RawInput
- Host: GitHub
- URL: https://github.com/esporttoys/precisionthreefingerdrag
- Owner: EsportToys
- License: gpl-3.0
- Created: 2023-03-22T15:32:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-22T15:43:33.000Z (about 3 years ago)
- Last Synced: 2025-01-05T14:19:44.796Z (over 1 year ago)
- Topics: autoit, precision-touchpad, rawinput, sendinput, three-finger-drag, windows
- Language: AutoIt
- Homepage:
- Size: 15.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PrecisionThreeFingerDrag
This simple AutoIt script uses the RawInput API to read `DIGITIZER - TOUCH PAD` input reports and the SendInput API to send mouse motion and clicks.
NOTE: only tested on Microsoft Surface touchpads, it currently assumes a hard-coded struct format that I reverse-engneered by experimenting with [RawInputViewer](https://github.com/EsportToys/RawInputViewer)
## Instructions
1. Download AutoIt from https://autoitscript.com
2. Run script with AutoIt by dragging `finger.au3` over onto AutoIt3_x64.exe
## Dependency
This does not use any UDFs, script and API calls are entirely self-contained. Only the AutoIt executable is needed.
## To-Do
- [ ] Add compatibility checks for present trackpads on startup (needs to report at least three fingers)
- [ ] Use `HidP-*` winapi calls to parse the raw data strings