Skip to content

Commit

Permalink
fix: 增加右手Win键模拟
Browse files Browse the repository at this point in the history
  • Loading branch information
snomiao committed Nov 25, 2021
1 parent 9323c55 commit ca1adb6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
19 changes: 13 additions & 6 deletions Modules/LaptopKeyboardFix.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@

if !CapsLockX
ExitApp

global WinKeySimulate := CapsLockX_Config("LKF", "WinKeySimulate", 1, "右手 \][ 模拟Windows键和 Alt + Tab, 具体用法参见LaptopKeyboardFix 模块说明,默认启用")
global FLAG_SWAP_ESC_STROKE := false

CapsLockX_AppendHelp( CapsLockX_LoadHelpFrom(CapsLockX_THIS_MODULE_HELP_FILE_PATH))

Return
Expand All @@ -37,10 +36,18 @@ $#!p::
Send #{Pause}
Return

; 对于没有 Win 键的环境,用 Ctrl + ESC 一起按来模拟 Win 键
; ] & [:: LWin【
; *] Up:: Send {Blind}]
; *!\:: Send {Blind}{Tab}
; 针对安卓对Windows的远程桌面 RD Client

; 对于没有 Win 键的环境,用 Ctrl + ESC 一起按来模拟 Win 键(不行,Win键和其它修饰键一起按打不开开始菜单。)

#if WinKeySimulate

; Windows 键模拟于 ] + [
] & [:: LWin
*] Up:: Send {Blind}]

; Alt+Tab 模拟
RAlt & \:: Send {Blind}{Tab}

; 对于没有Esc或没有 Stroke 键的键
#if CapsLockXMode
Expand Down
12 changes: 7 additions & 5 deletions Modules/LaptopKeyboardFix.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
2. 没有 Pause 键?Win + Alt + P 也能打开系统设定信息。
3. 待补充

| 模式 | 按键 | 功能 |
| ---- | :------------- | ---------------------------------- |
| 全局 | Win + Alt + P | 相当于 Win + Pause,专为笔记本定制 |
| 全局 | 右 Ctrl 按一下 | 会按一下 Menu 弹出菜单 |
| 全局 | 按住右 Menu | 会按住 Ctrl,此时可以与其它键组合 |
| 模式 | 按键 | 功能 |
| ---------------- | :------------------------------------ | ---------------------------------- |
| 全局 | Win + Alt + P | 相当于 Win + Pause,专为笔记本定制 |
| 全局 | 右 Ctrl 按一下 | 会按一下 Menu 弹出菜单 |
| 全局 | 按住右 Menu | 会按住 Ctrl,此时可以与其它键组合 |
| Win 键模拟启用后 | ] 按住同时,[ 按下 | 相当于按 Win 键 |
| Win 键模拟启用后 | RAlt+\| 相当于按 Alt+Tab 只不过在右手 |

0 comments on commit ca1adb6

Please sign in to comment.