lucassklp / Desktop.Robot

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

Key converted wrong on net5 console app #26

Open BartNetJS opened 2 years ago

BartNetJS commented 2 years ago

When i write keys i got a wrong output

image

The same with a string

I can see that it is depending on the keyboard. I have an Belgium Azerty keyboard. image So when i send "0" i got the "&" instead, that is the key you got on an azerty keyboerd by default (for 0 i have to press the shift key)

BartNetJS commented 2 years ago

Maybe you can have a look at this project: https://github.com/michaelnoonan/inputsimulator This is using SendInput instead of keybd_event. Also keybd_event is depreciated