enigo-rs / enigo

Cross platform input simulation in Rust
MIT License
892 stars 95 forks source link

win, macOS: Allow marking events created by enigo #278

Closed pentamassiv closed 1 month ago

pentamassiv commented 1 month ago

Sometimes it can be useful to be able to distinguish events that were simulated by enigo from other events. This can now be done on Windows and macOS. By default they are marked with the arbitrary value 100. There is now a setting you can use to chose a different value for it. Have a look at the Settings struct.