Kariyann71 Posted October 21, 2018 Posted October 21, 2018 Hi everybody, I'm currently working on a LeapMotion implementation for DCS VR experience. However, I encounter some problems with modified keystroke using InputSimulatorPlus. Indeed, even though I test, it seems that only the first touch is recognized by DCS. For example there is a piece of my code : public void PressButtonLCTRL_C() { //Press LCTRL sim.Keyboard.KeyDown(VirtualKeyCode.VK_C); sim.Keyboard.KeyDown(VirtualKeyCode.LCONTROL); } There, only "C" is detected by DCS. public void PressButtonLCTRL_C() { //Press LCTRL sim.Keyboard.KeyDown(VirtualKeyCode.LCONTROL); sim.Keyboard.KeyDown(VirtualKeyCode.VK_C); } There only "LCTRL" is detected. So I tried this : public void PressButtonLCTRL_C() { //Press LCTRL sim.Keyboard.ModifiedKeyStroke(VirtualKeyCode.LCONTROL, VirtualKeyCode.VK_C); } Same problem, only "LCTRL" is detected. Has anyone ever met this problem? Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3 HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick
NobiWan Posted October 23, 2018 Posted October 23, 2018 Have you tried putting some delay between the key strokes? I have no experience with InputSimulatorPros, but this has always been necessary with similar libs. I would start with 50 ms and than start making it smaller...
Kariyann71 Posted October 29, 2018 Author Posted October 29, 2018 InputSimulator Plus and modified KeyStroke Have you tried putting some delay between the key strokes? I have no experience with InputSimulatorPros, but this has always been necessary with similar libs. I would start with 50 ms and than start making it smaller... NobiWan, I tried putting delay between keystroke and sometime it’s working and sometime not. It’s weird. Jazzymanserg, I installed InputSimulatorPlus in VisualStudio using NuGet package system. Corei7 2600K 4.4Ghz OC - NVIDIA GTX 1080 Ti 11Gb - 16 Gb DDR3 HP Reverb PRO HMD - Thrusmaster TWCS + TopGun Stick
Recommended Posts