summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
Diffstat (limited to 'windows')
-rw-r--r--windows/neo-vars/src/source/tools.ahk8
1 files changed, 6 insertions, 2 deletions
diff --git a/windows/neo-vars/src/source/tools.ahk b/windows/neo-vars/src/source/tools.ahk
index d248cf4..d00db25 100644
--- a/windows/neo-vars/src/source/tools.ahk
+++ b/windows/neo-vars/src/source/tools.ahk
@@ -58,7 +58,9 @@ GenRomanDigit(Pos, DigitIs, DigitTest, str0, str1, str2, str3, str4, str5) {
PressHookRoman(PhysKey, ActKey, Char) {
global
- if ((Char == "U0030") or (Char == "SN__0"))
+ if (SubStr(Char,1,1) == "P")
+ CharStarDown(PhysKey, ActKey, Char)
+ else if ((Char == "U0030") or (Char == "SN__0"))
RomanSum := 10*RomanSum
else if ((Char == "U0031") or (Char == "SN__1"))
RomanSum := 10*RomanSum + 1
@@ -191,7 +193,9 @@ CharProcDUni() {
PressHookUni(PhysKey, ActKey, Char) {
global
- if ((Char == "U0030") or (Char == "SN__0"))
+ if (SubStr(Char,1,1) == "P")
+ CharStarDown(PhysKey, ActKey, Char)
+ else if ((Char == "U0030") or (Char == "SN__0"))
UniSum := UniSum . "0"
else if ((Char == "U0031") or (Char == "SN__1"))
UniSum := UniSum . "1"