Hammerhead Posted December 25, 2015 Posted December 25, 2015 (edited) Hi all, In DCS A-10C I want to use my keyboard to type into the CDU. I am using a Logitech G510 keyboard. Instead of holding down LCTRL+LWIN and then type a-z or 0-9 I would like to program the G7 key as follows: when I press it, LCTRL+LWIN should be held down. When I press it again, both keys are released. I thought this would be easy but when assigning the LCTRL+LWIN keystrokes and set them to a toggle state, what it does is: it hits both keys in rapid succession until you press G7 again and then it stops. Searched the net and found someone else has a solution but for different keys. You have to use a lua script and save this to the keyboard profile: function OnEvent(event, arg, family) if event == "G_PRESSED" and arg == 7 then ToggleState = not ToggleState if ToggleState then PressKey("lctrl") else ReleaseKey("lctrl") end end end I tried this with lctrl and it works. But what is the syntax for LWIN key? And how to program both LCTRL+LWIN pressed? Thanks EDIT: Solved. Use lgui instead of LWin. Lgui apparently is the windows key Edited December 27, 2015 by H@mmerhead Solved My rig: My YouTube Channel: https://goo.gl/mWdlQk PC Specs: Intel i9-9900 3.1GHz | GeForce RTX 4080 16GB |64 GB RAM | TrackIR5 | Pimax Crystal Light | Win10x64
Recommended Posts