Is there a way to do it that is neater than this:
Code: Select all
#1::
#2::
#3::
#4::
#5::
#6::
#7::
#8::
#9::
Code:=0x2776 ;+Base in hexadecimal, corresponds to character ❶
Code+=HotkeyNumber-1 ; Adds pressed number to Code and substracts 1 to get the value of ❶-❾
Code:=Format("{:X}", Code) ; Transforms Code to hex
SendInput, {U+%Code%} ; Pastes as character carácter ❶-❾
Return
I am sure there must be.. or we really have to code 9 hotkeys for the 9 digits? I am sure there must be also a way to shorten the rest of the code, more elegantly. I have had problems adding up two hexadecimal numbers, hence the Format line.
Any ideas?