gpt4 book ai didi

text - AutoHotKey:即时文本替换

转载 作者:行者123 更新时间:2023-12-04 13:28:13 25 4
gpt4 key购买 nike

我的 AutoHotKey 脚本的一部分替换了 @@用我的电子邮件地址。目前,我这样做:

::@@::
SendInput, example@domain.com
return

足够简单,它运行得相当好,但您需要在替换之前按下空格/逗号/句号/等。有没有办法在没有任何进一步交互的情况下立即替换它——只要符合条件就替换它?

关注 the AutoHotKey documentation , 我试过了:
StringReplace, var_Email, var_Email, @@, example@domain.com, All

但它只是清除 @@ .

最佳答案

您正在热字符串中寻找 * 选项。此选项会在没有额外键的情况下检测到字符串后立即替换字符串。

:*:@@::example@domain.com

将实现你正在寻找的。

选项的文档位于此处: http://www.autohotkey.com/docs/Hotstrings.htm

关于text - AutoHotKey:即时文本替换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12706661/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com