Why my StringReplace don't work?

梦想与她 提交于 2019-12-25 09:41:08

问题


I want to replace the comma character into another based on order Chr

^Numpad4::
StringReplace, clipboard, clipboard,%Chr(44),%Chr(45), All
Return

But why I cannot use it?Are any wrong in my code?


回答1:


In a command's parameters you have to use expression syntax:

^Numpad4::
StringReplace, clipboard, clipboard, % Chr(44), % Chr(45), All
; MsgBox, %clipboard%
Return

Without the percent sign and the space, Chr(44) is a literal string.



来源:https://stackoverflow.com/questions/43331263/why-my-stringreplace-dont-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!