From 64086e321a4fe748da78a2ba93a4bb15a47c76e2 Mon Sep 17 00:00:00 2001 From: mösi Date: Sun, 30 Nov 2008 07:35:23 +0000 Subject: Fixed: Modifier-Proc-Funktionen werden in PressHook-ed Funktionen nicht wie benötigt aufgerufen, was bewirkt, dass jeglicher Druck auf einen Mod (wie bspw. Mod4 für die Numpad-Ziffern) das Proc beendet. 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