简体   繁体   English

XP Pentablet Config - 解码配置文件

[英]XP Pen Pentablet Config - decoding the config file

Bought 5x XP-Pen tablets for work, but the crappy drivers won't save config files properly.为工作买了 5 块 XP-Pen 平板电脑,但糟糕的驱动程序无法正确保存配置文件。 specifically i want to change the keybindings for the hardware shortcut keys Looked through the config files and identified the section of the file that governs the default shortcuts.具体来说,我想更改硬件快捷键的键绑定查看配置文件并确定管理默认快捷键的文件部分。 What i can't figure out is what governs the actual keybinding.我不知道是什么控制了实际的键绑定。

<K1 SelectID="2">1|Ctrl+S|83|31|2</K1>

i suspect the following: first digit sets the 'mode' of the button: 0 is default binding, 1 is execute a program and 2 is keyboard shortcut.我怀疑以下几点:第一个数字设置按钮的“模式”:0 是默认绑定,1 是执行程序,2 是键盘快捷键。 The following string governs what the display overlay shows when you press a key The digits control the actual keys.以下字符串控制按下键时显示覆盖显示的内容。数字控制实际键。 I thought this might be JS/DHTML key code values, but 'ctrl' is 17 in that standard, not 31.我认为这可能是 JS/DHTML 关键代码值,但在该标准中,'ctrl' 是 17,而不是 31。

<Shortcuts>
                    <K1 SelectID="2">1|Ctrl+S|83|31|2</K1>
                    <K2 SelectID="2">1|Ctrl+Z|90|44|2</K2>
                    <K3 SelectID="2">1|Ctrl+Y|89|44|2</K3>
                    <K4 SelectID="2">1|Ctrl+Shift+S||||3</K4>
                    <K5 SelectID="2">1|PGUP|33|329|0</K5>
                    <K6 SelectID="2">1|PGDOWN|34|337|0</K6>
                    <K7 SelectID="0"></K7>
                    <K8 SelectID="0"></K8>
                    <K9 SelectID="2">1|Ctrl+S|83|31|2</K9>
                    <K10 SelectID="2">1|Ctrl+Z|90|44|2</K10>
                    <K11 SelectID="2">1|Ctrl+Y|89|44|2</K11>
                    <K12 SelectID="2">2|0</K12>
                    <K13 SelectID="2">1|PGUP|33|329|0</K13>
                    <K14 SelectID="2">1|PGDOWN|34|337|0</K14>
                    <K15 SelectID="2">2|0</K15>
                    <K16 SelectID="2">2|0</K16>
                </Shortcuts>

If anyone is interested in the full config file, i can provide it.如果有人对完整的配置文件感兴趣,我可以提供。 Header says it is XML aparrently. Header 说它显然是 XML。

partial answer: I have an XP-Pen Artist 22E-Pro.部分答案:我有一个 XP-Pen Artist 22E-Pro。 This is for encoding the letter "a".这是用于编码字母“a”。

<K7 SelectID="2">1|A|65|30|0</K7>

You're right about the first and second entries.您对第一个和第二个条目是正确的。

<K8 SelectID="2">1|F12|123|88|0</K8>

Third entry is the JavaScript Event Keycode.第三个条目是 JavaScript 事件密钥代码。 At least for one of the keys.至少对于其中一个键。

This was enough info for adding myself F13 to F24 keys.这足以让我自己将 F13 添加到 F24 键。 So for example I changed key 8 to:例如,我将密钥 8 更改为:

<K8 SelectID="2">1|F18|129|88|0</K8>

AutoHotkey confirms that they are working. AutoHotkey 确认它们正在工作。 I have no idea, what the fourth column is about.我不知道,第四栏是关于什么的。 But I think the fifth is modifier state.但我认为第五个是修饰符 state。 With 2 meaning ctrl being pressed and 0 meaning no modifiers. 2 表示 ctrl 被按下,0 表示没有修饰符。

Haven't confirmed this, though.不过,还没有证实这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM