Kariyann71 Posted August 29, 2018 Posted August 29, 2018 Hi, I'm trying to use a virtual keyboard to send keystroke to DCS. I use this kind of C# code : ---------------------------- public void ButtonPressNumPad1() { IS.Keyboard.KeyPress(WindowsInput.Native.VirtualKeyCode.NUMPAD1); } ---------------------------- When I press my virtual keyboard numpad, numbers appear in bloc note. Unfortunately, nothing append in DCS while I've correctly configured key binding in DCS. Do you have any idea ? Thanks Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3 HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick
Ranma13 Posted August 29, 2018 Posted August 29, 2018 Use InputSimulatorPlus instead: https://github.com/TChatzigiannakis/InputSimulatorPlus I tried it with the original InputSimulator and confirmed that it doesn't work with DCS, but InputSimulatorPlus works: This fork supports scan codes, making it compatible with many applications that the original library does not support.
Kariyann71 Posted August 31, 2018 Author Posted August 31, 2018 I'm unable to get this version works. Get assembly trouble in Unity. Any advise ? Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3 HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick
Ranma13 Posted August 31, 2018 Posted August 31, 2018 You need to provide more information on what the error is.
Kariyann71 Posted September 1, 2018 Author Posted September 1, 2018 That’s right. But I solved my problem. Thank you for the advise on input simulator plus Ranma, this works perfectly with it. Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3 HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick
Recommended Posts