diff options
author | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2011-10-06 09:23:05 +0000 |
---|---|---|
committer | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2011-10-06 09:23:05 +0000 |
commit | 988ba05fa816196b64572c71b026f63856b1f246 (patch) | |
tree | 2df9b0b556b6d245704aa8b2f0864619edfb637f /windows/neo-vars/src/source/screenkeyboard.ahk | |
parent | 77ebd4b08ea9b6e0119c6724fd1399f33b59107e (diff) |
• Das Skript ist jetzt mit dem neuen AutoHotkey_L Unicode kompatibel, aber nur mehr bedingt mit dem alten AHK oder dem AutoHotkey_L ANSI.
• Die Dynamische BST (M3+F3) reagiert jetzt nicht nur auf Compose, sondern auch auf Ebene 5/6.
git-svn-id: https://svn.neo-layout.org@2407 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src/source/screenkeyboard.ahk')
-rw-r--r-- | windows/neo-vars/src/source/screenkeyboard.ahk | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/windows/neo-vars/src/source/screenkeyboard.ahk b/windows/neo-vars/src/source/screenkeyboard.ahk index 4053646..e5ea2b4 100644 --- a/windows/neo-vars/src/source/screenkeyboard.ahk +++ b/windows/neo-vars/src/source/screenkeyboard.ahk @@ -23,10 +23,14 @@ UniFontZipFontPath := "dejavu-fonts-ttf-" . UniFontVersion . "/ttf/" . UniFontFi Check_BSTUpdate(DoBSTUpdate = 0) {
global
if (useDBST) {
- if (!useBST and (Comp != "")) {
+ if (!useBST and ((Comp != "") or (EbeneC == 5) or (EbeneC == 6))) {
useBST := 1
BSTLastComp := ""
CharProc__BST1()
+ } else if (useBST and ((Comp == "") and (EbeneC != 5) and (EbeneC != 6))) {
+ useBST := 0
+ BSTLastComp := ""
+ CharProc__BST0()
}
}
if (useBST
@@ -35,13 +39,6 @@ Check_BSTUpdate(DoBSTUpdate = 0) { or (EbeneC != BSTLastEbeneC)
or (EbeneNC != BSTLastEbeneNC)))
BSTUpdate()
- if (useDBST) {
- if (useBST and (Comp == "")) {
- useBST := 0
- BSTLastComp := ""
- CharProc__BST0()
- }
- }
}
BSTUpdate() {
@@ -162,7 +159,7 @@ CharProc_DBSTt() { useDBST := !(useDBST)
if (useDBST) {
if (zeigeModusBox)
- TrayTip,Dynamische Bildschirmtastatur,Die dynamische Bildschirmtastatur wurde aktiviert. Zum Deaktivieren`, Mod3+F3 druecken.,10,1
+ TrayTip,Dynamische Bildschirmtastatur,Die dynamische Bildschirmtastatur wurde aktiviert. Zum Deaktivieren`, Mod3+F3 drücken.,10,1
} else {
if (zeigeModusBox)
TrayTip,Dynamische Bildschirmtastatur,Die dynamische Bildschirmtastatur wurde deaktiviert.,10,1
@@ -177,13 +174,13 @@ BSTOnClose() { BSTOnSize() {
global
- Gui, Show, % "y" . yposition . " w" . A_GuiWidth . " h" . A_GuiWidth*199/729 . " NoActivate", Neo-Bildschirmtastatur
- Gui, Font, % "s" . A_GuiWidth*12/729 . " bold", % UniFontName
+ Gui, Show, % "Y" . yposition . " W" . A_GuiWidth . " H" . Round(A_GuiWidth*199/729,0) . " NoActivate", Neo-Bildschirmtastatur
+ Gui, Font, % "s" . Round(A_GuiWidth*12/729,0) . " bold", % UniFontName
loop,parse,GuiKeyList,`,
{
GuiPhysKey := A_LoopField
GuiControl,Font,GuiKey%GuiPhysKey%
- GuiControl,Move,GuiKey%GuiPhysKey%, % "x" . GuiPosx%GuiPhysKey%*A_GuiWidth/729 . " y" . GuiPosy%GuiPhysKey%*A_GuiWidth/729 . " w" . 38*A_GuiWidth/729 . " h" . 38*A_GuiWidth/729
+ GuiControl,Move,GuiKey%GuiPhysKey%, % "x" . Round(GuiPosx%GuiPhysKey%*A_GuiWidth/729,0) . " y" . Round(GuiPosy%GuiPhysKey%*A_GuiWidth/729,0) . " w" . Round(38*A_GuiWidth/729,0) . " h" . Round(38*A_GuiWidth/729,0)
}
GuiControl,,Picture0, % "*w" . A_GuiWidth . " *h-1 " . ResourceFolder . "\ebene0.png"
}
|