1 file 80 lines, easy to adapt to your usecase, any game really
Ultrafast ultralight executable, almost zero CPU/RAM usage
Detect keyboard and mouse presses
Auto-press keys once or in a recurring loop with millisecond timings
Sorta like AutoHotKey or Razer Synapse Macros
go run main.go
https://pkg.go.dev/github.com/go-vgo/robotgo@v0.110.8
https://pkg.go.dev/github.com/robotn/gohook@v0.42.2
This entire repo and project are in the public domain, as written by me, @jakl