- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 https://autohotkey.com/board/topic/1257-half-qwerty-one-handed-typing/ 找到了这个脚本
此脚本的作用是将空格键重新映射为修饰符。当按住 space 时,键盘会反转,对称线位于 g 和 h 之间。因此,e 将变为 i,b 将变为 n,p 将变为 q,依此类推。如果在没有按任何其他键的情况下按下并释放空格键,则会发送一个空格。 Shift 或 Control 等修饰键可与 Half-qwerty 结合使用。
问题是,当大写锁定打开时,它不适用于大写字母。
任何帮助都会很棒!
;QWERTY half-keyboard emulator
mirror_1 = 0
mirror_2 = 9
mirror_3 = 8
mirror_4 = 7
mirror_5 = 6
mirror_q = p
mirror_w = o
mirror_e = i
mirror_r = u
mirror_t = y
mirror_a = `;
mirror_s = l
mirror_d = k
mirror_f = j
mirror_g = h
mirror_z = /
mirror_x = .
mirror_c = ,
mirror_v = m
mirror_b = n
mirror_6 = 5
mirror_7 = 4
mirror_8 = 3
mirror_9 = 2
mirror_0 = 1
mirror_y = t
mirror_u = r
mirror_i = e
mirror_o = w
mirror_p = q
mirror_h = g
mirror_j = f
mirror_k = d
mirror_l = s
mirror_n = b
mirror_m = v
;This key may help, as the space-on-up may get annoying, especially if you type fast.
Control & Space::Suspend
;These keys are optional, but they may help if you are typing on the left-hand side.
CapsLock::Send, {BackSpace}
+Capslock::Capslock
;Capslock is backspace and Shift+Capslock works for Capslock.
Space & `::Send, {-}
Space & CapsLock::Send, {Enter}
If spacebar didn't modify anything, send a real space keystroke upon release.
space::
Send {space}
return
space & 1::
space & 2::
space & 3::
space & 4::
space & 5::
space & q::
space & w::
space & e::
space & r::
space & t::
space & a::
space & s::
space & d::
space & f::
space & g::
space & z::
space & x::
space & c::
space & v::
space & b::
space & `;::
space & ,::
space & .::
space & /::
space & 6::
space & 7::
space & 8::
space & 9::
space & 0::
space & y::
space & u::
space & i::
space & o::
space & p::
space & h::
space & j::
space & k::
space & l::
space & n::
space & m::
;Determine the mirror key, if there is one:
if A_ThisHotkey = space & `;
MirrorKey = a
else if A_ThisHotkey = space & ,
MirrorKey = c
else if A_ThisHotkey = space & .
MirrorKey = x
else if A_ThisHotkey = space & /
MirrorKey = z
else ; To avoid runtime errors due to invalid var names, do this part last.
{
StringRight, ThisKey, A_ThisHotkey, 1
StringTrimRight, MirrorKey, mirror_%ThisKey%, 0 ; Retrieve "array" element.
if MirrorKey = ; No mirror, script probably needs adjustment.
return
}
Modifiers =
GetKeyState, state1, LWin
GetKeyState, state2, RWin
state = %state1%%state2%
if state <> UU ; At least one Windows key is down.
Modifiers = %Modifiers%#
GetKeyState, state1, Control
if state1 = D
Modifiers = %Modifiers%^
GetKeyState, state1, Alt
if state1 = D
Modifiers = %Modifiers%!
GetKeyState, state1, Shift
if state1 = D
Modifiers = %Modifiers%+
Send %Modifiers%{%MirrorKey%}
return
请注意,AutoHotKey 变量名称不区分大小写。
最佳答案
; Associative array that mirrors the left and right side of the keyboard.
keyA := {"1" : "0"
,"2" : "9"
,"3" : "8"
,"4" : "7"
,"5" : "6"
,"q" : "p"
,"w" : "o"
,"e" : "i"
,"r" : "u"
,"t" : "y"
,"a" : ";"
,"s" : "l"
,"d" : "k"
,"f" : "j"
,"g" : "h"
,"z" : "/"
,"x" : "."
,"c" : ","
,"v" : "m"
,"b" : "n"
,"0" : "1"
,"9" : "2"
,"8" : "3"
,"7" : "4"
,"6" : "5"
,"p" : "q"
,"o" : "w"
,"i" : "e"
,"u" : "r"
,"y" : "t"
,";" : "a"
,"l" : "s"
,"k" : "d"
,"j" : "f"
,"h" : "g"
,"/" : "z"
,"." : "x"
,"," : "c"
,"m" : "v"
,"n" : "b"}
; Make Hotkeys
for index, value in keyA
Hotkey, % "$*" index, FlipFlop, On
return
; Disables space from being sent if it's held down for more than 300ms
$*Space::
KeyWait, Space, T0.3
if (ErrorLevel = 1)
KeyWait, Space
Else
Send, {Space}
return
; Removes the hook and wildcard modifiers
FlipFlop:
StringReplace, hk, A_ThisHotkey, % "$*"
; If space is held
if GetKeyState("Space", "P")
; Send the mirror of the keys along with any held modifiers
Send, % "{Blind}" keyA[hk]
Else
; Send the actual key pressed along with modifiers
Send, % "{Blind}" hk
return
关于keyboard - 我可以让这个 AutoHotKey qwerty-half 键盘脚本在大写锁定状态下工作吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44169632/
所以我正在运行 MySQL 5.1.4 版,我试图通过四舍五入的值来选择 distinct,它工作得很好,除了它把数字四舍五入,比如 12.5 到 12 而不是 13。我试过的列都是double型的。
我正在尝试解决 Media Player seekTo() 方法的问题,该方法在前进/后退远程按钮按下事件时被调用,但出现此错误: 使用以下经过编辑的 smali 尝试将 long 参数转换为 int
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我想在我的网络中做最大池化,像这样: 我的网络是一维的(你可以认为上面的例子是一个句子有 6 个词,而每个词有 3 个嵌入)我不知道特征的长度(不是每个句子都有相同的长度),所以我不能' t 在 tf
好的,所以如果一个字节是 8 位,那么半字节就是 4 位。并且您可以将四分之一字节作为 2 位(尽管我想,如果有的话,它会被称为双位)。 虽然这是一致的,但如果我使用这个词,有人会感到困惑(或惊讶)吗
我有一个简单的算法,可以清除从半个字符串到末尾的空格。这是: char a[] = "abc "; /* The string to string to trim. */ printf
据我所知,在 Linux 中有许多机制可以实现 bottom-halves: 软中断 任务 工作队列 线程中断 ( request_threaded_irq() ) 它们在可调度性方面都有自己的特点。
请看下图: 客户端发起半关闭请求并得到确认,如果我没有误解什么是半关闭,客户端应该不能发送之后的任何数据,那么它如何发送回来ACK 之后。 最佳答案 发送的不是客户端数据,它是在客户端执行shutdo
这似乎是一个基本问题,我不知道以前是否有人问过它: 我有这个if脚本中的语句: if (date('H') closing) { 基本上它是一个商业脚本。这与商店何时关门有关。 6点、7点等 该变量
谁能告诉我如何使右上 容器和右下 容器具有相同的高度并将红色容器垂直拆分50-50%。不管里面的内容是什么。我尝试拉伸(stretch)内容并将它们包裹起来,同时保持 flex-direction:
我一直在 flutter 中摆弄列表,一切都很好。我开始理解整件事的逻辑。 现在我想做一个像这样的简单布局: 我的问题是我找不到制作第一行的方法。我试图告诉 Row 让它的两个 child 分一半,不
我有一个非常简单的布局,我无法让它看起来像我想要的那样。这是一个带有按钮和开关的线性布局。我希望它们显示在另一个之上,但我希望它们的宽度是父布局的一半。 |--LinearLayout--------
我们被困在一个(不幸的是)使用浮点数而不是十进制值的数据库中。这使得四舍五入有点困难。考虑以下示例(SQL Server T-SQL): SELECT ROUND(6.925e0, 2) -->
我的图表显示不正确,下面是它的显示方式和假定的显示方式: 显示方式: 它的样子: 我的html代码: 我的 typescript 组件代码: var data = { dat
我需要对数字进行“半舍入”并保留 (.5),例如: 如果数字 = (9115.7) 则 (9116) 如果数字 = (9115.5) 则 (9115.5) 如果数字 = (9115.3) 则 (911
Game Boy Z80 CPU 有一个半进位标志,我似乎找不到太多关于何时设置/清除它的信息。 到目前为止我所理解的是,任何 8 位加、减、移位或旋转操作(可能还有其他操作?)将其设置为结果的第 4
这两个公式有什么区别 mid = low + (high - low) / 2; mid = (high + low) / 2; 最佳答案 在第二版中,如果high + low大于int的最大值(假设
我意识到该网站上回答了类似的问题,但我无法从这些问题中找到解决方案。例如,我的网站上有 10,000 个帖子,每个帖子都有 50 条评论。我应该创建 1.一张表有 500.000 行(评论) 或 2
MTKView 的默认颜色格式是 bgra8Unorm。我更喜欢使用 half 格式(参见:OpenEXR)。我不清楚 Metal 提供的各种格式中的哪些对应于 half? 最佳答案 你应该使用 rg
让我先展示这个网页的代码,然后试着解释我的问题。 h1 { border: solid; padding-top: 0px; margin-top: 0px; } body { pad
我是一名优秀的程序员,十分优秀!