Code: Select all
[Union]
#a=â
61={U+00E2}
#c=ç
63={U+00E7}
#d=δ
64={U+03B4}
#e=ê
65={U+00EA}
#g=°
67={U+00B0}
So I'm trying to get the data from the ini to dynamically create hotkeys (AltGr with the key listed (hex values, e.g. 61 = a) which will then send â as output ({U+00E2}). My reason behind this is to allow colleagues to modify their hotkeys via the ini file (which is another part of the script - which works).
#NoEnv
#SingleInstance force
#Persistent
Code: Select all
ProcessDirect()
{
iniread, varSection, AltCym.ini, Union
myArray := []
loop, parse, varSection, `n
{
if SubStr(A_LoopField, 1, 1) <> "#"
{
data := StrSplit(A_LoopField, "=")
myArray.Push({key:data[1],value:data[2]})
}
}
for each, item in myArray
{
mykey:= chr(item.key)
myval:= item.value
Hotkey <^>!%mykey%, send %myval% ;YIKES!!
}
return
}