Changeset 547

Show
Ignore:
Timestamp:
06/21/08 01:10:01 (5 years ago)
Author:
florian
Message:

AHK-Treiber für den nativen Treiber verbessert. Nun mit allen Steuertasten und CapsLock und Mod4Lock

Location:
windows/kbdneo2/ahk_für_kbdneo2_Test
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • windows/kbdneo2/ahk_für_kbdneo2_Test/AutoHotkey.ahk

    r543 r547  
    1 ;VKe2 ist VK_OEM_102 
     1;== Fehlende Steuerbefehle hinzu == 
     2 
     3;SC138 ist VK_OEM_102 (rechts) ist Mod4 
    24;�Bild auf� 
    3 ~vke2 & 4::Sendinput {Blind}{PGUP} 
     5~SC138 & 4::Sendinput {Blind}{PGUP} 
    46;Cursor �Hoch� 
    5 ~vke2 & l::Sendinput {Blind}{UP} 
     7~SC138 & l::Sendinput {Blind}{UP} 
    68;�Entfernen� 
    7 ~vke2 & c::Sendinput {Blind}{DEL} 
     9~SC138 & c::Sendinput {Blind}{DEL} 
    810;�Einf�gen� 
    9 ~vke2 & w::Sendinput {Blind}{INS} 
     11~SC138 & w::Sendinput {Blind}{INS} 
    1012;�Pos1� 
    11 ~vke2 & u::Sendinput {Blind}{HOME} 
     13~SC138 & u::Sendinput {Blind}{HOME} 
    1214;Cursor �Links� 
    13 ~vke2 & i::Sendinput {Blind}{LEFT} 
     15~SC138 & i::Sendinput {Blind}{LEFT} 
    1416;Cursor �Runter� 
    15 ~vke2 & a::Sendinput {Blind}{DOWN} 
     17~SC138 & a::Sendinput {Blind}{DOWN} 
    1618;Cursor �Rechts� 
    17 ~vke2 & e::Sendinput {Blind}{RIGHT} 
     19~SC138 & e::Sendinput {Blind}{RIGHT} 
    1820;�Ende� 
    19 ~vke2 & o::Sendinput {Blind}{END} 
     21~SC138 & o::Sendinput {Blind}{END} 
    2022;�Bild ab� 
    21 ~vke2 & '::Sendinput {Blind}{PGUP} 
    22 ;�Tab� damit Tab+Shift funzt 
    23 vke2 & *]::send {blind}{Tab}             
    24  
     23~SC138 & '::Sendinput {Blind}{PGDN} 
     24 
     25;SC056 ist VK_OEM_102 (links) ist Mod4 
     26;�Bild auf�              
     27~SC056 & 4::Sendinput {Blind}{PGUP} 
     28;Cursor �Hoch� 
     29~SC056 & l::Sendinput {Blind}{UP} 
     30;�Entfernen� 
     31~SC056 & c::Sendinput {Blind}{DEL} 
     32;�Einf�gen� 
     33~SC056 & w::Sendinput {Blind}{INS} 
     34;�Pos1� 
     35~SC056 & u::Sendinput {Blind}{HOME} 
     36;Cursor �Links� 
     37~SC056 & i::Sendinput {Blind}{LEFT} 
     38;Cursor �Runter� 
     39~SC056 & a::Sendinput {Blind}{DOWN} 
     40;Cursor �Rechts� 
     41~SC056 & e::Sendinput {Blind}{RIGHT} 
     42;�Ende� 
     43~SC056 & o::Sendinput {Blind}{END} 
     44;�Bild ab� 
     45~SC056 & '::Sendinput {Blind}{PGDN} 
     46 
     47;== Mod-Locks hinzu == 
     48 
     49;= CapsLock mit Shift+Shift = 
    2550;RShift wenn vorher LShift gedr�ckt wurde 
    2651LShift & ~RShift::       
    27       if GetKeyState("CapsLock","T") 
    28       { 
    29          setcapslockstate, off 
    30       } 
    31       else 
    32       { 
    33          setcapslockstate, on 
    34       } 
     52        if GetKeyState("CapsLock","T") 
     53                { 
     54                setcapslockstate, off 
     55                } 
     56        else 
     57                { 
     58                setcapslockstate, on 
     59                } 
    3560return 
    3661 
    3762;LShift wenn vorher RShift gedr�ckt wurde 
    3863RShift & ~LShift:: 
    39       if GetKeyState("CapsLock","T") 
    40       { 
    41          setcapslockstate, off 
    42       } 
    43       else 
    44       { 
    45          setcapslockstate, on 
    46       } 
    47 return 
    48  
    49  
     64        if GetKeyState("CapsLock","T") 
     65                { 
     66                setcapslockstate, off 
     67                } 
     68        else 
     69                { 
     70                setcapslockstate, on 
     71                } 
     72return 
     73 
     7456()[{ 
     75IsMod4Locked := 0 
     76Mod4LockAktion :=0 
     77~SC056 & SC138:: 
     78        if (IsMod4Locked)  
     79                { 
     80                IsMod4Locked = 0 
     81                Mod4LockAktion = 0 
     82;               MsgBox Mod4-Feststellung aufgebehoben 
     83                sendinput {vke2 up} 
     84                } 
     85        else 
     86                { 
     87                IsMod4Locked = 1 
     88                Mod4LockAktion = 1 
     89                MsgBox Mod4 festgestellt: Um Mod4 wieder zu l�sen dr�cke beide Mod4 Tasten gleichzeitig 
     90                goto SendMod4 
     91                } 
     92return 
     93 
     94~SC138 & SC056:: 
     95        if (IsMod4Locked)  
     96                { 
     97                IsMod4Locked = 0 
     98                Mod4LockAktion = 0 
     99;               MsgBox Mod4-Feststellung aufgebehoben 
     100                sendinput {vke2 up} 
     101                } 
     102        else 
     103                { 
     104                IsMod4Locked = 1 
     105                Mod4LockAktion = 1 
     106                MsgBox Mod4 festgestellt: Um Mod4 wieder zu l�sen dr�cke beide Mod4 Tasten gleichzeitig 
     107                goto SendMod4 
     108                } 
     109return 
     110 
     111SendMod4: 
     112        if(IsMod4Locked AND Mod4LockAktion) 
     113                sendinput {vke2 down} 
     114        else 
     115                sendinput {vke2 up} 
     116return 
     117 
     118 
     119~Shift:: 
     120        if (IsMod4Locked) 
     121                { 
     122                Mod4LockAktion = 0 
     123                goto SendMod4 
     124                } 
     125        else 
     126return 
     127 
     128~SHIFT UP:: 
     129        if (IsMod4Locked) 
     130                { 
     131                Mod4LockAktion = 1 
     132                goto SendMod4 
     133                } 
     134        else 
     135return 
     136 
     137                 
     138~vk15:: 
     139        if (IsMod4Locked) 
     140                { 
     141                Mod4LockAktion = 0 
     142                goto SendMod4 
     143                } 
     144        else 
     145return 
     146 
     147~vk15 UP:: 
     148        if (IsMod4Locked) 
     149                { 
     150                Mod4LockAktion = 1 
     151                goto SendMod4 
     152                } 
     153        else 
     154return 
     155 
     156                 
     157~SC138:: 
     158        if (IsMod4Locked) 
     159                { 
     160                Mod4LockAktion = 0 
     161                goto SendMod4 
     162                } 
     163        else 
     164return 
     165 
     166~SC138 UP:: 
     167        if (IsMod4Locked) 
     168                { 
     169                Mod4LockAktion = 1 
     170                goto SendMod4 
     171                } 
     172        else 
     173return 
     174 
     175~SC056:: 
     176        if (IsMod4Locked) 
     177                { 
     178                Mod4LockAktion = 0 
     179                goto SendMod4 
     180                } 
     181        else 
     182return 
     183 
     184 
     185 
     186~SC056 UP:: 
     187        if (IsMod4Locked) 
     188                { 
     189                Mod4LockAktion = 1 
     190                goto SendMod4 
     191                } 
     192        else 
     193return 
     194 
     195 
     196~4:: 
     197if (Mod4LockAktion)  
     198Sendinput {Blind}{PGUP} 
     199return 
     200 
     201~l:: 
     202if (Mod4LockAktion) 
     203Sendinput {Blind}{UP} 
     204return 
     205 
     206~c:: 
     207if (Mod4LockAktion) 
     208Sendinput {Blind}{DEL} 
     209return 
     210 
     211~w:: 
     212if (Mod4LockAktion) 
     213Sendinput {Blind}{INS} 
     214return 
     215 
     216~u:: 
     217if (Mod4LockAktion) 
     218Sendinput {Blind}{HOME} 
     219return 
     220 
     221~i:: 
     222if (Mod4LockAktion) 
     223Sendinput {Blind}{LEFT} 
     224return 
     225 
     226~a:: 
     227if (Mod4LockAktion) 
     228Sendinput {Blind}{DOWN} 
     229return 
     230 
     231~e:: 
     232if (Mod4LockAktion) 
     233Sendinput {Blind}{RIGHT} 
     234return 
     235 
     236~o:: 
     237if (Mod4LockAktion) 
     238Sendinput {Blind}{END} 
     239return 
     240 
     241~':: 
     242if (Mod4LockAktion) 
     243Sendinput {Blind}{PGDN} 
     244return