为什么我的StringReplace不起作用? [英] Why my StringReplace don't work?
本文介绍了为什么我的StringReplace不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想根据订单Chr
^Numpad4::
StringReplace, clipboard, clipboard,%Chr(44),%Chr(45), All
Return
但是为什么我不能使用它?我的代码有什么错误吗?
But why I cannot use it?Are any wrong in my code?
推荐答案
在命令的参数中,您必须使用表达式语法:
In a command's parameters you have to use expression syntax:
^Numpad4::
StringReplace, clipboard, clipboard, % Chr(44), % Chr(45), All
; MsgBox, %clipboard%
Return
在没有百分号和空格的情况下,Chr(44)是文字字符串.
Without the percent sign and the space, Chr(44) is a literal string.
这篇关于为什么我的StringReplace不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文