From 64086e321a4fe748da78a2ba93a4bb15a47c76e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=B6si?= Date: Sun, 30 Nov 2008 07:35:23 +0000 Subject: =?UTF-8?q?Fixed:=20Modifier-Proc-Funktionen=20werden=20in=20Press?= =?UTF-8?q?Hook-ed=20Funktionen=20nicht=20wie=20ben=C3=B6tigt=20aufgerufen?= =?UTF-8?q?,=20was=20bewirkt,=20dass=20jeglicher=20Druck=20auf=20einen=20M?= =?UTF-8?q?od=20(wie=20bspw.=20Mod4=20f=C3=BCr=20die=20Numpad-Ziffern)=20d?= =?UTF-8?q?as=20Proc=20beendet.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1256 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- windows/neo-vars/src/source/tools.ahk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'windows/neo-vars') 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" -- cgit v1.2.3