简体   繁体   English

当扫描码 map 注册表中的按钮(Win、Ctrl、Alt)被阻止时,如何在 Autohotkey 中将 ctrl+c 重新映射为 ctrl+c?

[英]How can I remap ctrl+c to ctrl+c in Autohotkey when the buttons (Win, Ctrl, Alt) are blocked in scancode map registry?

I have my keyoard CTRL button blocked in scancode map registry, but in the other side I need to enable the combination ctrl+c and ctrl+v for the administrator, So I wrote this part of code but it's not working:我在扫描码 map 注册表中阻止了我的键盘 CTRL 按钮,但另一方面我需要为管理员启用 ctrl+c 和 ctrl+v 组合,所以我编写了这部分代码但它不起作用:

^c:: ^c::

Send, ^c发送,^c

return返回

What do you think I can do to resolve this issue?你认为我能做些什么来解决这个问题?

FYI: I've tried also to add $ before ^c to be able to send the same combination仅供参考:我也尝试在 ^c 之前添加 $ 以便能够发送相同的组合

If you have the CTRL button blocked, ^c:: will not be detected.如果您阻止了CTRL按钮,则不会检测到^c:: Try an alternative such as this.....试试这样的替代方案......

!c:: ; This is ALT C
Keywait, %A_ThisHotkey% ; Waits for the above hotkey to be released. 
Send, ^c
return

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

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