lucassklp / Desktop.Robot

A library used to control your mouse and keyboard programmatically in .NET Core
MIT License
141 stars 24 forks source link

Any idea for just a single key down/up #31

Closed PaleNeutron closed 2 years ago

PaleNeutron commented 2 years ago

In my use case(for games), explicit key down/up is necessary.

BTW, explicit press time for these actions is better.

lucassklp commented 2 years ago

https://github.com/lucassklp/Desktop.Robot/blob/main/Desktop.Robot/Key.cs#L472 You can use those directional keys

Example

robot.Type(Key.Up);