如何设置“下划线",后跟一个字符以发送另一个密钥 [英] How to set `underline` followed by a character to send another key
问题描述
当我使用以下命令时,autohotkey会显示错误:无效的热键".有什么办法可以解决?
When I use the following , autohotkey says 'Error:Invalid hotkey". Is there any way to fix it?
_t::T
推荐答案
AutoHotkey具有 Hotstrings 和 Hotkeys .
AutoHotkey has Hotstrings and Hotkeys.
热字符串
您所拥有的是一个热键"(例如键盘上的一个键).由于没有这样的密钥,因此确实是一个错误.那么,您想要什么呢?是否要键入_t,后跟空格,制表符或其他Endcharacter,并将其替换为T?在这种情况下,它是::_t::T
,因此您需要以:
开始该行.
有关Hotstrings和各种选项的更多信息,请参见 https://autohotkey.com/docs/Hotstrings.htm (例如,您可以让它发送T,而无需键入Endcharacter).
What you have there is a "Hotkey" (e.g. a key on keyboard). As there is no such key it is indeed an error. So what do you want, do you want to type _t followed by a space, tab or other Endcharacter and have it replaced by T? In that case it is ::_t::T
so you need to start the line with a :
More about Hotstrings and various options here https://autohotkey.com/docs/Hotstrings.htm (you can have it send T without the need for typing an Endcharacter for example).
热键
如果您想同时按 _ 和 t 并发送T作为热键,则您应该使用 & 就像_ & t::T
有关热键的更多信息,请参见 https://autohotkey.com/docs/Hotkeys.htm#combo
If you want to press _ and t at the same type and have it send T that is a Hotkey and you should us a Custom Combination by using & like so _ & t::T
More information on Hotkeys here https://autohotkey.com/docs/Hotkeys.htm#combo
这篇关于如何设置“下划线",后跟一个字符以发送另一个密钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!