How to input English-Character in non-English keyboard

£可爱£侵袭症+ 提交于 2019-12-11 04:29:26

问题


I'm a Chinese guy.This question trapped me very long time.This is my current method to input English-Charater ()in my Chinese-input-method:

^b::
    ClipSaved := ClipboardAll
    Clipboard=()
    Send ^v
    Clipboard := ClipSaved
Return

But,I really don't want to call the clipboard to do this thing,and the clipboard method is inconvenient to input multi-line text.Any better suggestion can give?


Note it is () but not ()


回答1:


How about sending the ASCII values for left/right parentheses?

F3::
SendInput, {ASC 40}{ASC 41}
return

Output:

()

Edit for the comments:

Say we want to use other ASCII characters, such as curly braces: {}

Their decimal representations are 123 and 125 respectively.

So

F3::
SendInput, {ASC 123}{ASC 125}
return

Gets you:

{}


来源:https://stackoverflow.com/questions/42533851/how-to-input-english-character-in-non-english-keyboard

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