Git Product home page Git Product logo

Comments (5)

lv426hudson avatar lv426hudson commented on June 10, 2024

Turns out the text has to be "Backspace". Now works. Tried back initially as this is what dcs calls it.

from dcs-scratchpad.

rkusa avatar rkusa commented on June 10, 2024

Yeah, it is a bit tricky to find the correct key names. This is the comment in the DCS code that describes how the hotkey works:

-- hot key задается строкой вида: [modifier1+][modifier2+][modifier3+]buttonName
-- в квадратных скобках опциональные значения
-- порядок модификаторов неважен и регистр букв неважен
-- допустимые значения модификаторов: Ctrl, Alt, Shift
-- имя кнопки берется из файла KeyNames.txt
-- в качестве горячих кнопок могут быть использованы не все кнопки,
-- а только те, символы с которых вводятся без зажатой клавиши shift
-- например, кнопки '*' и '8' находятся на одной клавише
-- для хоткея нужно использовать имя '8'
-- например: "Ctrl+S", "s + Ctrl", "escape", "return", "Ctrl+Alt+N"
-- чтобы задать хоткей на кнопку + на нумпаде (в KeyNames.txt это [+]) 
-- нужно значек + экранировать символами \\
-- например хоткей на alt + [+] должен быть записан как "alt+[\\+]"
-- если написать "alt+[+]" то это будет воспринято как комбинация 3-х кнопок - alt, [ и ]

Translated to English (using DeepL):

-- the hot key is specified by a string of the form: [modifier1+][modifier2+][modifier3+]buttonName
-- optional values in square brackets
-- the order of the modifiers is not important and the case of the letters is not important
-- allowable modifiers: Ctrl, Alt, Shift
-- button name is taken from the file KeyNames.txt
-- not all buttons can be used as hot keys,
-- only those which are typed without shift key pressed
-- for example, buttons '*' and '8' are on the same key
-- the name '8' must be used for the hotkeys
-- for example: "Ctrl+S", "s + Ctrl", "escape", "return", "Ctrl+Alt+N"
-- to set hottkey for + button on numpad (in KeyNames.txt it's [+]) 
-- you must escape the + symbol with \
-- for example, the alt + [+] hottkeys should be written as "alt+[\\\+]"
-- if you write "alt+[+]" it will be taken as a combination of 3 buttons -- alt, [ and ]

Translated with www.DeepL.com/Translator (free version)

In Short: Check DCS World\dxgui\bind\KeyNames.txt to find how to reference a key and keep in mind that only the keys can be used, that work without having to press Shift (so ( cannot be used, but Shift+9 can).

@lv426hudson the numpad keys seem to be:

KEYBOARD_KP0, "[0]"
KEYBOARD_KP1, "[1]"
KEYBOARD_KP2, "[2]"
KEYBOARD_KP3, "[3]"
KEYBOARD_KP4, "[4]"
KEYBOARD_KP5, "[5]"
KEYBOARD_KP6, "[6]"
KEYBOARD_KP7, "[7]"
KEYBOARD_KP8, "[8]"
KEYBOARD_KP9, "[9]"
KEYBOARD_KP_PERIOD, "[.]"
KEYBOARD_KP_DIVIDE, "[/]"
KEYBOARD_KP_MULTIPLY, "[*]"
KEYBOARD_KP_MINUS, "[-]"
KEYBOARD_KP_PLUS, "[+]"
KEYBOARD_KP_ENTER, "enter"
KEYBOARD_KP_EQUALS, "equals"

from dcs-scratchpad.

CarlosFly74 avatar CarlosFly74 commented on June 10, 2024

Doesn't work for me in singleplayer mode :(. Great stuff though! 2.8.1 Dcs version. Could this be the problem?

from dcs-scratchpad.

rkusa avatar rkusa commented on June 10, 2024

Just tested, e.g. Ctrl+[5] for ctrl and numpad 5 works for me (both SP and MP)

from dcs-scratchpad.

CarlosFly74 avatar CarlosFly74 commented on June 10, 2024

Working!!! Thanks everything ;) .

from dcs-scratchpad.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.