如何在浏览器中的Windows上键入Unicode字符?

时间:2016-03-23 20:36:05

标签: windows unicode char unicode-string

当我在Windows上的浏览器(Firefox)中时,我正试图找到一种键入this Unicode Character的方法。

字符串: ALT +2c60

我试过的方法:

  

无论您的语言设置如何,此方法都有效,但输入最为麻烦。

     

按住Alt键。   按数字键盘上的+(加号)键。   输入十六进制unicode值。   释放Alt键。

     

唉,这似乎需要注册表设置。它已经在我的计算机上设置,但有些读者报告说这种方法没有   为他们工作,这可能是原因。如果你不知道是什么   注册表是,请不要尝试这个。在HKEY_Current_User / Control下   面板/输入法,将EnableHexNumpad设置为“1”。如果你必须添加它,   将类型设置为REG_SZ。

     

Source

问题:如果您按住ALT并按c,浏览器会跳转到浏览器菜单。

我不满意每次在论坛等需要时从我的桌面或网站上复制粘贴此字符。我已经设置了上面引用中提到的注册表项。

当我在浏览器中时,是否有任何方法可以让我输入它?

1 个答案:

答案 0 :(得分:0)

http://granjow.net/unicode-input.html 该站点为您提供了可与AHK一起使用的AutoHotKey脚本以及已编译的exe版本。

这是源代码:

; (c) 2015 Simon A. Eugster <simon.eu@gmail.com> Public Domain
; This script listens for Shift+Ctrl+u and then shows a unicode input field.
; The unicode point (e.g. 2013 for an en dash) is then inserted in the active application.

; To run, download AutoHotkey from http://www.autohotkey.com/, save this script
; as e.g. UnicodeInput.ahk, and double-click it.

#SingleInstance force
#Persistent
;Menu, Tray, icon, unicode.ico
Menu, Tray, nostandard ; Put the following menu items on top (default: bottom)
Menu, Tray, add, Info, InfoHandler, -10
Menu, Tray, add
Menu, Tray, standard ; Add default menu items at the bottom
return

InfoHandler:
MsgBox Press Shift+Ctrl+U to get an entry field for unicode points (see decodeunicode.org for a list).`n`nAuthor: Simon A. Eugster <simon.eu@gmail.com> / granjow.net
return

+^u::
InputBox, codepoint, Unicode code point, U+
if not ErrorLevel
    Send {U+%codepoint%}
return