想请问,如何实现将 ¥¥ 字符自动替换为 $$ (用于中英混输时的自动纠错)
下面两个是我仿照示例 ::ftw::Free the whales 写的,但是都没有效果,如果尝试 reload 还会提示 reload失败。
Code: Select all
::¥::`$
::¥¥::`$`$
Moderators: tmplinshi, arcticir
Code: Select all
::¥::`$
::¥¥::`$`$
Code: Select all
;----------------------
:*:¥¥::
sendinput,{Text}$$
;- OR
:*:¥::$
;----------------------
:*:ftw::Free the whales
;- OR this , ftw then ENTER
::ftw::Free the whales
;----------------------
多谢您的回复!不过我试了一下,没有成功,输入 ¥ 后没有任何反映。我也安装了最新的版本 v1.1.33.06,并没有什么不同。garry wrote: ↑14 Mar 2021, 05:10Code: Select all
;---------------------- :*:¥¥:: sendinput,{Text}$$ ;- OR :*:¥::$ ;---------------------- :*:ftw::Free the whales ;- OR this , ftw then ENTER ::ftw::Free the whales ;----------------------
Code: Select all
:*:¥::
sendinput,{U+0024}
I think the problem is at the first line.
Code: Select all
:*:a::
sendinput,{U+0024}
Code: Select all
shift & 4::
{
Sleep, 50
temp := clipboard
clipboard := "$"
ClipWait
Send ^v
clipboard := temp
}
Code: Select all
:*:简::
sendinput,这是一行简化的文字
return
Code: Select all
:*:`$::
sendinput,{U+0024}
return
直接接管shift 4 也挺好的fwejifjjwk2 wrote: ↑14 Mar 2021, 22:09用剪貼簿暴力解決
Code: Select all
shift & 4:: { Sleep, 50 temp := clipboard clipboard := "$" ClipWait Send ^v clipboard := temp }
Code: Select all
shift & 4::sendinput {text}$
Code: Select all
:*:ftw::Free the whales
Code: Select all
::ftw::Free the whales
推荐看那本《论帮助手册的重要性》mikelyou wrote: ↑15 Mar 2021, 00:02非常感谢几位大佬,问题解决啦。
顺便,下面两种代码有什么区别呀?Code: Select all
:*:ftw::Free the whales
Code: Select all
::ftw::Free the whales
Users browsing this forum: No registered users and 17 guests