geekhack

geekhack Projects => Making Stuff Together! => DIY Discussions ARCHIVE => Topic started by: nanu on Thu, 06 August 2009, 20:46:36

Title: Autohotkey for Tenkeyless ASCII/Unicode character input
Post by: nanu on Thu, 06 August 2009, 20:46:36
I made this Autohotkey script (http://www.autohotkey.net/~tnl/tenkeyless.ahk) for general tenkeyless keyboarding.

I use a numpad mainly for its "-"and "+" keys, which this script simply remaps:
(http://geekhack.org/attachment.php?attachmentid=3621&stc=1&d=1249606294)

Occasionally I use a numpad for ASCII/Unicode characters, so the script also lets you bring up a tiny editbox that is centered relative to the input/target window.  It expects a hexadecimal codepoint for Unicode characters, or a decimal for ASCII characters.

The interface is set to activate upon hitting Win+U:
(http://geekhack.org/attachment.php?attachmentid=3623&stc=1&d=1249609291)
To interpret the number as a Unicode character, press Enter; to interpret it as ASCII, press Tab.  Because it's hard to remember numbers, pressing F1 will run Character Map, which ultimately could be used in a hotkey instead.

I found information regarding inputting unicode on Windows (http://www.fileformat.info/tip/microsoft/enter_unicode.htm) and similar posts (http://geekhack.org/showwiki.php?title=Island:5603&do=comments&page=6) here on this forum.

This is certainly not the only way to go about it.  The essential function (http://www.autohotkey.com/forum/viewtopic.php?p=43496#43496) I took can be used in hotkeys or hotstrings, as implied in the same forum thread.