Forgot password?
 Create new account
View 98|Reply 1

[AutoHotKey]键盘横排数字重映射到符号

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2022-8-18 09:35:52 |Read mode
autohotkey.com/

把横排数字 1 2 3 4 5 6 7 8 9 0
分别映射为 ! @ # $ % ^ & * ( )
的代码
  1. 1::
  2. Send, {!}
  3. return
  4. 2::
  5. Send, @
  6. return
  7. 3::
  8. Send, {#}
  9. return
  10. 4::
  11. Send, $
  12. return
  13. 5::
  14. Send, `%
  15. return
  16. 6::
  17. Send, {^}
  18. return
  19. 7::
  20. Send, &
  21. return
  22. 8::
  23. Send, *
  24. return
  25. 9::
  26. Send, (
  27. return
  28. 0::
  29. Send, )
  30. return
Copy the Code
注: AutoHotKey区别了1和Numpad 1, 所以在以上代码运行时, 仍可以用数字键盘(九宫格)来输入数字(关闭NumLock时).
参考资料:Escape Sequences

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

 Author| hbghlyj Posted at 2022-9-19 03:09:29
AutoHotKey如何实现按三次句号替换成省略号(类似于MS Word的autocorrect选项)?

手机版Mobile version|Leisure Math Forum

2025-4-20 22:04 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list